AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2009.05.11 14:58 "[Tiff] How to tell if an image file is a TIFF or PDF", by Navarro, Miguel
2009.05.11 15:14 "Re: [Tiff] How to tell if an image file is a TIFF or PDF", by Toby Thain
2009.05.13 17:58 "[Tiff] 64-bit warnings in tif_lzw", by Edward Lam
2009.05.13 20:39 "[Tiff] [ 64-bit warning in tif_pixarlog.c", by Edward Lam

2009.05.11 15:14 "Re: [Tiff] How to tell if an image file is a TIFF or PDF", by Toby Thain

On 11-May-09, at 10:58 AM, Navarro, Miguel (COC) wrote:

Greetings:

I am currently extracting images from an image repository. Some of these are in TIFF and some are in PDF. Is there a way to tell which is which, i.e. I want to know if an image that I extract is a TIFF to convert to PDF. If its a PDF no need to convert.

Trivial; both file types have a signature at the beginning. See respective doc for details.

--Toby

>

The repository does not store file types, so I need a way to tell.

Thx!

Mike Navarro