Exporting to PNG from Adobe Illustrator cutting off edges

Luther Baker picture Luther Baker · Mar 31, 2010 · Viewed 64.9k times · Source

I created a 40px x 40px image in Adobe Illustrator CS4. I saved as an .ai file and then tried to export as a PNG.

Adobe Illustrator automatically crops the background and tightens the export to a rect around all the objects which if fine. In this case, I am not working edge to edge so my image is not quite 40px wide.

But, unfortunately, Illustrator is not exporting the entire image. I end up with an image that is 34px wide. Indeed, the icon I draw starts on the left hand side but the right edge of my object cut off.

Any ideas why this is happening? I can't imagine Illustrator CS4 can't correctly to export to PNG.

Answer

glazur picture glazur · Mar 31, 2013

File/Export option gives you much more options. When the Export dialog box apears, under the save type as PNG, you have "Use Artboards" radio button. Tick that and PNG will be saved as a whole page instead of automatic croping. A plus is that you'll have a second dialog box where you can set the PNG's resolution.