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
May 2006

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

2006.05.03 07:24 "Multipage tiff with delphi", by Andrea Bo
2006.05.03 15:11 "Re: Multipage tiff with delphi", by Bernie Pallek

2006.05.03 15:11 "Re: Multipage tiff with delphi", by Bernie Pallek

> I need to retrive information about ,tiff multipage .My 
> program must split multipage tiff file in single tiff file in Delphi.
> someone can teel me how to do.

You might want to consider this: you can use the existing tiffcp.exe tool to
do what you want.  So if you're desperate to get things working ASAP, you
can just launch it from within your Delphi app.  Here is a snippet of the
help from the tool:

"
Note that input filenames may be of the form filename,x,y,z
where x, y, and z specify image numbers in the filename to copy.
example:  tiffcp -c none -b esp.tif,1 esp.tif,0 test.tif
  subtract 2nd image in esp.tif from 1st yielding uncompressed result
  test.tif
"

So, just construct command-line arguments by appending a comma and the
(incrementing) image number to the input filename.  I suppose that you can
keep calling it until it returns an error (basically, if errorlevel is not
zero, there was a problem, most likely you "ran out" of successive images in
that file, if everything is cool -- enough free disk space, valid output
filename, etc).

Otherwise, you can maybe use tiffcp's source to help you figure out how to
recreate similar functionality directly in your application.

Good luck!