Worried your logo will turn black or lose its see-through background? Here is how to resize a PNG safely: convert it to a full alpha channel first, then resize and save as PNG.
If you want the wider picture, our guide on how to edit png images covers the rest of the toolkit.
| Item | Value |
|---|---|
| Resize bug reported in XnView | Background went from transparent to black (December 2016, XnView 2.39) |
| Suggested fix | Convert the image to 32 bits before resizing |
| Methods that kept palette transparency without conversion | Nearest Neighbor and Bilinear |
| Higher-risk file type | 8-bit indexed PNGs with cheap alpha transparency |
| Earlier report (June 2011) | Alpha layer turned black for other resample types |
These figures come from user forum threads at XnView forum (background color changes when resizing) and XnView forum (resize does not preserve the alpha channel), not from official documentation. Software changes over time, so check the source before you rely on them.
Why a PNG can lose transparency when you resize it
A PNG can keep see-through pixels in an alpha channel, or it can fake transparency with a limited colour palette. Some resize tools cope badly with the second kind. In one forum thread, a user reported that in XnView 2.39 in December 2016 the background of a file turned from transparent to black the moment it was resized.
A forum regular called it a known issue and suggested raising the colour depth to 32 bits before resizing. The same thread adds that for palette-based images, any algorithm other than Nearest Neighbor or Bilinear keeps transparency only after you convert the file to alpha-channel transparency.
This behaviour was described for one program. Another editor may handle the same file perfectly well, which is why a quick test on a copy is worth the effort.
How to resize a PNG step by step
The order below protects transparency in most editors. The conversion step matters most when your file is indexed or palette-based.
- Duplicate the file. Work on a copy so the original stays untouched if something goes wrong.
- Check the colour mode. If the image is indexed, convert it to full colour with an alpha channel. In XnView, the forum describes this as Image, then Change color depth, then 32 bits, as laid out in the 2016 thread.
- Open the resize dialog. Lock the aspect ratio so the width and height change together and your artwork is not stretched.
- Pick a resampling method. The next sections explain the trade-off.
- Export as PNG. Keep any option that preserves alpha switched on.
- Inspect the result. Place it over a light and a dark background and look at the edges.
Which PNGs are most at risk?
The same forum thread names the file types that one program did not fully support. It lists these as 8-bit indexed files with cheap alpha transparency and greyscale files with an alpha channel, according to the XnView forum discussion.
Use this short checklist when a resize goes wrong:
- Is the file indexed (palette-based) rather than full colour?
- Is it greyscale with an alpha channel?
- Did the program open it with its alpha options switched off?
The last point is worth a look. In a February 2011 thread, the original poster suspected that XnView had reused settings from a previous installation, which would explain the lost alpha.
Which resampling method keeps transparency?
Resampling is the maths a program uses to invent new pixels. The 2016 thread names Hermite, Gaussian, Bell, Bspline, Mitchell, Lanczos and Hanning as the methods that need the conversion to alpha-channel transparency first, while Nearest Neighbor and Bilinear did not (source).
A June 2011 report on a different file described the same pattern. The user said the alpha layer turned black for any resample type other than bilinear or nearest neighbor, and that those two produced pixelated images, per the 2011 forum post.
The practical lesson is to fix the file first instead of settling for a rougher method. Once the image carries a proper alpha channel, you can choose the smoother algorithm that suits your artwork. Nearest Neighbor can still be the right call for hard-edged pixel art.
Check the result, then compress or convert
Zoom in on curves, drop shadows and soft edges, because that is where halos and black fringes show up first. If you see a dark outline, undo the resize, convert the colour mode and try again.

Once the transparency is intact, you may want a lighter file. Our walkthrough on how to compress png without losing quality picks up where this one stops. If the resized image is headed into a document, the guide on how to convert png to pdf covers that step.
This site is independent and has no affiliation with any software vendor. XnView appears here only because the forum threads describe it, and nobody paid for the mention.
Frequently asked questions
Does resizing a PNG always remove transparency?
Show answer
No. The problems in the threads were tied to one program and to particular palette-based files, so a different editor may keep the see-through areas without any extra work.
Why did my PNG background turn black after resizing?
Show answer
The usual suspect is a palette-based file that the tool cannot scale with alpha. The suggested remedy in the XnView thread was to move the file to 32 bits first and resize afterwards.
What does cheap alpha mean?
Show answer
It is the forum’s label for indexed images that mark some palette entries as transparent instead of storing a full alpha channel. The thread links this style, in 8-bit files, to resize trouble in that discussion.
Do I need special software to resize a transparent PNG?
Show answer
You need an editor that reads and writes alpha properly. Test it on a copy, then view the result over a coloured background to confirm nothing went solid.



