Return-Path: <tiff-bounces@lists.maptools.org>
Received: from mailgate101.isp.belgacom.be (mailgate101.isp.belgacom.be [195.238.6.82])
        by inmx006.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id l3PE5eN3001051
        for <joris.at.lebbeke@skynet.be>; Wed, 25 Apr 2007 16:05:41 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 25 Apr 2007 16:05:38 +0200
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l3PDujBQ029822;
	Wed, 25 Apr 2007 09:57:02 -0400
Received: from rune.pobox.com (rune.pobox.com [208.210.124.79])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l3PDuhRY029819
	for <tiff@lists.maptools.org>; Wed, 25 Apr 2007 09:56:43 -0400
Received: from rune (localhost [127.0.0.1])
	by rune.pobox.com (Postfix) with ESMTP id 7401DDDB6D;
	Wed, 25 Apr 2007 09:57:05 -0400 (EDT)
Received: from [192.168.2.3] (dpc674728121.direcpc.com [67.47.28.121])
	by rune.sasl.smtp.pobox.com (Postfix) with ESMTP id 708F6DDAC1;
	Wed, 25 Apr 2007 09:56:59 -0400 (EDT)
Message-ID: <462F5E1B.1050603@pobox.com>
Date: Wed, 25 Apr 2007 09:56:43 -0400
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 1.5.0.9 (X11/20070104)
MIME-Version: 1.0
To: "Dr. Michael J. Chudobiak" <mjc@avtechpulse.com>
Subject: Re: [Tiff] orientations 5-8 not handled correctly
References: <462F5648.6020307@avtechpulse.com>
In-Reply-To: <462F5648.6020307@avtechpulse.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.0000231c
X-MSP-STORE: Wed, 25 Apr 2007 16:05:48 +0200
Status:   

Dr. Michael J. Chudobiak wrote:
> Hello all,
> 
> libtiff correctly flips images with orientation tag values of 1-4, but 
> it does not handle orientations 5-8 correctly. 5-8 require rotations 
> rather than horiz/vert mirroring (see 
> http://sylvana.net/jpegcrop/exif_orientation.html).
> 
> Specifically, libtiff/tif_getimage.c: setorientation has code like:
> 
>         switch (img->orientation) {
>                 case ORIENTATION_TOPLEFT:
>                 case ORIENTATION_LEFTTOP:
>             bla bla bla....
> 
> The code treats ORIENTATION_TOPLEFT the same as ORIENTATION_LEFTTOP, but 
> obviously they are not the same.
> 
> Is this deliberate?
> 
> This has come up in the gnome bugzilla, see 
> http://bugzilla.gnome.org/show_bug.cgi?id=428725#c52.
> 
> We need to fix it either in the gnome tiff pixbuf loader, or in libtiff.
> 
> Suggestions?

Mike,

Please file the details in the libtiff bugzilla, and we should be able
to resolve this.

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

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
