Jump to content

Recommended Posts

Posted (edited)

I made a tiny test document to show one big principle issue with Affinity's apprach for resizing and resampling (during export).

In case you use the move tool and shift the pixel layer in 0.1 steps in x and/or y direction, the colors will shift dramatically due to resampling artifacts.

The source document is simply downscaled by factors 2, and contains a high frequency pattern of red/green/blue/white pixels. By downsizing, all colors average out to grey. But if you misalign the layer position, resampling will create absurd color artifacts.

For more craziness, slightly reduce the layer size and the again change starting positions.

Of course this document is specifically carfted to demonstrate the effect, never the less we get frequent complaints from users in real-word situaions like https://forum.affinity.serif.com/index.php?/topic/200893-losing-fine-detail-of-polygons-when-zoomed-out-and-in-scaled-export/#comment-1187203

A better way would be to provide a result which preservs the global color balance (grey) and creates only local color seams.

  1. merge visible,
  2. then resize the result and resample from the temporary "merge visible" layer.

res1.PNG

res2.PNG

res3.PNG

res4.PNG

Resample with downsizing.afphoto

Edited by NotMyFault

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

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.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

That is a very interesting document. I tried to use the flood fill tool on it and couldn't get the colour of the pixel layer to change.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
1 hour ago, Old Bruce said:

That is a very interesting document. I tried to use the flood fill tool on it and couldn't get the colour of the pixel layer to change.

This should be absolutely no problem. But you need to set tolerance to 100%, and deactivate continuouse. Otherwise you may hit only 1px or 1 row/colum.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

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.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

After further testing it is a bit more complex.

When exporting, the resample method has a big impact.

bilinear (default):

if the layer is resized between 50% and 100% at least in one axis or both, the issue occurs as described.

In case both layers are resized below 50%, the issue vanishes.

In case using bicubic or lanczos, issue vanishes.

Using layer rotation and/or skew is hit and miss, depending on angles.

It seems there is a specific performance optimization for (default) bilinear resampling, but restricted to scaling of *2 resp /2.

This is consistent with older findings when scaling pixel layers and getting unexplainable antialiasing effects at layer edges, depending on scaling factors and aspect ratio of the layer.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

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.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

@NotMyFault I’m not  near my computer at present, but I was wondering if this color shifting happens when you move in 1 pixel increments with Force Pixel Alignment active (and move by whole pixels disabled). Thanks.

2024 MacBook Pro M4 Max, 48GB, 1TB SSD, Sequoia OS, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish, Wacom Intuos 4 PTK-640 graphics tablet, 2TB OWC SSD USB external hard drive.

Posted
3 minutes ago, Ldina said:

@NotMyFault I’m not  near my computer at present, but I was wondering if this color shifting happens when you move in 1 pixel increments with Force Pixel Alignment active (and move by whole pixels disabled). Thanks.

No, the document is crafted specifically so this happens only with fractional positions

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

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.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
4 minutes ago, NotMyFault said:

No, the document is crafted specifically so this happens only with fractional positions

Thanks! 

2024 MacBook Pro M4 Max, 48GB, 1TB SSD, Sequoia OS, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish, Wacom Intuos 4 PTK-640 graphics tablet, 2TB OWC SSD USB external hard drive.

  • Staff
Posted

@NotMyFault So I can log this with the developers with as much information as possible, including your further testing. Can you confirm the steps taken to create the source document as well.

Posted

thanks for following up.

To see the source, just use transform panel and increase layer size by factor 2 to see the layer in original form (100 zoom size / DPI matching document DPI).

it is a simple pattern of pixels in either R, G, B (created by a procedural texture filter, but you could do the same by bitmap fill, pattern layer). 
no additional tricks like alpha, blend range, blend gamma etc. just a plain fully opaque pixel layer.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

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.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

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.