Jump to content
You must now use your email address to sign in [click for more info] ×

Export as 'selection only' the image dimensions are always wrong


Recommended Posts

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.

Link to comment
Share on other sites

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

Screenshot 2022-07-28 at 1.37.30 pm.png

Screenshot 2022-07-28 at 1.37.54 pm.png

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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

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.