Why does a transparent PNG turn white in a JPG?

Follow a transparent label through a real PNG-to-JPG conversion and check its background, edges, and output dimensions.

What fills the transparent pixels?

A PNG can store an opacity value for each pixel. The same logo can appear on a white invoice and a dark website because the page shows through transparent areas. JPEG has no alpha channel. Luma combines the image with a white background when it writes a JPEG.

This also affects the partly transparent pixels around letters and curved edges. Once blended with white, those edge colors are part of the picture. Keep the original PNG if you need to reuse the artwork on another background.

W3C PNG specification on alpha representation

A conversion you can check

We placed a red patch in the middle of a transparent 2,400 × 1,200 PNG, opened Luma’s PNG to JPG page, and downloaded the result using JPEG Web. The JPEG measured 1,920 × 960. Its top-left pixel decoded to pure white (RGB 255, 255, 255).

The smaller dimensions came from the preset’s 1,920-pixel limit. If a print service needs the original pixel dimensions, turn off Limit dimensions before converting. The output will still have a white background.

Check the file on its intended background

For a product listing with a white backdrop, inspect the edges at full size. For an overlay intended for several page colors, use a format with transparency such as PNG or WebP and preview the result on the darkest background you expect.

How libvips flattens an image against a background