Say I have an BGRA image as numpy array that looks pretty much like this:
numpy
[[[233 228 230 128] [233 228 230 128] [233 228 230 0] ...