AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1998.07.09 13:53 "tiffsplit in a cronjob", by Humzah Jaffar
1998.07.09 15:24 "Re: tiffsplit in a cronjob", by Bjorn Brox
1998.07.09 16:11 "Re: tiffsplit in a cronjob", by Rex Jolliff
1998.07.09 15:54 "Re: tiffsplit in a cronjob", by Doug Vander Wilt
1998.07.09 16:30 "Re: tiffsplit in a cronjob", by Phillip Griffith
1998.07.09 18:52 "Whoopass! Re: tiffsplit in a cronjob", by Humzah Jaffar

1998.07.09 15:54 "Re: tiffsplit in a cronjob", by Doug Vander Wilt

i have a cronjob running every morning using the tiffsplit command (from tifflib on DEC unix) to count the number of files in several 100 multi-page tiffs that are transferred into our storage. then i count the number of "xfiles" formed.

problem: i always get a count of 0. however when i run the same cronjob manually on the exact same files, it splits the files and counts the xfiles accurately. any ideas why? or is there a more efficient way to figure out how many files are in a multipage tiff?

This is the quickest way I've found to count pages, assuming each directory represents a separate page:

tiffinfo $FILE 2>/dev/null | fgrep 'TIFF Directory at offset' | wc -l

Doug Vander Wilt
Honeywell MICRO SWITCH Division
dwvander@micro.honeywell.com