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:
- Dropped Auxiliary Plane: Older image libraries decode only the primary RGB item and ignore the auxiliary alpha item, replacing transparent cutouts with solid black.
- Premultiplied Alpha Halos: AVIF allows an
alpha_premultipliedflag 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
- Standardize uploads for design tools and marketplaces in our Photoshop, Figma & E-Commerce Workflow.
- Compare 10-bit AVIF, lossless PNG, and WebP tradeoffs in AVIF vs PNG vs WebP or AVIF vs PNG Technical Specs.