AI Infrastructure
An Alpha Channel Changes Which RGB Image the AI Consumer Receives
An alpha-bearing image can supply foreground colors or alpha-weighted color contributions; neither alone identifies the opaque RGB image over an agreed backdrop. Straight and premultiplied representations can produce the same required image when interpreted correctly. Compare each vision-input offer at the receiving application's specified input, including its alpha association and any promised composition. If that application accepts the declared alpha-bearing input, an opaque conversion need not be added.
01
Distinguish straight colors from associated contributions
With straight alpha, also called unassociated or non-premultiplied alpha, the RGB triplet Cs and alpha a are separate quantities. With premultiplied or associated alpha, the stored triplet is cs = a × Cs. The alpha value remains available in both representations. Association describes the relationship between RGB and alpha; four channels in RGBA order do not settle that relationship.
For normal source-over composition against an opaque backdrop Cb, apply the equations component by component. Straight input gives RGBout = a × Cs + (1 − a) × Cb. Associated input gives RGBout = cs + (1 − a) × Cb. The latter already contains the source's alpha weighting. Output alpha is a + 1 × (1 − a) = 1, so the resulting composite is opaque.
This notation follows section 5.1 of W3C's January 13, 2015 Compositing and Blending Level 1 Candidate Recommendation, a historical work in progress. The June 24, 2025 PNG Third Edition Recommendation corroborates the opaque-backdrop equation and specifies intensity samples for this calculation.
02
ALPHA48: fix the foreground and the required backdrop
Original fictional example ALPHA48 contains two image positions. Position 0 has straight RGB Cs = (4/5, 1/5, 0) and alpha a = 1/4. Position 1 has straight RGB Cs = (0, 3/5, 4/5) and alpha a = 1/2. The agreed backdrop at both positions is opaque RGB Cb = (0, 2/5, 1).
The required handoff is the resulting opaque two-position RGB image. Every color uses the same fixed linear-light RGB basis. Geometry and color basis remain unchanged, and all fractions are exact, with no quantization or rounding. This is an arithmetic illustration rather than an executed image, codec or model result; it establishes no accuracy or performance outcome.
An offer supplying foreground RGBA therefore has a different stopping point from one including the specified composition. First determine what each stored triplet means; then determine whether the offered return reaches the required image.
References: [P1]
03
Both associations produce the same required RGB image
At position 0, premultiplying the straight color gives cs = (1/4) × (4/5, 1/5, 0) = (1/5, 1/20, 0). The backdrop contribution is (3/4) × (0, 2/5, 1) = (0, 3/10, 3/4). Adding the contributions gives RGBout = (1/5, 1/20 + 3/10, 3/4) = (1/5, 7/20, 3/4).
At position 1, the associated source contribution is cs = (1/2) × (0, 3/5, 4/5) = (0, 3/10, 2/5). The backdrop contribution is (1/2) × (0, 2/5, 1) = (0, 1/5, 1/2). Their sum is RGBout = (0, 3/10 + 1/5, 2/5 + 1/2) = (0, 1/2, 9/10).
A straight-alpha return therefore carries [(4/5, 1/5, 0), (0, 3/5, 4/5)] with alphas [1/4, 1/2]. An associated-alpha return carries [(1/5, 1/20, 0), (0, 3/10, 2/5)] with those same alphas. Correct interpretation of either yields the required opaque image [(1/5, 7/20, 3/4), (0, 1/2, 9/10)].
The two foreground RGB arrays differ because one contains colors and the other contains contributions. That numerical difference is compatible with agreement on the final image.
04
Treating associated RGB as straight applies alpha twice
Suppose the receiving operation mistakes ALPHA48's associated triplets for straight colors. It multiplies cs by alpha again and then adds the backdrop contribution. The resulting expression is a × cs + (1 − a) × Cb, which weights the original source color by a squared.
At position 0, this gives (1/4) × (1/5, 1/20, 0) + (0, 3/10, 3/4) = (1/20, 1/80 + 3/10, 3/4) = (1/20, 5/16, 3/4).
At position 1, it gives (1/2) × (0, 3/10, 2/5) + (0, 1/5, 1/2) = (0, 3/20 + 1/5, 1/5 + 1/2) = (0, 7/20, 7/10).
Both positions still have the stipulated dimensions, RGB channel order and retained alpha values. Those agreements cannot correct the interpretation error. The wrong image [(1/20, 5/16, 3/4), (0, 7/20, 7/10)] differs from the promised composite because the source contribution was attenuated twice.
References: [C1]
05
Removing alpha leaves the promised backdrop unresolved
Removing alpha from the straight representation leaves [(4/5, 1/5, 0), (0, 3/5, 4/5)]. Removing it from the associated representation leaves [(1/5, 1/20, 0), (0, 3/10, 2/5)]. Neither array equals ALPHA48's required composite. Three remaining channels establish a storage shape, while the required backdrop contribution is still missing.
For this linear-light example, the associated triplets happen to equal composition over opaque black: the backdrop term would be zero. That observation does not fulfill the agreed nonblack backdrop (0, 2/5, 1). A label such as RGB output needs to identify whether it means retained foreground components, retained associated contributions, or the requested composite.
PNG's alpha-processing discussion distinguishes the supplied foreground from its background. A foreground and its alpha do not, by themselves, select the backdrop for the required image. That choice belongs in the receiving application's stated input requirement.
06
Zero alpha hides a color; full opacity hides the distinction
At alpha 0, a straight hidden red (1, 0, 0) and a straight hidden green (0, 1, 0) both map to the associated contribution (0, 0, 0). Either composites to ALPHA48's same backdrop (0, 2/5, 1). The composite therefore cannot reveal which hidden foreground color was supplied.
Dividing the zero contribution by zero alpha cannot recover either color. With positive alpha, Cs = cs / a reverses ideal premultiplication algebraically, but that does not promise recovery after quantization. Unassociating a contribution also recovers a foreground color, rather than adding the backdrop needed for the stipulated image.
At alpha 1, cs = Cs and the backdrop contribution is zero. Straight color, associated contribution and the source-over result all agree. An example containing only fully opaque positions would therefore fail to expose the association difference illustrated by ALPHA48's partially transparent positions.
References: [C1]
07
A PNG datastream rule does not define every decoded buffer
W3C's PNG Third Edition Recommendation, section 6.2, specifies that color samples in the datastream are unassociated: alpha has not premultiplied them. That establishes the stored representation. Section 4.2 separately leaves the application interface and precise form delivered by a decoder unspecified.
A PNG filename consequently cannot prove that an actual returned buffer contains straight RGB. The appointed software provider needs to identify the return representation of the decoder or API used in its offer. Carry that declaration through to the consumer receiving the values.
The PNG rule and the buffer declaration answer different questions. The former describes the datastream; the latter identifies what the next application actually receives.
References: [P1]
08
Compare offers at the required application input
Suppose fictional offer A supplies ALPHA48's foreground RGBA and identifies its alpha association. For an application requiring the specified opaque RGB image, A leaves composition outstanding. The proposal needs to assign that operation, the agreed backdrop and the resulting RGB return to an imaging or software provider.
Offer B includes the required source-over composition and promises [(1/5, 7/20, 3/4), (0, 1/2, 9/10)] on the stipulated basis. Its proposed handoff reaches the required image. A plus an explicitly assigned composition stage can address the same requirement. These are comparisons of proposed scope, not observed deliveries or application acceptance.
If the receiving application instead legitimately accepts the declared alpha-bearing foreground, A can address that representation requirement directly. Adding composition would change the delivered input. Neither association nor an opaque backdrop is a universal AI preprocessing recommendation.
For a comparable response, ask the imaging or application supplier to identify the actual returned representation, component order, numeric type and range, color basis and alpha association. Where an opaque image is required, connect those declarations to the backdrop, composition operation, responsible provider, implementation revision and priced output. A proposal that ends at foreground RGBA should make the remaining transformation visible.
Use the related sRGB guide for encoded versus linear-light arithmetic, the NV12 guide for luma and chroma grids, and the Bayer guide for sampled versus reconstructed components. ALPHA48 holds those earlier representation choices fixed and isolates which image alpha interpretation and composition deliver.
09
Discuss physical installation if the selected equipment needs it
If the selected vision-computing equipment also needs receiving, rack mounting or IT cabling, Leviathan's Complete Physical Deployment service provides a route to discuss that physical scope. Use the related service and project inquiry with a nonconfidential equipment, site, connection and physical handoff outline to establish requirements and availability.
Image processing, alpha interpretation, model preprocessing and application acceptance remain with the appointed imaging and software providers.
References: [L1]
10Sources
Primary sources
- [P1]W3C — PNG Specification, Third Edition, Recommendation, June 24, 2025Checked 2026-10-21. Sections 4.2 and 6.2 distinguish the unassociated datastream from the unspecified decoder interface. Section 13.16 gives opaque-background composition using intensity samples, independently for RGB. It does not prescribe a vision application's input.
- [C1]W3C — Compositing and Blending Level 1, Candidate Recommendation, January 13, 2015Checked 2026-10-21. Historical work in progress. Section 5.1 defines straight colors, premultiplied contributions and source-over color and alpha equations. Used for those equations, not current browser behavior or AI software requirements.
- [L1]Leviathan Systems — Complete Physical DeploymentChecked 2026-10-21. Describes equipment receiving, rack integration, onsite installation and IT cabling within an agreed physical package. Relevant where the selected equipment independently needs physical installation.
Contact
Does the selected computing equipment need physical installation?
Share a nonconfidential equipment, site, IT connection and physical handoff outline to discuss installation scope, requirements and availability.