NotMyFault Posted April 5, 2022 Share Posted April 5, 2022 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 PNG Export showing double-desaturated edge colors 1dot5 square.afphoto 1dot5 square from 2.afphoto Quote 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 More sharing options...
Staff NathanC Posted April 7, 2022 Staff Share Posted April 7, 2022 Hi @NotMyFault, Thanks for the post, I've raised this internally with the QA team and this has been considered more as an improvement than a bug. As such I've moved this over to the Feature Requests board. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.