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
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.
-
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. -
Jonathan B commented
I don't think this ever got fixed mine still does it in CC 23.0 Windows. Even if I align the it to be pixel perfect that doesn't always solve the problem when exporting the png.
-
Brad Fischer commented
Same issue. "Export as"PNG adds random extra pixel dimension; "Save for web" keeps proper dimensions
-
Alan commented
When I use the export image option to make a PNG or JPEG with use artboard at 300 ppi, my original image size is changed by 1 pixel (like an image goes from 500 x 500 to 501 x 501).
I have found the save for web works to retain the proper dimensions, but when the image needs to be printed, it becomes 72 ppi which is not correct resolution for printing.
-
Anonymous commented
When I use "Export for Screens" export option to batch-export artboards many of the resulting JPGs are a pixel larger vertically and/or horizontally that the artboard dimensions within Illustrator. For example I exported a dozen images with artboard sizes of 1200px wide and 1200px high. After exporting the resulting JPGs have a dimension of 1201px wide and/or high. This only happens on some of the exported files and only some of those are effected vertically and horizontally.
Mac OS X Mojave 10.14.4
Illustrator 23.0.3 -
Anonymous commented
The fix is to downgrade to version 15.3 where it still works. The grad tool also works as well.
-
Me commented
Trying to export to rgb jpeg - this is a critical thing for us. It needs to be accurate to the millimetre size we're working in!
If I change my artboard to pixels to check the size, but then change back to millimetres, the size is incorrect. We do not work in pixels! Not all of us work for web. -
Heidi commented
Just embarrassed ourselves in front of our biggest customer, thanks a lot for still not fixing this bug.
-
Mathias Gamper commented
A print file that has been adjusted (RGB, pixel values) and optimized for the web (pixel snapping) shows a perfect alignment in the pixel preview, but has fuzzy edges after being exported to the web (no matter in which of the export dialog boxes).
The same artwork can be copied to a newly created web file and the problem is gone.
File: https://www.dropbox.com/s/metpcvhmg255fv2/Stadt-Aarau_RGB.ai?dl=0 -
Anonymous commented
I've tried as @Nitish Agarwal suggested, but it doesn't work. It's integer and make pixel perfect also didn't work. It's really frustrating, that you can't export with Illustrator properly. Please fix it as soon as possible!
-
Anonymous commented
here is the solution https://www.youtube.com/watch?v=kBgVyXYwDoI
-
Anonymous commented
still struggling with this :( how can this be fixed?
-
Alyssa commented
I'm having the same issue! I've created a load of web ads for my company and most of the 72dpi exports have 1 extra pixel and the uploads are getting rejected. Some of them it's just 1 pixel others are 2 pixels (1 extra length and 1 extra width) and others exported correctly. Completely maddening! And exporting each individually with "save for web" would have taken longer than fixing the exports in Photoshop.