2017.01.20 19:06 "[Tiff] Fwd: TIFF image displayed upside down", by Vincent Torri

2017.01.20 19:24 "Re: [Tiff] Fwd: TIFF image displayed upside down", by Bob Friesenhahn

I am trying to display this multipage TIFF: http://www.filedropper.com/multipagetiffexample The result I get is in this png file: http://www.filedropper.com/tiff I also want to say that it is the first time that I try to manage TIFF files and that I use the libtiff library.

The code I use to display the tiff file is: http://pastebin.com/tUstLZz2

so the result is like I display the lines in the reverse order (from bottom to top, and not from top to bottom)

note that orientation of the TIFF image is: row 0 top, col 0 lhs (ORIENTATION_TOPLEFT).

Does someone see what the problem is?

TIFF provides the TIFFTAG_ORIENTATION tag to obtain the image orientation. You need to obtain this tag's value and then decide what needs to be done to display the image properly.

The image could also be rotated on its side.

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