AVIF2PNG Press
AVIF2PNG Press · Documentation

Fix AVIF to PNG Color Shift, ICC Profiles & Alpha Edges

Resolve Display P3 vs sRGB color shifts, washed-out 10-bit HDR AVIF decodes, black transparency boxes, and dark alpha fringes when converting AVIF to PNG.

Converting an .avif file into .png should produce a pixel-identical lossless copy—yet designers routinely run into oversaturated reds, dull washed-out skies, solid black boxes replacing transparency, or dark grey halos around cutout product edges. Every one of these glitches traces back to ICC color spaces (Display P3 / Rec.2020 vs. sRGB), 10-bit HDR transfer curves, or premultiplied alpha handling.

Convert single files locally with our AVIF to PNG Converter, or process entire folders of web-saved AVIF product shots in local memory with the Batch AVIF Converter.

Troubleshooting Matrix: AVIF Color Shifts & Alpha Transparency Artifacts

Visual Defect After Conversion Technical Root Cause Why It Happens Exact Fix
Colors look dull / desaturated in Windows or Chrome Source AVIF used Display P3 or Adobe RGB ICC profile; PNG exported without ICC tag Unmanaged viewers assume untagged PNG pixels are plain sRGB Convert pixel values to sRGB during canvas decode rather than stripping the ICC profile blindly
Neon oversaturated reds & skin tones on Mac Wide-gamut P3 numbers interpreted as sRGB or double-profiled in Photoshop Display P3 primary red (#FF0000) is 25% wider than sRGB red In Photoshop, use Edit → Convert to Profile → sRGB IEC61966-2.1 (never Assign Profile)
Washed-out grey highlights on iPhone / Pixel AVIF 10-bit HDR PQ / HLG AVIF flattened to 8-bit SDR PNG without tone mapping Standard PNG is 8-bit SDR sRGB unless carrying cICP HDR chunks Decode through a color-managed browser engine or tone-map HDR → SDR before saving PNG
Transparent background turns solid black or white Output accidentally switched to JPEG, or legacy tool dropped auxiliary alpha track JPEG has no alpha channel; older AVIF parsers ignore the separate AV1 alpha plane Ensure target format is PNG (RGBA 32-bit) and verify checkerboard preview before download
Dark grey halo / fringe around cutout edges Premultiplied RGB values exported as straight alpha without un-premultiplying Semi-transparent border pixels blend toward (0,0,0) black Use a Canvas/libavif decoder that converts premultiplied alpha back to straight RGBA PNG

Understanding ICC Profiles: Display P3 vs. sRGB

Modern smartphones, Apple displays, and Shopify/Cloudflare image CDNs increasingly serve AVIF images encoded in Display P3 or 10-bit BT.2020. When a browser decodes an AVIF onto an HTML5 Canvas (colorSpace: 'srgb'), the browser's color management module maps Display P3 primaries into standard sRGB automatically so the exported PNG displays consistently across Windows, Android, Figma, Canva, and Amazon Seller Central.

Where workflows break is when a command-line script or legacy desktop converter strips the embedded ICC/CICP chunk without converting pixel values. That leaves wide-gamut numbers wearing an sRGB label, flattening vibrant product greens and reds by 15–25%.

How AVIF Stores Alpha Transparency (And Why Fringes Happen)

Unlike PNG—which interleaves Red, Green, Blue, and Alpha directly inside one pixel stream—AVIF stores transparency as a separate monochrome AV1 auxiliary image (urn:mpeg:mpegB:cicp:systems:auxiliary:alpha). Two common bugs happen during conversion:

  1. Dropped Auxiliary Plane: Older image libraries decode only the primary RGB item and ignore the auxiliary alpha item, replacing transparent cutouts with solid black.
  2. Premultiplied Alpha Halos: AVIF allows an alpha_premultiplied flag so encoders compress semi-transparent edges more efficiently. If a converter copies premultiplied RGB bytes directly into a PNG (which strictly expects straight/unassociated alpha), semi-transparent anti-aliased borders darken visibly when placed over a white e-commerce page.

Always verify cutout edges against both light and dark backgrounds before uploading hero graphics or UI icons.

Next Steps for Clean Color Pipelines

Frequently Asked Questions

Why do my colors look slightly dull or shifted after converting AVIF to PNG?

Many modern web and smartphone AVIF images use a wide-gamut Display P3 or 10-bit HDR color space. If a converter strips the ICC/CICP profile without transforming pixels into sRGB—or flattens HDR without tone mapping—colors appear dull or shifted on standard displays.

Does converting AVIF to PNG preserve transparent backgrounds?

Yes. AVIF supports a full 8-bit or 10-bit alpha transparency channel stored as an auxiliary AV1 plane. Converting through a standards-compliant local browser decoder preserves smooth anti-aliased transparency inside 32-bit RGBA PNG.

Why do transparent PNG cutouts sometimes get dark grey edges after AVIF conversion?

Dark halos appear when an AVIF with premultiplied alpha is written straight into PNG without un-premultiplying the RGB channels, because PNG strictly expects straight (unassociated) alpha values. Using a proper browser Canvas/libavif decoder prevents dark fringes.

In Photoshop, should I use Assign Profile or Convert to Profile for converted PNGs?

Always choose "Convert to Profile → sRGB IEC61966-2.1" when preparing assets for web, Figma, or marketplaces. "Assign Profile" changes how existing pixel numbers are interpreted and causes severe oversaturation or washed-out skin tones.