Illustrator is cropping exported icons despite artboard being Fit to Selected Art

I’m trying to export certain graphics from an Illustrator file. I’m selecting the object, fitting the artboard to the selected artwork, and saving for web & devices, PNG-24 format. When I look at the art in Illustrator, it is properly capturing the artwork, but when I look at the outputted file, I am losing a few pixels on the right and bottom sides of the image. Take the included image as an example, you can see it’s not a perfect circle– the top and left sides look correct, but the right and bottom sides come to too much of a flat part. Nothing is obscuring the art in Illustrator, and I can’t figure out what is causing this. Any help is appreciated! Thanks.

enter image description here

Answer

If, ‘Use artboards’ on export is unchecked…
I think problem is in fractional size of artwork.

While export, artboard size ain’t matter, AI automatically fit the size of exported image to visible area. But this fit ain’t precise, it may clip fraction of a unit and then extend it with ppi.

To avoid that, turn document units to pixels and measure Your symbol, decimal part should be close to 0.

You may also look at this question: Illustrator CC: align new objects to pixel grid – TURN OFF!

If, ‘Use artboards’ on export is enabled, the problem is in size of artboard.

Attribution
Source : Link , Question Author : John Berger , Answer Author : Community

Leave a Comment