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.09 21:55 "TIFF Rotation", by Jason Frank
2006.05.09 22:11 "Re: TIFF Rotation", by Bob Friesenhahn
2006.05.09 22:32 "Re: TIFF Rotation", by Edward Lam
2006.05.10 01:28 "Re: TIFF Rotation", by Joris Van Damme

2006.05.09 22:11 "Re: TIFF Rotation", by Bob Friesenhahn

On Tue, 9 May 2006, Frank, Jason wrote:
> 
> Well, I've tried to dodge this, but I don't see another option.  I need
> to be able to rotate TIF's by 90, 180, or 270 degrees.  Near as I can
> tell, there's not really any support for this in libtiff, and I don't

There is not any support in libtiff for this functionality.  It is 
very difficult to implement in libtiff.  In order to implement it, the 
image must be decoded into a buffer, including provision for any extra 
samples.  The amount of the image which needs to be decoded depends on 
the storage organization (packed, planar, tiled, strips) and the 
rotation requested.  Libtiff does have crude support for decoding 
common TIFF types into an 8-bit deep RGBA image buffer, and discarding 
any extra samples.  This crude support is only suitable for simple 
viewer applications since it does not support all permutations, and 
may discard a considerable amount of data (e.g. 16 bits crushed to 8 
bits, discard extra samples).

What you are looking for can certainly be done but it is not easy, and 
is likely something that you will have to implement yourself and 
contribute to the project.

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