Extra pixel added to image size when exported
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
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.
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.
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.
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.
Brad Fischer commented
Same issue. "Export as"PNG adds random extra pixel dimension; "Save for web" keeps proper dimensions
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.
This may not be the solution you are looking for, but this can be solved (in both Illustrator and PS) by cropping the unwanted "rim".
Sarah Khan (Illustrator team) commented
Can you please share the file with which issue is happening on firstname.lastname@example.org
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.
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)
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