Diagnosing Dark Cutout Fringes Caused by Double-Premultiplied AVIF Alpha
How Premultiplied vs. Straight Alpha Mismatches Create Gray Borders
Dark gray halos around anti-aliased logos and hair masks almost always stem from multiplying straight RGB channels by alpha/255 twice. If an encoder already stored premultiplied samples without setting the ISO iref prem box—or if a buggy converter multiplies straight auxiliary alpha pixels a second time during export—every 50% transparent pixel loses half of its foreground energy, shifting bright red (255, 0, 0) at alpha 128 down toward muddy maroon over white.
This diagnostic renders a paired 2W x H split proof image placing your asset over #000000 on the left and #ffffff on the right in linear light, while calculating exact per-column RGB deltas against a simulated double-premultiplication defect. If your source file was mistakenly premultiplied upstream without metadata, switching Alpha Policy to Unpremultiply Once immediately restores clean edge luminance.
- Measures exact 8-bit code-level darkening prevented across semi-transparent alpha gradients.
- Renders an instant 2x-wide black/white split PNG for visual QA sign-off.
- Allows interactive toggling between Keep Straight RGBA and Unpremultiply Once recovery.