views:

164

answers:

1

I have to work with some image files. They are named as .png and .jpg, but I tried 3 different image viewers, and none of them could open the files. I found out that the first 8 bytes of these files were CF10rUrm, and DROID told me it was a JTIP (JPEG Tiled Image Pyramid).

I need to use these from Python. Does anybody know of any way to either view these image files, convert them to another format, or, (a bit of a stretch), to read them directly from Python? (I've tried PIL already, and it doesn't recognize them.)

I know it's possible, since the program that uses these image files can view them. It's not open source, however.

A: 

With a fast search I found a Python script that might do what you want.

Heikki Toivonen
Thank you. However, I did not mean "a JPG which has tiled images on it", I meant "an obscure file format called JTIP that PIL cannot already read". I only need the equivalent code for this _one_ line: "source_image = Image.open(source_path)".
Claudiu