Wrong exported image size (extra pixel added) if artboard coordinates are non-integer, not pixel-perfect
In attached AI file there are 1 artboard if you just export it for Screens you will get an image size 105px × 104px, however in AI it's sized as 104x104px.
Check that X coordinate of artboard is 172.34 px, so it's float. Just change it to 172px and re-publish and image will be 104x104.
So, coordinates of artboard should affect into output PNG image.
Also, should be related too:
https://illustrator.uservoice.com/forums/601447-illustrator-bugs/suggestions/20530969-export-for-screens-adds-extra-pixels-at-to-exports
AI 21.1.0 macOS
-
Video_2025-01-07_214212.mp4 7263 KB -
Export As.png 2 KB -
Script.png 2 KB -
Export for Screens.png 2 KB -
Asset Export.png 1 KB -
file_differences.gif 150 KB -
Screenshot 2024-05-29 at 12.02.53 PM.png 20 KB -
Screenshot 2024-04-18 at 4.53.13 PM.jpg 459 KB -
FL-MASTER-weblogo WIDTH CORRECTED IN PHOTOSHOP.png 5 KB -
FL-MASTER-weblogo ORIGINAL ILLUSTRATOR OUTPUT.png 4 KB -
FARELANES-logo-menu-Apex.jpg 21 KB -
illustrator bug.jpg 238 KB -
Screen Shot 2021-12-02 at 9.51.52 am.png 1758 KB -
exporting-issue.png 59 KB -
4x5 RATIO chandelier1midnightoncandy.jpg 2283 KB -
2021-06-16 14-20-32.mp4 4208 KB -
illustrator_export_bug_2.png 28 KB -
illustrator_export_bug.png 40 KB -
SD21-000-SittingDuckWebinar-ads-GW-v1.ai 4912 KB -
sample exports.ai 1202 KB -
Screenshot 2020-10-27 at 14.34.35.png 614 KB -
Screenshot 2020-10-27 at 14.34.08.png 677 KB -
Screenshot 2020-10-27 at 14.34.35.png 614 KB -
Screenshot 2020-10-27 at 14.34.08.png 677 KB -
bug_01.gif 109 KB -
artbaord_antialiasing_issue.png 289 KB -
2urn-shot_1226.png 280 KB -
Export wrong size.ai 155 KB -
pixel-preview-vs-export.png 21 KB -
ilbg.png 17 KB -
Illustrator_export_for_screens_bug.jpg 142 KB -
bug.ai 355 KB -
Test_1.jpg 63 KB -
Test.ai 681 KB -
bug.ai 355 KB -
Illustrator_export_for_screens_bug.jpg 142 KB

This issue is probably happening because the artboard dimensions are not appropriate for raster export (i.e. are in decimals).
If you make x and y values as the whole numbers in the transform panel (not in decimal), then the extra pixels will not be added to the exported image.
That is the workaround, and it’s reported that it’s not always the case.
At the same time — Ai knows the size of artboards to be exported and yet it does not deliver the set sizes, which is not fair. The team is going to rethink the algorithm.
-
AdminNitish Agarwal (Illustrator on Web/iPad Team) (Lead Software Engineer, Adobe Illustrator) commented
Hi Bogdan,
Export using any fractional scale or height/width, you will get the expected dimensions. If you have artboard and art both pixel aligned then this problem does not comes up. If you can share your file share at nitiagar@adobe.com so that we can look into and analyze what is wrong in the file.
Thanks & Regards
Nitish Agarwal
Illustrator Team -
Bogdan Popa commented
Having the same problem with Export for screens. Trying to export a 600x600px jpeg, the end result is a jpeg with 600x601 pixels. Thank you,
-
Volodymyr commented
And also, I have many other sizes, not all them are 104. So I should publish only same sizes with specified width and heigh.. no..
-
Volodymyr commented
I have a 250 artboards.. positioned by structure I need for view, and yes, I have to move and set them. Super awkward.
-
AdminNitish Agarwal (Illustrator on Web/iPad Team) (Lead Software Engineer, Adobe Illustrator) commented
We are trying to fix this issue but in the meanwhile you can use the work around. Specify height by clicking on the drop down near 1x and then enter the height that you want and it will you the exact result.
Thanks & Regards
Nitish Agarwal
Illustrator Team -
Volodymyr commented
@Nitish-Agarwal
I'm exporting just like that:http://i.piccy.info/i9/f1ea3bffe88c085a70725caeb23adb32/1509371307/36838/1155442/Screen_Shot.png
About what specifying height you tell'n me I don't know, but it's wrong.
The best wat to not get extra pixel - is to fix this bug.
I told already that when 172px set it's ok, but it's awkward and it's a bug you need to fix. -
Volodymyr commented
I don't know why old bug wan't fixed and closed. But make sure you follow instructions to reproduce it.
1. Open attached file
2. File->Export->Export For Screens.
3. Export Artboad - and result will be image with size 105x104px, but should be 104x104 as artboard size in document.So they are different, and this depends on coordinates of artboard, which is float - 172.34 and if you change it to 172 or 170, whatever and then re-export you will get 104x104 image size on output.
-
Volodymyr commented
I've created new https://illustrator.uservoice.com/forums/601447-illustrator-bugs/suggestions/32041915--bug-wrong-png-size-if-artboard-coordinates-in-fl
please vote for it. -
Volodymyr commented
AI 2018 v22 macOS.
In attached AI file there are 1 artboard if you just export it for Screens you will get an image size 105px × 104px, however in AI it's sized as 104x104px.
Check that X coordinate of artboard is 172.34 px, so it's float. Just change it to 172px and re-publish and image will be 104x104.So, coordinates of artboard should affect into output png image.
ALso, should be related too:
https://illustrator.uservoice.com/forums/601447-illustrator-bugs/suggestions/20530969-export-for-screens-adds-extra-pixels-at-to-exportsAlso, this bug WASN'T FIXED and CLOSED.
After that, no reaction of admin. Poor feedback here...
Anyway, this bug should be fixed! -
Sarah Khan (Illustrator team) commented
Hi Kristin,
Can you please share the file with which issue is happening on sharewithai@adobe.com
Thanks
-
Jotham commented
@Ashutosh Chaturvedi Here is a video showing the bug is not fixed for either export for screens or export as. I showcased a way in where it works, which is probably why you guys thought it was fixed.
-
Volodymyr commented
@Ashutosh Chaturvedi https://illustrator.uservoice.com/users/403681918-ashutosh-chaturvedi
Issue not been fixed, don't ignore it.
-
Jotham commented
BUG REPORT
VERSION 22.0.0
Steps taken: File is created with artboards sized to 1200x1200 pixels and exported to jpgs with artboards selected.
Expected result: Jpgs saved at 1200x1200 pixels
Actual Result: Jpgs saved at 1201x1200 pixels or 1200x1201 pixels or 1201x1201. When exporting to jpg the file sizes are saved with 1 pixel added to width or height of page size unintentionally.
Further comments: This is a bug that has been present in Illustrator before and was corrected with the 20.1.0 version (2015.3.1 release). It has since resurfaced with version 21.0.0. (2017 release). Despite an engineer reporting it has been fixed with version 22.0 as of today I can confirm among others that it has not been fixed (see attached files). Some users have noted that you can bypass this issue by placing the artboard on a whole integer on the x and y grid, but this only works if you are not scaling the pages. If you keep it at 72 ppi for a jpg then the page will save at 1200 x 1200 but if you export it at 120 ppi it will still add a pixel and make it 2001x2000 even if the page is on a whole integer.
Please reopen this bug report and have it corrected ASAP as we have been waiting over a year for this fix. Myself and a few others have been unable to upgrade do to this issue heavily effecting our workflow.
Thank you.
-
Jotham commented
@Ashutosh Chaturvedi Please unmark this bug as fixed. I can confirm with Volodymyr this issue is still not fixed with the new 22.0.0 update today. This issue has resurfaced with every new build of a Illustrator for several years now. The last time it was fix was with the 20.1.0 version (3 updates after it's initial build) and returned a few months later with the 2017 21.0.0 release and has yet to be fixed. This issue has made it so I have been unable to update Illustrator since 2015.3 as export jpgs is a massive part of my workflow.
-
Kristin Rothgery commented
When exporting a file from Illustrator to Photoshop with layers, I am noticing a white line around the edge, and when I zoom into it in Photoshop, I see it is not solid color to the edge of the artboard in Photoshop. It is however aligned perfectly in Illustrator, and I have clicked on Pixel Perfect.
-
Volodymyr commented
Is it same build from v22 - GM Candidate - 1 ? I've tested on it and it's not fixed!
-
Volodymyr commented
AI v22 - GM Candidate - 1: issue still not been fixed. Image still 105 × 104 but should be 104 x 104 as artboard size!
-
Anonymous commented
When exporting a file from Illustrator ( or photoshop or other) some 1 or 2 pixel wide rim appears. This is very anoying when having the file printed on fabric, and is one of the reasons I do not buy the programm. I thought it was only in the trial version, but it is a genreal problem. ( https://www.facebook.com/groups/SpoonflowerFans/permalink/1388987581228727/?comment_id=1389947531132732¬if_id=1507602952083460¬if_t=group_comment_reply)
https://www.spoonflower.com/designs/2082665-pink12-by-ruthjohanna.
Could the program be in such as way as the colors chosen reach all the way out, not one empty pixel left as a border?
Thanks for reading, have a nice day
-
Volodymyr commented
RC3 aka like GM still with this bug! Please fix!!!
-----
File->Export->Export For Screens.
Result was image 105x104, but should be 104x104 as artboard size.
-----
I should manually edit coordinates of my artboards to be NOT float to not get faced with this problem. But thats really bad.. -
Jasper Hedegaard Bojsen commented
Not fixed.
Tried it and it didn't work. I still get 72x72 px on an artboard of 71x71px.
The artboard is placed as x:2000pt, y:1300pt.
I'm running 2.2.0.0 Rc2