How do I load a page from a multi-page TIFF file to a gl.texture?

bohemian.surrealist@gmail.com's icon

Hey folks,

I'm trying to load a single page from a 20-page TIFF file to be used as a texture in OpenGL. How can I read a specific page into a gl.texture/jit.matrix object?

Also, is there any way that Jitter/OpenGL can detect how many pages the file is?

Thanks in advance,

Peace,
Drew

Wesley Smith's icon

Jitter uses quicktime for image I/O. If quicktime can read a specific page of a multi-page tiff, then you should be able to use the same mechanism in Jitter. I'm pretty sure that QT can't do this. So, you're going to need to export the specific page of the tiff some other way and read that instead.

wes

hiimage's icon

i know a .net tiff software that support load and read tiff, but i don't sure it has the same function as quicktime. can anyone test for me, thank you.