ROOT and tif image

I have a code that uses TImage::Open and ->GetArgbArray to read and histogram images.
It works with jpg and gif files, but not with tif
I do have compiled in libtif to ROOT
I can see the tif files with a viewer, and I can convert them to jpg/gif and then histogram them in ROOT.
I have tried with both 8 and 16 bit grayscale tifs and both kinds don’t work in ROOT for me.
The test code can be
and just use any handy image.
I would like to know how to make it work for tif images.

Yes the image reading does not work for the tif format. You need to convert your tif image to jpg or gif.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.