Cropping with square format results not 1:1 aspect ratio

Is something not working like it should? Let us know.
User avatar

2022-07-11 11:33:28

Hello everyone! Did someone encounter the strange issue when an image is cropped with "square" aspect ratio preset and then it becomes not 1:1? Like 1500x1499 or 1800x1801. This is not happening with every image, I get it in 50% of cases but don't see conditions for this. Because of that I have to edit exported images in Preview every now and then.

Has anyone seen this issue or maybe I do something wrong?
User avatar

2022-07-12 07:15:25

Yes I can confirm this behaviour when original edges are included and contain transparent pixels - but Image->Trim Canvas…->Transparent Pixels will correct it. So it seems most likely transparent pixels at the edges will cause this issue in first place. No bug imho.
User avatar

2022-07-26 12:12:16

Unfortunately, Image->Trim Canvas…->Transparent Pixels doesn't help :disappointed:
User avatar

2022-07-26 13:28:32

Sounds strange to me then. Can you share an example image?
User avatar

2022-07-26 16:09:58

I think there's a document file needed. Here it is:
https://we.tl/t-qdOI16f5vw
If you export it, it will be 1364x1365 (and it's square cropped)
User avatar

2022-07-27 01:34:15

Yes - because that´s the size of the crop. I just opened your file - didn´t do anything to it and that is what the numbers are:
Image
I then go Image->Reveal Canvas - call the Crop tool - type in W:1365, H:1365 - hit Apply and exported image is exactly 1365x1365px/72dpi:
Image
User avatar

2022-07-27 12:52:22

I see what you mean, but I was talking about the square crop format... I understand that I could change image size with other tools right away, but why do I need to? It's one more step to achieve the desired aspect ratio as I am as a user expect square crop format tool to give me 1365x1365, not 1364x1365
User avatar

2022-07-27 12:56:03

And while we´re here I hope you don´t mind a little nit pick: I´d increase the font size to 178px to get the Masthead free from the "N" of "AEGAN" and fine adjust Character spacing to line up left + right edges more closely:
Image
User avatar

2022-07-27 12:59:41

As I said earlier it crops here exact at the px size I typed in. I just can confirm a slightly issue when transparent pixel are present at the picture borders, which easily can be resolved - otherwise I can´t blame Pixelmator Pro here.
Wait: Doing it again with the Crop tool: Square and there IS a 1 px misalignment. That´s odd.
Workaround could be use "Square" but change to "Custom" and adjust the missing px. But it seems a bug to me. Good catch.
:wink:
User avatar

2022-07-27 14:21:11

I can´t tell what it is with your image; I tested 2 dozens of mine: Load - call Crop tool/Square - Apply: perfect 1:1 result. Affinity Photo will crop your image to 1365x1365px perfectly fine. But Pixelmator Pro don´t. Drives me crazy. Not sure what I´m overlooking. Can´t figure. You´ll find instantly the mismatch by c going from "Square" to "Custom Size/Custom Aspect Ratio" before hitting Apply. Waiting for a dev to chime in. I´m really curious.
User avatar

2022-07-27 15:40:41

Yep. This is what I’m saying – it’s just a bug
User avatar

2022-07-28 01:13:24

I don´t think it´s that easy, because it´s "your" image causing this flaw. :grin:
User avatar

2022-07-28 04:09:14

Well, I have 50% of such images