AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1996.11.12 14:21 "Basic TIFF parsing question", by Ben Ko
1996.11.12 11:00 "Re: Basic TIFF parsing question", by Niles Ritter
1996.11.12 17:42 "Re: Basic TIFF parsing question", by Jin Chen
1996.11.13 12:10 "Re: Basic TIFF parsing question", by Ben Ko
1996.11.13 14:18 "Re: Basic TIFF parsing question", by Fredrik Lundh
1996.11.13 18:35 "Re: Basic TIFF parsing question", by Ben Ko

1996.11.13 18:35 "Re: Basic TIFF parsing question", by Ben Ko

That's very reasonable, IMO. If you don't want to learn C just to do such a simple thing, you could check the Python scripting language and its Python Imaging Library (PIL). Here's the Python code you need to extract the basic necessities from a TIFF file (or the other 20+ formats that PIL knows about):

import Image

im = Image.open("image.tiff")

print im.mode
print im.size

You can access arbitrary TIFF tags as well, if needed, formatted as Python data types. And yes, PIL supports lots of cool stuff for image manipulation as well.

Intriguing! I'll take a look.