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.
-
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
-
Volodymyr commented
@Ashutosh Chaturvedi
Not fixed. I haven't changed float 172.34 coordinate or artboard. I've exported this file as File->Export->Export For Screens.
Result was image 105x104, but should be 104x104 as artboard size.Yes, I'm using a beta build 22.0.0.
-
Volodymyr commented
Here is my bug about this problem https://illustrator.uservoice.com/forums/601447-illustrator-bugs/suggestions/30992416-wrong-png-size-if-artboard-coordinates-in-float
-
Volodymyr commented
This is because you artboards or slices coordinates is in float position like 123.45, but you need to set it to 124 for example.
-
Simon commented
When exporting artboards via 'Export for Screens' 1 pixel is added randomly horizontally and/or vertically to the export.
Bug appears in both Windows and macOS.
Last version to not contain the bug was 2015.3