Able to disable JOGL's PNG decoder?

Posted by tag on
URL: https://forum.jogamp.org/Able-to-disable-JOGL-s-PNG-decoder-tp4027701.html

We have imagery coming from many places and some of it is PNG interlaced and PNG indexed. We have no control over the format of this imagery. The built-in JOGL TextureIO PNG decoder does not support PNG interlaced or indexed, but ImageIO does (as did JOGL 1's TextureIO). Since ImageIO is a built-in fallback in TextureIO, we want to disable the JOGL PNG decoder so ImageIO is used. Is there a way to do this?

I am aware that we could use ImageIO ourselves and pass TextureIO a BufferedImage, but we're porting code from JOGL 1 that uses TextureIO in many places.