Highlighted

Getting additional pixel when exporting for screens in Illustrator

New Here ,
Feb 26, 2018

Copy link to clipboard

Copied

Hello,

 

I am creating 300+ icons and when I export them for screens there is always an extra pixel.
Ex. they are supposed to be 24x24 but they save as 25x24.

 

I have tried multiple trouble shooting techniques that I have read in forums but nothing I have tried seems to work.

 

Has anyone found a solution to this?

 

THANKS!

 

{Renamed by MOD}

Adobe Community Professional
Correct answer by Ton Frederiks | Adobe Community Professional

Yes, it's easy to do that.

Select the Artboard tool.

Go to the Properties Panel.

Select Rearrange All.

Set the number of colums and spacing.

They will all be set to a whole XY number

TOPICS
Import and export

Views

1.0K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Getting additional pixel when exporting for screens in Illustrator

New Here ,
Feb 26, 2018

Copy link to clipboard

Copied

Hello,

 

I am creating 300+ icons and when I export them for screens there is always an extra pixel.
Ex. they are supposed to be 24x24 but they save as 25x24.

 

I have tried multiple trouble shooting techniques that I have read in forums but nothing I have tried seems to work.

 

Has anyone found a solution to this?

 

THANKS!

 

{Renamed by MOD}

Adobe Community Professional
Correct answer by Ton Frederiks | Adobe Community Professional

Yes, it's easy to do that.

Select the Artboard tool.

Go to the Properties Panel.

Select Rearrange All.

Set the number of colums and spacing.

They will all be set to a whole XY number

TOPICS
Import and export

Views

1.0K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 26, 2018 0
Adobe Community Professional ,
Feb 26, 2018

Copy link to clipboard

Copied

Which version?

Are both the artboards and the objects aligned to whole pixels?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 26, 2018 0
New Here ,
Feb 27, 2018

Copy link to clipboard

Copied

Its Illustrator CC the newest version. How do I know if the objects and artboards are aligned to the whole pixels?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 27, 2018 0
Adobe Community Professional ,
Feb 27, 2018

Copy link to clipboard

Copied

Select them with the artboard tool and check the X, Y, W, H values.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 27, 2018 0
New Here ,
Feb 27, 2018

Copy link to clipboard

Copied

There's multiple artboards so they shouldn't have any point numbers ex 124.3 they should all be whole?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 27, 2018 0
Adobe Community Professional ,
Feb 27, 2018

Copy link to clipboard

Copied

Yes, it's easy to do that.

Select the Artboard tool.

Go to the Properties Panel.

Select Rearrange All.

Set the number of colums and spacing.

They will all be set to a whole XY number

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 27, 2018 2
New Here ,
Feb 27, 2018

Copy link to clipboard

Copied

THANK YOU SO MUCH!!!!!!
That worked and was super easy to fix.
I really appreciate it!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 27, 2018 0
Adobe Community Professional ,
Feb 27, 2018

Copy link to clipboard

Copied

Good to hear that worked for you.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 27, 2018 0
Explorer ,
May 09, 2020

Copy link to clipboard

Copied

My artboard and the objects are aligned to whole pixels and I'm still facing the issue.

 

Can it be the clipping mask?

 

 

artboard.jpgobjects.jpg

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Explorer ,
May 09, 2020

Copy link to clipboard

Copied

Hi Ton, rearranging them is not an option for me. They all have different sizes.

 

I've removed the decimals from X and Y and I'm still facing this issue. Any ideas on how to sort it out? Thanks.

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Adobe Community Professional ,
May 09, 2020

Copy link to clipboard

Copied

Can you share an example .ai file that shows the problem?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Explorer ,
May 09, 2020

Copy link to clipboard

Copied

The artboard is set to whole numbers.

 

artboard1.png

 

But when I align the objects to the artboard, Illustrator always adds 0,5 to the X.

object1.png

 

https://drive.google.com/file/d/1hBa1XDzmb0CIYjg94dPrVTV2C10ic7FZ/view?usp=sharing

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Explorer ,
May 09, 2020

Copy link to clipboard

Copied

Illustrator still adds the extra pixel (to height and to the width), even when I adjust X to a whole number (2925px).

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Explorer ,
May 09, 2020

Copy link to clipboard

Copied

I just double-checked the dimensions of all artboards. The ones with whole numbers ending in 0 were exported properly. All the others had the extra pixels.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Adobe Community Professional ,
May 10, 2020

Copy link to clipboard

Copied

Thank you for sharing the file!

I see what is causing your problem, you measure from the center.

I also see why you cannot rearrange artboardx, the working area is too full to move them.

Here is your artboard 2, the X Y looks good, but you are measuring from the center.

1 .png

Here is what happens when you measure from the upper left (which is where the pixelgrid origin starts), you get fractional pixels.

2.png

When you correct these fractional X Y coordintates, no additional pixels will be generated when you export at 72 ppi.

3.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 10, 2020 1
Explorer ,
May 25, 2020

Copy link to clipboard

Copied

I am facing  the same issue, Illustrator is extremly annoying and time consuming when it comes to simply making the artwork export at pixel perfect sizes. I am using full pixel dimensions, my art is not currenlty on an artboard as i am using the export assets functions, yet illustrator is still is adding an extra pixel to my exported png 

GWATdesign_0-1590456418960.png

Why is this so difficult, Even if i was using sub pixel sizes, or odd number sizes I WOULD NEVER WANT my artowrk exported with a fuzzy white line or extra pixels, simply round up the artwork to nearest pixel LIKE EVERY SINGLE OTHER PROGRAM DOES. However there is no EXCUSE when i am taking the time to use full pixel sizes and making sure my artwork is aligned to full pixels! this is a BUG

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 25, 2020 0
Adobe Community Professional ,
May 26, 2020

Copy link to clipboard

Copied

Please include the reference point symbol in your screenshot.

And also please describe your issue.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 26, 2020 0
Explorer ,
Jun 07, 2020

Copy link to clipboard

Copied

Hi Monika, here is a screenshot of the asset i am trying to export and its dimensions 
Screen Shot 2020-06-08 at 10.45.43 am.png

Here are the dimensions of the artboard
Screen Shot 2020-06-08 at 10.48.33 am.png

This is what the exported PNG looks like 
Screen Shot 2020-06-08 at 10.50.26 am.png

Clearly showing extra pixels, I have been dealign with this issue for years, since it first appeared in Illustrator and usually it is solvable by aligning to full pixels, however with this case there is no logic i can see, there are many other assets on this artboard which export exactly as expected, this one has no clipping masks or anything to explain why it as adding extra pixels. I know i can solve it by cropping it after the fact or exprting it on its own artboard at the exact dimensions, but these are extra steps I shouldnt need to do. Any help would be appreciated, thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 07, 2020 0
Adobe Community Professional ,
Jun 08, 2020

Copy link to clipboard

Copied

Your artboard (1730 X 4630) is much larger than your export (600 X 252).

What did you export, maybe another artboard?

If you turn on View > Show Transparency Grid, are the transparent pixels visible?

What were your export settings, I see 71 ppi, which is not a common resolution?

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2020 0
Explorer ,
Jun 08, 2020

Copy link to clipboard

Copied

yes the artboard is a different szie - it contains several graphics, the artwork / asset I exported from the artboard is at the dimensions I listed.  I exported the asset via the asset export panel - I AM AWARE that i could place each individual asset on its own artboard at the exact dimensions and export the artboards but that is several extra steps i should not have take, i did have to take those steps though as the asset is not exporting at correct dimensions - This is the problem.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2020 0
Explorer ,
Jun 08, 2020

Copy link to clipboard

Copied

If you turn on View > Show Transparency Grid, are the transparent pixels visible? there are no extra transparent pixels - no there are no extra pixels- as I said I have been dealign with this issue for years, I know how to use illustrator and set up the artwork - here is an outline view 

 

Screen Shot 2020-06-09 at 3.13.48 pm.png

What were your export settings, I see 71 ppi, which is not a common resolution? I wasnt, the document is set at 72dpi and it is 72dpi when viewed in finder - for some reason Adobe Bridge shows 71 dpi, I assume this is a glithc within Bridge. 
Screen Shot 2020-06-09 at 3.15.08 pm.pngScreen Shot 2020-06-09 at 3.25.56 pm.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2020 0
Adobe Community Professional ,
Jun 09, 2020

Copy link to clipboard

Copied

Yes, the 71 ppi is a Bridge bug, I also see 143 ppi for my screendumps which should be 144.

Your problem is different from the original post.

That was about extra pixels added caused by anti aliasing, an additional single pixel edges.

You get many extra pixels at the top.

Instead of guessing, it would be helpful to have a look at the Illustrator problem file.

Can you share it (CC file sharing, DropBox, Google, WeTransfer...)?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 09, 2020 0
Explorer ,
Jun 09, 2020

Copy link to clipboard

Copied

Thanks for the reply again, yes the single pixel issue caused by sub pixel alignment is the issue I usually face but its solvable easily by aligning to pixel grid. The other issue which still pops occasionally is exporting assets which contain a clipping mask, sometimes illustratror exports the full size of the graphic within the clipping mask. but that isnt what's causing this issue yet the results are the same - extra unwanted pixels. it seems like there is a hidden graphic somewhere within a group that is not revealing itself via the usual unhide all method. I will look into the actual layers and sublayers and see if I can find the culprit before sharing. 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 09, 2020 0
Explorer ,
Jun 09, 2020

Copy link to clipboard

Copied

After looking deeper I couldnt find anything that is causing this. I copied the offending graphic into its own illustrator document and tested it and does the same thing. Here is a link for you to inspect if you could  If you open it and go to document set up - edit artboards and then click on the graphic it creates an artboard around the graphic with the same extra pixels, there doesnt seem to be anything causing these extra pixels. If you ungroup the graphic and do the same above steps on the background white box, it creates an artboard at the correct dimensions, so its something to do with the group itself, but it needs to be a group to export via the asset export panel. Obviously I have already solved this by putting the graphic on its own artboard at the correct dimensions and doing a save for web, but those are extra steps we should be able to avoid and it would be good to find out whats causing this as the extra pixels issue just keeps coming back in one form or another. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 09, 2020 0
Adobe Community Professional ,
Jun 10, 2020

Copy link to clipboard

Copied

Maybe I'm lucky (I think I am) but whatever I try I cannot get the extra pixels.

With/without artboards, save for web, asset export, all give the correct pixel amount.

The only things different are the missing image and the font, I do not have the Gilberto font.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 10, 2020 0
Adobe Community Professional ,
Jun 10, 2020

Copy link to clipboard

Copied

Please select the text object with the selection tool and post a screenshot (it must have the bounding box in it. Perhaps that font is the culprit.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 10, 2020 1