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.
-
Steve commented
I have noticed this problem on CC2020 as well as 2021 version exporting files the wrong size.. typically off .003 - .007 (inch) - Example a 1x1 in square with a .05 in bleed all sides "export as" with artboards exports as 1.1 x 1.103 in. A 3.5x1.25 in exports as 3.603x1.603in
Attached is a simple sample file.. few different sized artboards
When exporting I've confirmed JPG, PNG, TIF (and perhaps others) all export the wrong size when a bleed is set in document settings.
I've tried various bleed settings and does not seem to change the sizes still are being exported wrong sizes. This problem didn't exist in the 2019 version thus some update in 2020 brought this on.
-
Anonymous commented
Obviously this must be exhausing for Adobe dev team... :(
-
Sam commented
I am trying to do some titles for a video 1920 x 1080 resolution, and when "export as" is used to rasterise the the title panels, they come out at 1921 x 1081 which is causing many problems down stream of the files I created.
Ai V24.3
Mac Os V10.14 -
Anonymous commented
AsI'm "Exporting for Screens" few dartboards at once I have 300 by 600 pix one. It is EXACTLY this size as dartboard, but the JPG comes az 300 by 601 pix.
-
Steve commented
Have tried various file types with same results
-
Steve commented
I noticed exported files have a white line on them
-
Steve commented
illustrator size
-
Steve commented
Testing more... very inconsistent...
-
Steve commented
Testing exporting, seems export sizes off by a few thousandths.. with or without bleed... Usually off .003 oversize on the width
-
jayse commented
This might be due to an old bug where if your art-board is positioned on a half a pixel, like 768.5 on the x, rather than a whole pixel, like 768, it will change the export by adding 1 pixel. Was super hellish for large projects! For sure!
Not sure if it's fixed now (it's widely reported) but hope that helps if anyone else finds this.
-
Terry Chu commented
Basically, whenever I export something like an image setting my artboards width and height as a whole number, depending on where the artboard is positioned at a decimal value i.e(x: 1200.232 y:200.623). There is a bug where it will export the image with an extra pixel. So if I've set the width to be 1000 pixels and the height to 400 pixels, for example, it will export this as 1001 x 401 pixels. To fix this problem, I have to always make sure the artboards are positioned at x: 1200 y:200, deleting the decimal values.
Unless of course, the bug itself is easy to fix on your end, this is my suggestion of a way around that problem.
Another idea is to have the repeat function (ctrl/cmd+D hotkey) work for creating artboards also.
Thanks
-
Anonymous commented
After export left edge is cut.
-
Mike Clements commented
In the latest Illustrator, export for screens anti-aliases what should be sharp outer edges of artwork (even though, for example the artwork is in a 1080px x 1080px precisely placed clipping path which is aligned to the 0,0 coordinates of the artboard. I have confirmed that this occurs because the coordinates of artboards were non-round numbers (ex. 56.02 vs 56).
I have not previously experienced this, and regardless, this should be fixed... anti-aliasing should be tied to the artboard the artwork is on, not the position of the artboard on the underlying workspace.
PLEASE FIX THIS ASAP!
-
Mike Clements commented
In the latest Illustrator, export for screens anti-aliases what should be sharp outer edges of artwork (even though, for example the artwork is in a 1080px x 1080px precisely placed clipping path which is aligned to the 0,0 coordinates of the artboard. I have confirmed that this occurs because the coordinates of artboards were non-round numbers (ex. 56.02 vs 56).
I have not previously experienced this, and regardless, this should be fixed... anti-aliasing should be tied to the artboard the artwork is on, not the position of the artboard on the underlying workspace.
PLEASE FIX THIS ASAP!
-
Alyson DM commented
When I manually move an artboard around it doesn't land on an exact pixel position. When I export all artboards, the size is one pixel extra than my specified artboard size. When I go back to my file, I see the position (X or Y axis) has a decimal. Is there a way I can change my settings so the artboards are ALWAYS at an exact pixel position?
-
Trev commented
Latest version of 2019, I always get 1pixel added to the horizontal. Artboards are all pixel perfect.
-
Stephan Mönninghoff commented
I have posted this exact same bug. My workaround until this gets fixed is to delete and recreate the afflicted art boards. Not funny when you are dealing with 1.800 icons...
-
Dimitry Chamy commented
Export for Screen #x adds an extra pixel to ouptut file dimensions.
-
Stephan Mönninghoff commented
I have a workaround for those who are experiencing this. Delete the afflicted artboards and recreate them with pixel snap turned on. This will create new artboards with correct sizes.
-
Stephan Mönninghoff commented
I have a document with 446 artboards, each containing an icon. When I issue my icons, sometimes the normal size is issued wrong (plus 1 px in width or height), sometimes the @2x size is wrong (plus 1 px in width or height) or both are wrong. This does not occur with documents with fewer artboards. I have a document which shows the issue clearly. I cannot share it here but support can have it. Thanks.
Update: I have managed to isolate one of the offending artboards in a single file. Its size is 26x20. When it gets exported, its size is 53x40. Expected 52x40.
It is attached.