When there is not already an alpha channel, use of the proposed `ensureAlpha()` will add a fully-opaque (i.e. no transparency) alpha channel. When there is already an alpha channel, use of the proposed `ensureAlpha()` will be a "no-op". This should help when RGBA raw pixel data is required regardless of input channel count.
Activity
Add ensureAlpha op, adds alpha channel if missing #1153
lovell commentedon Jan 13, 2019
v0.21.2 now available with this feature.