Walter2711 Posted March 14, 2023 Posted March 14, 2023 Mac OS 12.6.3 (21G419) / Affinity Photo2.0.4 Dear Affinity helpdesk, I have a dithered PNG File which contains only black and white pixels. Now I crop a part of it and export it as a new PNG file. After opening the cropped PNG and compare it to the original file everything is ok. B&W Pixels. Now I copy the layer of the cropped PNG and paste it as new layer to the original PNG and it suddenly becomes a blurry greyscale image. After repeating the process it occasionally inserts correctly. Often not. Screenshot zoomed: Left original | right pasted What has happened? Please help. Thank you! regards Walter Affinity Photo Bug Paste PNG Layer_1.afphoto Affinity Photo Bug Paste PNG Layer_2.afphoto Quote
Paul Mudditt Posted March 14, 2023 Posted March 14, 2023 Welcome to the forums ! Looks like a pixel alignment issues, check your snapping options under the snapping menu to force pixel alingment. Walter2711 1 Quote Affinity Photo, Designer, Publisher 1.10 and 2.5 on macOS 15.3 Beta Sequoia on M1 Mac Mini 16GB 1TB Affinity Photo, Designer, Publisher 1.10 and 2.5 on Windows 10 Pro. (revived !) Affinity Photo, Designer, Publisher 2.5 on M1 iPad Pro 11” on iPadOS beta 18.3 https://www.facebook.com/groups/AffinityForiPad https://www.facebook.com/groups/AffinityPhoto/ https://www.facebook.com/groups/affinityphotoastrophotography The hardest link to find https://affinity.help Mud’s Macros Library:- https://forum.affinity.serif.com/index.php?/topic/156842-muds-macros-v11-library-content-aware-move-added/
Walter2711 Posted March 14, 2023 Author Posted March 14, 2023 3 minutes ago, Paul Mudditt said: Welcome to the forums ! Looks like a pixel alignment issues, check your snapping options under the snapping menu to force pixel alingment. Thank you for the quick reply. Might look like alignment but the PNG is not transparent. What you see is the image itself that gets disturbed after pasting. Quote
Hangman Posted March 14, 2023 Posted March 14, 2023 Hi @Walter2711 and welcome to the forums... @Paul Mudditt is correct (he beat me to it)... When you paste your cropped B/W PNG file into your document it pastes to the top left of your file and looks correct, i.e., no partial pixel alignment. Before moving it, if you turn Force Pixel Alignment on in the context toolbar you will see everything looks as you want it to when you then move the image... I would perhaps make a complete new image if possible including both elements otherwise this could be an issue OR work on the file in Affinity Designer where you won't have the same problem. Paul Mudditt 1 Quote Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 Affinity Designer 2.6.2 (3213) Beta | Affinity Photo 2.6.2 (3213) Beta | Affinity Publisher 2.6.2 (3213) Beta MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse
Walter2711 Posted March 14, 2023 Author Posted March 14, 2023 (edited) Thank you also for replying. I am afraid I did not explain it good enough. Did you open the files I added? One is the cropped PNG and the other is the original with the cropped inserted as new layer. Maybe then it gets clearer then. It's not an adjustment problem. The inserted layer has the grey pixels IN it right after pasting. Edited March 14, 2023 by Walter2711 Quote
Hangman Posted March 14, 2023 Posted March 14, 2023 16 minutes ago, Walter2711 said: Thank you also for replying. I am afraid I did not explain it good enough. Did you open the files I added? One is the cropped PNG and the other is the original with the cropped inserted as new layer. Maybe then it gets clearer then. It's not an adjustment problem. Hi Walter, that's exactly what I did and this is simply a pixel alignment issue, hopefully the screen recording will make things a little clearer... as mentioned above, once you've pasted your cropped image, switch Force Pixel Alignment on in the context toolbar and then you won't or at least shouldn't see the problem when you move your pasted cropped image... PNG Pixel Alignment.mp4 thomaso and Paul Mudditt 2 Quote Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 Affinity Designer 2.6.2 (3213) Beta | Affinity Photo 2.6.2 (3213) Beta | Affinity Publisher 2.6.2 (3213) Beta MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse
Walter2711 Posted March 14, 2023 Author Posted March 14, 2023 (edited) Yep! Got it. No grey pixels anymore. Thank you very much for your help! HERO of the day! What puzzled me was that it sometimes seemed to occur and sometimes not. I wasn't aware that it could have been caused by solely moving the image. Can you tell me what happens here? Edited March 14, 2023 by Walter2711 Quote
Hangman Posted March 14, 2023 Posted March 14, 2023 5 minutes ago, Walter2711 said: Can you tell me what happens here? Basically, because the image can be moved by fractions of a pixel you are seeing the the effect of anti-aliasing where the pixels aren't perfectly pixel aligned... this hopefully demonstrates what happens when you move the image by fractions of pixels, you will see, when positioned anywhere other than at whole pixel values, the effect of anti-aliasing to display sub pixel positioning. As soon as the image is perfectly pixel aligned no anti-aliaising is visible... Pixel Alignment.mp4 stokerg and Walter2711 1 1 Quote Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 Affinity Designer 2.6.2 (3213) Beta | Affinity Photo 2.6.2 (3213) Beta | Affinity Publisher 2.6.2 (3213) Beta MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse
Walter2711 Posted March 14, 2023 Author Posted March 14, 2023 Oh wow. This is perfect. Thank you for you help. Awesome! Made my day. Quote
Hangman Posted March 14, 2023 Posted March 14, 2023 That's no probelm at all, glad to have been able to help... Quote Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 Affinity Designer 2.6.2 (3213) Beta | Affinity Photo 2.6.2 (3213) Beta | Affinity Publisher 2.6.2 (3213) Beta MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse
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.