Return-Path: <owner-tiff@olympiakos.com>
Received: from nataly.at1895.spb.edu (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.4/8.12.4/Debian-4) with ESMTP id g9UBgM38014388
	for <dron@at1895.spb.edu>; Wed, 30 Oct 2002 14:42:22 +0300
Received: from olympiakos.com (uucp@localhost)
	by nataly.at1895.spb.edu (8.12.4/8.12.4/Debian-4) with UUCP id g9UBgMHK014386
	for dron@at1895.spb.edu; Wed, 30 Oct 2002 14:42:22 +0300
Received: from knot.pu.ru (tonk.pu.ru [193.124.85.214])
	by wg.pu.ru (8.9.1a/8.9.1) with ESMTP id LAA08737
	for <dron@at1895.spb.edu>; Wed, 30 Oct 2002 11:14:43 GMT
Received: from gate7.olympiakos.com (sdsl-64-32-199-150.dsl.iad.megapath.net [64.32.199.150])
	by knot.pu.ru (8.9.3/8.9.0) with ESMTP id OAA30050
	for <dron@at1895.spb.edu>; Wed, 30 Oct 2002 14:14:38 +0300 (MSK)
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id GAA31034;
	Wed, 30 Oct 2002 06:11:23 -0500
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Wed, 30 Oct 2002 06:04:15 -0500
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id GAA30981
	for tiff-outgoing; Wed, 30 Oct 2002 06:04:15 -0500
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from gwsmtp.thomson-csf.com (gwsmtp.thomson-csf.com [195.101.39.226])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id GAA30978
	for <tiff@olympiakos.com>; Wed, 30 Oct 2002 06:04:14 -0500
From: diana.szleper@fr.thalesgroup.com
Received: from thomplex.thomson-csf.com (200.3.2.2) by gwsmtp.thomson-csf.com (NPlex 6.5.026)
        id 3DBE55C90002981D for tiff@olympiakos.com; Wed, 30 Oct 2002 12:02:26 +0100
Received: from THALESCAN.CORP.THALES (200.3.1.29) by thomplex.thomson-csf.com (NPlex 6.5.026)
        id 3DBE6C59000262BC for tiff@olympiakos.com; Wed, 30 Oct 2002 11:55:20 +0100
Received: from NODALNET.clb.tcfr.thales (146.11.5.4) by tccplex.tcc.thomson-csf.com (NPlex 6.5.026)
        id 3DBF5BF10000207A for tiff@olympiakos.com; Wed, 30 Oct 2002 11:58:49 +0100
Received: by NODALNET.clb.tcfr.thales with Internet Mail Service (5.5.2653.19)
	id <V1XFG3XQ>; Wed, 30 Oct 2002 11:58:48 +0100
Message-ID: <33105F8B185CD51182E300306E06473E79C8A8@hermes.isr.thomson-csf.com>
To: tiff@olympiakos.com
Subject: Read tiff tiles jpeg compress image.
Date: Wed, 30 Oct 2002 11:58:42 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 941
Lines: 26

Hi,
I have no problem to compress/decompres tiff strips compress whith jpeg.
I'm trying to decompres tiff tiles (tag = 7) compress whith jpeg without
success.

In the static function JPEGPreDecode I always have the error :
if (sp->cinfo.d.image_width != segment_width ||
    sp->cinfo.d.image_height != segment_height) {
    TIFFError(module, "Improper JPEG strip/tile size");
    return (0);

segment_width equal the image witdh (1024 for example) and
sp->cinfo.d.image_width is the width of the tile (256 for example)
The other test  sp->cinfo.d.image_height != segment_height is correct :
sp->cinfo.d.image_height = segment_height is correct = the tile length (256
in my case)

Is somebody known how to compress/decompress tiff tiles images with jpeg
algo from tif_jpeg.c ?

diana



To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

