Jump to content
You must now use your email address to sign in [click for more info] ×

export of files with fractional dimensions wrong in extra added edge pixels


Recommended Posts

When using a file with fractional dimensions, Photo rounds up to the next integer when exporting.

When calculating the colors of that extra edge pixels, affinity makes questionable decisions on how to calculate the color values.

There are two variants of the file:

  • 1dot5 square.afphoto covers only the document canvas with square rectangles of 1x1, 0.5x1, 0.5x0.5 size.
  • 1dot5 square from 2.afphoto covers the "fractional" pixels with 1x1 rectangles.
  • You can see that the smaller rectangles lead to less saturated colors, this is expected as the colors get resampled with the "invisible" part according to their areal coverage.
  • The strange think is that it makes no difference when you export PNG with 2x2 size from both files. They look all identical, but: 
  • it seems that the export colors get a second round of resampling, leading to almost desaturated colors. This double-resampling is not correct in my view, as the rendered (single pass resample) is already the correct version, and another resample for export leads to wrong colors.

This issue has absolutely no priority. It only exists as Photo creates these (in most cases absolutely unwanted) extra pixels instead of cutting them off. Affinity could solve 2 issues at once by simply cutting off extra pixels resulting from fractional document sizes - as it already does when displaying the document dimensions in UI (expect export).

see 

 

Canvas in Photo showing already desaturated edge colors

1075244576_Screenshot2022-04-05at22_09_25.thumb.png.e0c5fab0a8833a00012211fe07c09d73.png

PNG Export showing double-desaturated edge colors

 

1dot5 square.afphoto 1dot5 square from 2.afphoto

1dot5 square from 2 NN.png

1dot5 square from 2.png

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.