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.
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.
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:
To add to the suggestions, export at 72 ppi or a multiple thereoff like 144, 288. 150 or 300 will calculate additional pixels that may result in fractional values and since a fractional pixel does not exist, additional pixels.
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.
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:
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
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 calculate additional pixels that may result in fractional values and since a fractional pixel does not exist, additional pixels.
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:
@Larry G. Schneider how do I "make sure that the image (...) is in whole pixels only"?
Copy link to clipboard
Copied
YESS, this video solved it: Remove extra one pixel in exported artwork | Adobe Illustrator CC | Quick Tips - YouTube
Copy link to clipboard
Copied
As was already mentioned in Ansul's answer above: "Ensure the X & Y and W x H values don't have a decimal value. "