Illustrator exports 1 pixel more

Quick Fix: Why Illustrator Exports 1 Pixel More To Each Dimension

Quick Fix: Why Illustrator Exports 1 Pixel More To Each Dimension 1024 602 Nick Saporito

Today I’ll be addressing a rather frustrating glitch in Adobe Illustrator CC. For whatever reason, Illustrator exports 1 pixel more to each dimension of a PNG or JPG file. The fix is quite simple though.

Why Illustrator Adds That Extra Pixel

After doing a little digging around, I discovered (thanks to Pixel & Bracket on YouTube) that it’s because of the position of the artboard on the canvas as it relates to the X and Y axis.

Whenever the artboard is positioned in a location that includes a decimal value, Illustrator rounds up to the nearest pixel, meaning your exported document ends up being 1 pixel larger than the actual artboard on each dimension.

Changing the position of the artboard on the canvas

If you grab the artboard tool (shift + o) and select your artboard, you’ll see in the top toolbar where it’s positioned relative to the X and Y axis. The decimal values are highlighted in yellow. This is the culprit.

The Fix

The fix is quite easy. All you have to do is manually remove the decimal values from each axis and that should prevent Illustrator from exporting 1 pixel more.

Updated X and Y axis values

Once you’ve done so, be sure to re-center your design relative to the artboard. The position of it has now changed and will not export properly if you don’t, even if it’s just a slight decimal change.

Now try exporting your design again. It should export at the proper dimensions.

If any portion of these directions is unclear, be sure to watch the brief 2-minute video tutorial I put together at the top of the post.

Apparently this glitch has gone unaddressed by Adobe for a while because search queries for it date all the way back to 2013. I’m used to dealing with glitches like this when using Open Source software, but when it comes to industry-standard software that costs a lot of money, I expect better. Hopefully Adobe addresses this soon.

Learn To Master The Software

Gain a complete understanding of your favorite design apps with my comprehensive collection of video courses. Each course grants access to our private community where you can ask questions and get help when needed.

  81 Videos
  11 Modules

The Inkscape Master Class

Tutorials, quizzes and practice exercises for learning every tool & feature in Inkscape.

Price: $17
  82 Videos
  10 Modules

The Affinity V3 Master Class

Tutorials, quizzes and practice exercises for learning every tool & feature in Affinity.

Price: $22
  98 Videos
  7 Modules

Illustrator Master Class

Tutorials, quizzes and practice exercises for learning every tool & feature in Illustrator.

Price: $17
  70 Videos
  9 Modules

GIMP Master Class

Learn how to use all of the primary tools and features in the GIMP application.

Price: $17

View All Courses

Nick Saporito

Hi, I'm Nick— a Philadelphia-based graphic designer with over 10 years of experience. Each year millions of users learn how to use design software to express their creativity using my tutorials here and on YouTube.

All stories by: Nick Saporito
Subscribe
Notify of
guest
65 Comments
Inline Feedbacks
View all comments
Beth
Beth
January 15, 2021 3:51 PM

I’m working with multiple artboards in one Illustrator file and exporting for screens and positioning each artboard on an integer solved the problem of having an extra pixel on export. Thanks so much for the help!

Daniel
Daniel
December 9, 2020 9:13 PM

Actually, that’s not a 100% solution. Working with low scale objects, with odd measures, like a 125 x 125 pixel image, it keeps showing the same problem. I believe is due odd measure will display a decimal position anyway. Just change the reference and it can be checked (i.e the reference is top-left and will be something “.5” when changed to center).

The only solution I found out is to move this artboard to x0 y0. On such a position, the images won’t add any pixel.

Lingga
Lingga
August 31, 2020 11:36 AM

Thank you! Its HELP ME A LOT

Also, is there any way to prevent us without getting decimal number? is there any option bout it?

Christina Nelson
Christina Nelson
August 5, 2020 1:05 PM

THANK YOU – been struggling with this for years!

Hen
Hen
July 8, 2020 10:57 PM

Great, now I just have to change my 210 individual art boards!

Juliana
Juliana
May 20, 2020 12:29 PM

Amazing, had been struggling with this for years. Thank a lot!

Abisola
Abisola
May 5, 2020 9:47 AM

Thanks a lot.

Erick Rangel
Erick Rangel
April 28, 2020 2:06 PM

This helped out so much. Thank you!

Tom K
Tom K
February 5, 2020 8:02 PM

Hey Nick, thanks for this thread. I was able to fix all my artboard sizes, except one and I challenge you to try this too. I have an artboard in Illustrator set up at 1200×627 and the X and Y coordinates are at zero. But when I do an export for screens my file size exported is 1200×628. Any guesses on how to fix it?

Anonymous
Anonymous
January 29, 2020 2:36 PM

You saved us hours of time! Can`t thank you enough!

Steffie
Steffie
November 25, 2019 7:32 AM

If you are still getting the 1px issue even after trying the above, another fix I found was that if you have a clip group on your artboard that seems to mess with the export size. Try releasing the clip group and then exporting, that worked for me!

Anonymous
Anonymous
November 24, 2019 3:19 PM

Bless you thanks for the fix!

Rita
Rita
August 29, 2019 3:21 AM

– Except if App icon size is odd number example 29×29, better to create a new file 29px x 29px with x and y = half the height and half the width (X14.5 x Y14.5) if 167, it becomes 83.5×83.5 etc.. .
and then center the artwork to dartboard.

Anonymous
Anonymous
August 25, 2019 2:46 PM

when set x and y both to 0, sometimes still exports extra 1 px 🙁

Ellie
Ellie
July 16, 2019 4:50 AM

This is awesome, I never understood why Illustrator did that. Thank you so much!

Rico
Rico
July 9, 2019 11:26 AM

Thank you! I might add an even easier solution. I had already set up 20+ artboards so I wasn’t looking forward to manually adjusting each artboard location and then realigning the artwork. So what I did is leave the artboards as they were, saved the document and then selected the ‘Rearrange all artboards’ option in the artboard palette. I just went with the default settings assuming that wherever Illustrator relocated the artboards, the positioning would have an even numerical value without any decimals. I guessed right! Exported the images and they were perfect. Hope that helps!

Sam
Sam
Reply to  Nick Saporito
December 14, 2020 3:46 PM

thank you for sharing this. I was excited when I found this fix but after trying it my art still was being altered by AI. After rearranging the artboards as you suggested, it exported perfectly. Thank you both!

Anonymous
Anonymous
June 26, 2019 2:43 AM

Thanks a lot

JT
JT
May 28, 2019 4:29 PM

OMG! Thanks I was so frustrated trying to figure out why this was happening! I’m assuming this has been reported to Adobe over a year ago…

wanda
May 13, 2019 8:48 AM

Thank you so much!!!!!

Ril
Ril
April 6, 2019 7:37 PM

Thanks! Help my time 🙂

1 2 3