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

White border around exported PNG File in illustrator

Community Beginner ,
Jun 19, 2023 Jun 19, 2023

Copy link to clipboard

Copied

I have been exporting a Png file in illustrator using the art optimised anti aliasing feature. I keep getting this white line around the edges of my png and it doesn't look appealing for the video I am putting the png over. Any help out there with information of how to get rid of this hairline border.

TOPICS
Bug

Views

6.4K

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
community guidelines

correct answers 3 Correct answers

Community Expert , Jun 19, 2023 Jun 19, 2023

Make sure that the image you are exporting is in whole pixels only and that it is located so that the edges are aligned to whole pixels on the grid.

Votes

Translate

Translate
Adobe Employee , Jun 30, 2023 Jun 30, 2023

Hello @Ben Milner,

 

Thank you for bringing up the issue of a white border around your exported PNG file in Illustrator. The suggestion from Larry is indeed helpful, and aligning your artwork to whole pixels can prevent such artifacts.

 

In addition to that, here are some additional steps you can ensure before exporting to avoid any unwanted white borders:

 

  • Ensure your artboard size matches the dimensions of your artwork. If there is any extra space on the artboard, it might be exported as a w
...

Votes

Translate

Translate
Community Expert , Jun 30, 2023 Jun 30, 2023

To add to the suggestions, export at 72 ppi or a multiple thereoff like 144, 288. 150 or 300 will caculate additional pixels that may result in fractional values and since a fractional pixel does not exist, additional pixels.

Votes

Translate

Translate
Adobe
Community Expert ,
Jun 19, 2023 Jun 19, 2023

Copy link to clipboard

Copied

Make sure that the image you are exporting is in whole pixels only and that it is located so that the edges are aligned to whole pixels on the grid.

Votes

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
community guidelines
Adobe Employee ,
Jun 30, 2023 Jun 30, 2023

Copy link to clipboard

Copied

Hello @Ben Milner,

 

Thank you for bringing up the issue of a white border around your exported PNG file in Illustrator. The suggestion from Larry is indeed helpful, and aligning your artwork to whole pixels can prevent such artifacts.

 

In addition to that, here are some additional steps you can ensure before exporting to avoid any unwanted white borders:

 

  • Ensure your artboard size matches the dimensions of your artwork. If there is any extra space on the artboard, it might be exported as a white border.
  • Verify that no clipping masks or hidden objects are extending beyond the edges of your artwork.
  • Check for any hidden layers or objects that might be contributing to the white border.
  • Double-check your export settings in the "Save for Web" or "Export As" dialog. Ensure that you have selected the appropriate file format (PNG) and that you have set the background as transparent.
  • Ensure the X & Y and W x H values don't have a decimal value. Also, you can try setting the Reference Point as shown in the screenshot below
    Anshul_Saini_0-1688140653914.png

 

By taking these steps, you can minimize the chances of encountering a white border around your exported PNG file. If the issue persists, please don't hesitate to share more details or reach out for further assistance.

 

Best regards,

Anshul Saini

Votes

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
community guidelines
Community Expert ,
Jun 30, 2023 Jun 30, 2023

Copy link to clipboard

Copied

To add to the suggestions, export at 72 ppi or a multiple thereoff like 144, 288. 150 or 300 will caculate additional pixels that may result in fractional values and since a fractional pixel does not exist, additional pixels.

Votes

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
community guidelines
New Here ,
Feb 06, 2024 Feb 06, 2024

Copy link to clipboard

Copied

Experiencing a similar issue. I have a solid colour bloc that fits the artboard. I've tried extending the bloc beyond the artboard and only exporting the artboard but in small resolution (I need it for a background for a newsletter so it needs to be edge-free for repeating as a pattern) it keeps giving it a faint white edge. When I export it in higher resolution, it looks like the edge is gone.

 

Turned on Pixel Preview and it shows this grey edge on the left even though stroke is zero:

 

V324314251403_0-1707288170554.png

 

@Larry G. Schneider how do I "make sure that the image (...) is in whole pixels only"?

Votes

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
community guidelines
New Here ,
Feb 06, 2024 Feb 06, 2024

Copy link to clipboard

Copied

Votes

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
community guidelines
Community Expert ,
Feb 07, 2024 Feb 07, 2024

Copy link to clipboard

Copied

LATEST

As was already mentioned in Ansul's answer above: "Ensure the X & Y and W x H values don't have a decimal value. "

Votes

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
community guidelines