AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
August 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.08.24 08:43 "Insetring text", by Ionita Alexandru
2004.08.24 17:50 "Re: Insetring text", by Joris Van Damme
2004.08.24 18:04 "Re: Insetring text", by Bob Friesenhahn

2004.08.24 18:04 "Re: Insetring text", by Bob Friesenhahn

On Tue, 24 Aug 2004, Alexandru, Ionita wrote:

> I have a question.
> How can I access all pages of a multi-page tiff using imageMagick or
> graphicsMagick, to append to all of this, page numers, and how can I find
> out the number of pages in a multi-page tiff?

This list is not really the right place to ask ImageMagick or 
GraphicsMagick questions.

ImageMagick/GraphicsMagick read the entire TIFF and present it to the 
C API user as a linked list of Image structures (other language APIs 
present differently).  Each element of the list represents one page. 
By traversing the list once you can count the number of frames. 
There is also a GetImageListLength() function which reports the number 
of frames in the list.

> I must annotate this files with page numbers in format 1/n, 2/n, 3/n
> .... n/n , where n is the total number of pages.

Which means that you would need to traverse the Image list, annotating 
each image frame, and then write the entire list to a TIFF file.

It may even be possible to do this from the command line.

As Joris mentions, this is much higher level than libtiff, 
particularly since all frames will be read before anything else can be 
done (may be prohibitive).

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen