Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas004.isp.belgacom.be (localhost [127.0.0.1])
        by inav016.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k2KIHrua003904
        for <joris.at.lebbeke@skynet.be>; Mon, 20 Mar 2006 19:17:53 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx014.isp.belgacom.be (inmx014.isp.belgacom.be [195.238.4.217])
        by inas004.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k2KIHjj0013405
        for <joris.at.lebbeke@skynet.be>; Mon, 20 Mar 2006 19:17:46 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx014.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id k2KIHhbT009766
        for <joris.at.lebbeke@skynet.be>; Mon, 20 Mar 2006 19:17:43 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
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 k2KIDZYW008857;
	Mon, 20 Mar 2006 13:13:42 -0500
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k2KIDVGi008854
	for <tiff@lists.maptools.org>; Mon, 20 Mar 2006 13:13:32 -0500
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	k2KIDSus002351; Mon, 20 Mar 2006 12:13:29 -0600 (CST)
Date: Mon, 20 Mar 2006 12:13:28 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Mikhail Kruk <meshko@gmail.com>
Subject: Re: [Tiff] 3.8.1 and JPEG problem
In-Reply-To: <5a28e8c20603201004r667ac48n78dba3128e758bf3@mail.gmail.com>
Message-ID: <Pine.SOC.4.60.0603201209210.26551@blade.simplesystems.org>
References: <5a28e8c20603200939h1ee3ab84uff5a5cbc3a4e1bc0@mail.gmail.com>
	<5a28e8c20603201004r667ac48n78dba3128e758bf3@mail.gmail.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
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.00001411
X-MSP-STORE: Mon, 20 Mar 2006 19:17:56 +0100
Status:   

On Mon, 20 Mar 2006, Mikhail Kruk wrote:

> I'm getting the following error when trying to process a TIFF file
> whith JPEG compression:
> tiffcp -c none 29213.tif out.tif
> Assertion failed: sp != 0, file
> ../../tiff-3.8.1-src/libtiff/tif_jpeg.c, line 1524
>
> The file is available here:
> www.scorch2000.com/~meshko/29213.tif

Using CVS libtiff installed on March 18th, I am able to load this file 
without problem using development GraphicsMagick on a Sun SPARC 
workstation.

Note that this is a YCbCr JPEG file.  GraphicsMagick uses this option:

   TIFFSetField( tiff, TIFFTAG_JPEGCOLORMODE, JPEGCOLORMODE_RGB );

so that libtiff requests that libjpeg convert the pixels to RGB before 
returning them to libtiff.  This avoids the need for dealing with 
YCbCr and subsampling in the application.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
