| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2008.10.02 05:43 "Re: Image Orientation tag and rotating images", by Andrey KiselevOn Wed, Oct 01, 2008 at 10:32:22AM -0600, Richard Nolde wrote: > >>My first question is whether I have made the correct adjustments to > >>the orientation tag for rotations of 90, 180, and 270 degrees > >>clockwise. ... > >Some comments: > > > >1) libtiff support for orientation is a little odd, because libtiff > >automatically adjusts for orientations 1-4 (which preserve the height > >and width), but not 5-8 (which swap height and width). Beware! > What file are you referring to when you say that libtiff automatically > adjusts for orientations 1- 4? Richard, There is a TIFFReadRGBAImageOriented function which handles some of the orientation stuff, but unfortunately it doesn't cover all the possibilities. There was a bug filled in our old Bugzilla on the issue (which is now lost) and it wasn't fixed because I haven't a good idea how it should be done. Best regards, Andrey -- Andrey V. Kiselev ICQ# 26871517 |
|||||||