My problem is that this method forces me to read each TIFF file. These TIFF files are large enough that this subroutine is too slow to be useful. Is anyone aware of a different, i.e. faster, way to obtain a page count on a multipage image?sub pageCount { my $FILE = shift; my $IMAGE = Image::Magick -> new(); $IMAGE -> Read( $FILE ); my $PAGECOUNT = $#$IMAGE+1; undef $IMAGE; return( $PAGECOUNT ); }
In reply to Multipage TIFFs by oligmd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |