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
February 2008

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

2008.02.11 07:43 "TIFFReadRGBAImage rendering upside-down", by Mick O'Neill
2008.02.11 16:03 "Re: TIFFReadRGBAImage rendering upside-down", by Frank Warmerdam
2008.02.12 00:29 "Re: TIFFReadRGBAImage rendering upside-down", by Mick O'Neill
2008.02.12 01:27 "Re: TIFFReadRGBAImage rendering upside-down", by Mick O'Neill

2008.02.11 16:03 "Re: TIFFReadRGBAImage rendering upside-down", by Frank Warmerdam

Mick O'Neill wrote:
> Hi,
> 
> I have some odd TIFF files here (that do have a subsampling error being
> reported for the OJPEG compressed images) that, when I call the
> TIFFReadRGBAImage function, renders the RGBA upside down (flipped, not
> rotated). I was wondering if there was something in the TIFF headers
> that tell me this is happening? Or perhaps some other info elsewhere.
> There are some applications around that read these TIFFs correctly, and
> others that will not read them at all.
> 
> libtiff version 3.9.0 Beta
>  
> Any ideas appreciated.

Mick,

The tiffinfo reports:

    Orientation: row 0 top, col 0 lhs

Which is (I believe) the default case where the first pixel in the file
is the top left corner of the image.  I also ran tiff2rgba with the
current development version of libtiff and tiff2rgba and it came out
with the first page "right side up", so I'm surprised you are having problems.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org