nGL icon indicating copy to clipboard operation
nGL copied to clipboard

Update tex2ngl.py to work for more types of images

Open miracade opened this issue 2 years ago • 1 comments

I recently found that tex2ngl currently doesn't work for images which aren't in RGB or RGBA format (for example, PNGs in indexed mode). PIL's Image.convert() method is an easy fix

miracade avatar Aug 03 '22 00:08 miracade

Make sense to me. From my testing, converting from a format with an alpha channel to RGB doesn't raise any warnings or anything so this shouldn't break anything

miracade avatar Aug 07 '22 07:08 miracade