Twinside/Juicy.Pixels — Issue #12: No conversion support from RGBA8 (true color with alpha) to RGB8 (true color no alpha)
Author: mcandre
Created: 2012-02-20 00:53:06+00:00
State: open

Please add support for ImageRGBA8 -> ImageRGB8. It is trivially implemented:

dropAlpha :: Vector Word8 -> Vector Word8
dropAlpha v = concat [rgb, v'] where
rgb = take 3 v
v' = dropAlpha (drop 4 v)