• Thanks for your help @halemmerich, that does work, but I agree it feels like there could be a simpler solution.
    Searching for 'BPP' in the forum (should have done that before I posted, sorry), shows quite a few people have had a similar problem.
    It all seems to stem from g.asImage() giving a 3 bpp buffer, but if I try to createArrayBuffer with 3 bpp it says: Uncaught Error: Invalid BPP.

About

Avatar for Sir_Indy @Sir_Indy started