PNGPixelRect can only handle Lum/RGB/RGBA [1/3/4 bpp] images for now
Posted by thefrog69 on Nov 15, 2017; 10:14am
URL: https://forum.jogamp.org/PNGPixelRect-can-only-handle-Lum-RGB-RGBA-1-3-4-bpp-images-for-now-tp4038318.html
Hello,
I'm migrating to JOGL2 from JOGL1 and I have the following problem.
I load a PNG into a bufferedimage and then use it as a texture
BufferedImage thumbNail=ImageIO.read(new File(localPath+catalogPath+path + txtName));
AWTTextureIO.newTextureData(GLProfile.getDefault(),thumbNail, false));
And I get this exception.
java.lang.RuntimeException: PNGPixelRect can only handle Lum/RGB/RGBA [1/3/4 bpp] images for now. BytesPerPixel 8
Is there a Workaround ? I cannot resave all my PNGs
I did not have this problem in JOGL1
Thanks for your help