doodledude Posted July 28, 2022 Share Posted July 28, 2022 When you export a selected artwork and choose 'selection only' the dimensions are always about 1px too big (normally width), even though in Designer under transform it says the dimensions of object are such and such the exported PNG, for instance, is not the same dimensions. The exported file normally has a empty 1px gap on the edge of the PNG or similar format. Quote Link to comment Share on other sites More sharing options...
GarryP Posted July 28, 2022 Share Posted July 28, 2022 Are the X and Y values of your selection integers? If they are not then you will get a larger export area because the software has to ‘invent’ the extra pixel to allow for the fraction of a pixel. Quote Link to comment Share on other sites More sharing options...
doodledude Posted July 28, 2022 Author Share Posted July 28, 2022 1 minute ago, GarryP said: Are the X and Y values of your selection integers? If they are not then you will get a larger export area because the software has to ‘invent’ the extra pixel to allow for the fraction of a pixel. Hi, they are normally in pixels (no decimal points involved). In the attached example I created a 400px circle, export as selection only and it tells me the dimensions are 401 x 401px Quote Link to comment Share on other sites More sharing options...
GarryP Posted July 28, 2022 Share Posted July 28, 2022 I asked you about the X and Y values, which I can see in your image are not integers. Quote Link to comment Share on other sites More sharing options...
doodledude Posted July 28, 2022 Author Share Posted July 28, 2022 Ok, what difference do the x and y make as the selection is still the same size? Quote Link to comment Share on other sites More sharing options...
GarryP Posted July 28, 2022 Share Posted July 28, 2022 Your selection covers an area which is not pixel-aligned and, as such, when the software comes to export it there will be an extra pixel. It’s just the way the Affinity software works – plenty of people have complained about it but I can’t see it changing any time soon. Just nudge your selected objects to pixel-aligned integer X and Y values and it’ll work. doodledude 1 Quote Link to comment Share on other sites More sharing options...
doodledude Posted July 28, 2022 Author Share Posted July 28, 2022 Thanks, it has bugged me for years. At least I know a way around it now! Quote Link to comment Share on other sites More sharing options...
GarryP Posted July 28, 2022 Share Posted July 28, 2022 You’re welcome. It’s just one of those things that needs to be learnt, and then it eventually becomes second nature. Quote Link to comment Share on other sites More sharing options...
R C-R Posted July 28, 2022 Share Posted July 28, 2022 2 hours ago, doodledude said: Ok, what difference do the x and y make as the selection is still the same size? I think (but am far from sure) it is because for exports to rasterized file formats resampling is involved, which is calculated pixel by pixel using each pixel's rasterized x & y coordinates. doodledude 1 Quote All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 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.