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

1mm being added to dimensions when exporting to png


Recommended Posts

Hello,

1mm is being added when I export to png. Is this is a bug or is there something I am doing wrong? Dimensions are meant to be 260mm x 300mm but are actually 260mm x 301mm. 

Any help would be appreciated.

Edited by Patrick8
Link to comment
Share on other sites

Morning (UK) Welcome to the forum @Patrick8

Which way are you exporting, from File > Export... or from the Export Persona?

I may be because the pixels aren't whole pixel aligned, i.e X: 1.2px Y: 1.3px and the object is a fractional pixel size 300.2px check in the transform panel.

iMac 27" 2019 Somona 14.4.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Hello @firstdefence

I'm exporting via File > Export with a document setup of 260mm x 300mm at 300dpi. However when I go to export this is 3071 x 3544px, resulting in incorrect dimensions by 1mm. 30cm is equivalent to 3543.307... at 300dpi. However, for some reason this is being rounded  to 3544px. Is there any reason why this would be?

Link to comment
Share on other sites

13 minutes ago, Patrick8 said:

However, for some reason this is being rounded  to 3544px. Is there any reason why this would be?

An exported file must be in whole pixels.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

Under preferences there is a setting to show fractional units...
image.png.a059dfd4dc29b802dfc2014fda9e7665.png

Try setting the decimal places to more than 1 and see what readings you get then. If all else fails upload the affinity file for us to look at if possible.

iMac 27" 2019 Somona 14.4.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

4 hours ago, walt.farrell said:

An exported file must be in whole pixels.

I can't even imagine what a fractional pixel would look like....

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

7 minutes ago, R C-R said:

I can't even imagine what a fractional pixel would look like....

Theoretically, you could have a clipping path in a file which cuts border pixels to half...  but generally yes, some rounding have to be done. It is somewhat a problem that Affinity software respects more pixels than millimetres.

Link to comment
Share on other sites

2 minutes ago, Fixx said:

Theoretically, you could have a clipping path in a file which cuts border pixels to half... 

But you can't really cut a pixel in half because a pixel is the smallest unit of picture information possible in a raster image file.

IOW, there is no way to change any properties of ½ a pixel & not change the other half in the same way.

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

40 minutes ago, R C-R said:

I can't even imagine what a fractional pixel would look like....

Step into my world, the FDatrix, do you think they are whole pixels you are using?

iMac 27" 2019 Somona 14.4.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

1 hour ago, R C-R said:

But you can't really cut a pixel in half because a pixel is the smallest unit of picture information possible in a raster image file.

IOW, there is no way to change any properties of ½ a pixel & not change the other half in the same way.

That is why you need container path for it... but then we are not in pixel image realm anymore.

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.