Skip to main content
Participating Frequently
November 3, 2025
Resuelto

Unwanted transparent border on some .png exports

  • November 3, 2025
  • 3 respuestas
  • 359 visualizaciones

Hello Everyone,

 

I've had this issue for a little while now and I can't see to find the solution doing a Google search. If I have an image in Photoshop that I'm finished with and I need to export it as a .png file, I'm often gettting a transparent border that's visiable on the exported file. If I add that image to a webpage, there's a faint grey line visible around the frame. If I bring that same exported .png back into PS and zoom in, there's a visible frame all around the image that looks to have transparent pixels. Those transparent pixels are not present in the original PS file.  I'm assuming it's a simple fix, I just can't seem to find it. I do drop the pixel size dimensions a little before exporting the .png. As an example, the original PS file might be 1412 W x 1521 H, and I downsize to 928 W x 1000 H for the .png export.

 

Has anyone else had this happen, and is there a solution?

 

I've attached close up screenshots of a white corner area where in the original PS file you can see it's solid white to the edge, but on the exported and then imported .png file, you can see the transparent border. The dark grey area is just the background PS canvas in the screenshot.

 

 

Mejor respuesta de Stephen Marsh

If the original isn't flattened, try duplicating the doc and flattening before resizing and or exporting, then close the dupe without saving.

3 respuestas

Participating Frequently
November 4, 2025

Maybe this will help with an answer. I'm getting that transparent border only when I adjust the size of the image first (slightly smaller) and then export as a .png. If I then bring that exported .png back into PS, I can see that transparent border. However, if I save the original PS doc as a .png at it's original dimensions, then bring that .png back into PS, there is no transparent border. I can then change the image size of that .png to the slightly smaller scale and save it. Close the doc and then bring it back into PS, and the transparent border is still gone. So the good news is, I have found a work around. However, I'd like to solve this without that second step of having to bring the saved .png at original scale back into PS and then making it smaller. As I'm processing hundreds of images, that doubles the steps needed. This was never an issue in years past, I've only noticed this glitch in the last year or so. Doe sany of that info help for a solution?

barbara_a7746676
Community Expert
Community Expert
November 4, 2025

When you export the PNG, make sure that Transparency is not selected.

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertRespuesta
Community Expert
November 3, 2025

If the original isn't flattened, try duplicating the doc and flattening before resizing and or exporting, then close the dupe without saving.

Participating Frequently
November 4, 2025

The original PS doc was just one layer. It was an old photograph that I cleaned up and restored. So I don't think it's a layering issue. Thank you for the suggestion though.

Legend
November 4, 2025

There is some kind of margin.

 

Larry