'unable to transform src image' creating texture

hi
i am facing problem creating a texture from an image size 5400 X 5400.
It gives ImagingOpException: Unable to transform image . This image is being read from a spatial database. i tried saving the image as a jpeg and creating texture as
TextureIO.newTexture(new File(“img.jpg”));
this work perfectly allright… i get the problem only when creating the texture from the same image fetched from database. i guess it may be due to the image size , it is not a power of two , but then it works for the same image size read from a file instead.

any help is appreciated

you better read the picture from a File thus it will be easier to cache data. I mean there are many ways to load pics in Java, but the File mode still acquires less memory.
You got ImageIO.setUseCache to get File caching while using image streams. Plus you can use the new JAI imageio Streams Channels to buffer data etc.

Hence you should check your code for different ways of loading pictures for your textures BEFORE you can transform them. And it is a good idea to check for a data buffer Manager like the MediaTracker for your renderings in Jogl.

:slight_smile: