Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Image export - everytime 1 px bigger than the canvas or element

Community Beginner ,
Oct 26, 2017 Oct 26, 2017

Hello everybody,

I have a problem with the Illustrator export as pixel based images.
JPEGs and PNGs are everytime 1 pixel bigger in width or height

in the resulting image than the elements or canvas/artboard dimension

is set in illustrator.

Because I have to create a new GUI with background images and a
full set of icons it is really inconveniant to open every PNG in Photoshop
again for resizing and re-saving.
Ticking the pixel grid button doesn't solve the problem unforunately.

Can you help me with it? Thanks for your replys in advance...

4.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 20, 2025 May 20, 2025

If the size in pixels is the size you need in cm than export at 72 ppi. This will not change the number of pixels in your file. PPI is just metadata, it will tell an application how many pixels must fit into an inch. With a low ppi you will get a large size, with a high ppi it will be small, all with the same amount of pixels.

Photoshop can change the PPI without changing the number of pixels if you go to Image > Image Size and Uncheck Resample.

Translate
Adobe
Community Expert ,
Oct 26, 2017 Oct 26, 2017

Work with pixels as units.

Make sure that the X Y position coordinates and the Artwork dimensions don't contain fractions.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 26, 2017 Oct 26, 2017

Can you post a link to one of the actual files?

What is the unit of measure that your document settings are on? Is your artboard set up for the exact dimension in pixels?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 26, 2017 Oct 26, 2017

We have made a fix in our latest release in Export for Screens and Asset Export. To use them you need to go to File > Export > Export > Export for Screens or Window > Asset Export. You need export them using scale or width/ height only.

P.S. : Your art and artboard should be pixel aligned. Also, all strokes aligned inside.

Thanks & Regards

Nitish Agarwal

Illustrator Team

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 23, 2019 May 23, 2019

Hi all,

What Nitish Agarwal​ says is correct, but it took more steps than I realized to get everything working properly.

Here are the steps I had to take:

  • Rulers
    • Units set to pixels
  • Artboard
    • Width and height set to whole pixels
    • Position set to 0, 0
  • Artwork
    • Expand all appearance, including fills and strokes (so no odd-sized or oddly-positioned strokes to worry about)
    • Width and height set to whole pixels
    • Make sure the positioning reference indicator in the top menu bar is set to top-left (usually it defaults to center, which is bizarre)
    • Position set to 0, 0
  • Exporting
    • I used File > Export for Screens...

Cheers!

-Josh KLPA

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 19, 2025 May 19, 2025

Very useful tip Thank you . I had the same problem lets see if it will be fixed now 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 19, 2025 May 19, 2025

Hi , when  you need to print for fabric though on 300ppi Exporting for Screens is not good . what happens then ? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2025 May 19, 2025

Don't use 300, use 288 which is a multiple of 72.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 20, 2025 May 20, 2025

Still the same .. I m goinmg crazy here .. I design in cm because i make seamless print for clothes . Then whn i have to export i switch to pixels ( as in cm it loses some px and makes white lines in printing) . When i export in TIFF - which is the optimal file format for fabric printing - it triples up the size of my file! so it comes huge ! why is this happening ?? help 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 20, 2025 May 20, 2025

If the size in pixels is the size you need in cm than export at 72 ppi. This will not change the number of pixels in your file. PPI is just metadata, it will tell an application how many pixels must fit into an inch. With a low ppi you will get a large size, with a high ppi it will be small, all with the same amount of pixels.

Photoshop can change the PPI without changing the number of pixels if you go to Image > Image Size and Uncheck Resample.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 25, 2025 May 25, 2025
Thanks a lot !!!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 25, 2025 May 25, 2025
LATEST

Good to hear that helped.

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