X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from smtp.freemail.gr (smtp.freemail.gr [81.171.104.132]) by lists.alpinelinux.org (Postfix) with ESMTP id 1AA041EB588 for ; Mon, 7 Jun 2010 08:35:53 +0000 (UTC) Received: from [10.10.10.9] (ppp-94-65-198-79.home.otenet.gr [94.65.198.79]) by smtp.freemail.gr (Postfix) with ESMTP id EA26E3381B7 for ; Mon, 7 Jun 2010 11:35:25 +0300 (EEST) Message-ID: <4C0CAF66.4000108@freemail.gr> Date: Mon, 07 Jun 2010 11:35:50 +0300 From: Harry Lachanas User-Agent: Thunderbird 2.0.0.24 (X11/20100228) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: Alpine Developers Subject: [alpine-devel] Tiff patch Content-Type: multipart/mixed; boundary="------------030803050700060401020705" This is a multi-part message in MIME format. --------------030803050700060401020705 Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit Hi, I am working on hylafax+ ( color Fax support ) lately and I came across some problems in the tiff tree from alpine In particular the problems are described in http://bugzilla.maptools.org/show_bug.cgi?id=2135 So Could you please include the following patch in the aports/main/tiff tree ?? Thanks Harry --------------030803050700060401020705 Content-Type: text/x-patch; name="tiff-jpegfix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tiff-jpegfix.patch" diff -Nru tiff-3.9.2.orig/libtiff/tif_jpeg.c tiff-3.9.2/libtiff/tif_jpeg.c --- tiff-3.9.2.orig/libtiff/tif_jpeg.c 2009-12-22 12:45:49.969811264 -0800 +++ tiff-3.9.2/libtiff/tif_jpeg.c 2009-12-22 12:47:04.433491064 -0800 @@ -2014,7 +2014,14 @@ if( tif->tif_diroff == 0 ) { #define SIZE_OF_JPEGTABLES 2000 +/* +The following line assumes incorrectly that all JPEG-in-TIFF files will have +a JPEGTABLES tag generated and causes null-filled JPEGTABLES tags to be written +when the JPEG data is placed with TIFFWriteRawStrip. The field bit should be +set, anyway, later when actual JPEGTABLES header is generated, so removing it +here hopefully is harmless. TIFFSetFieldBit(tif, FIELD_JPEGTABLES); +*/ sp->jpegtables_length = SIZE_OF_JPEGTABLES; sp->jpegtables = (void *) _TIFFmalloc(sp->jpegtables_length); _TIFFmemset(sp->jpegtables, 0, SIZE_OF_JPEGTABLES); diff -Nru tiff-3.9.2.orig/tools/tiff2pdf.c tiff-3.9.2/tools/tiff2pdf.c --- tiff-3.9.2.orig/tools/tiff2pdf.c 2009-12-22 12:45:49.873825856 -0800 +++ tiff-3.9.2/tools/tiff2pdf.c 2009-12-22 12:48:16.558526392 -0800 @@ -3320,6 +3320,9 @@ while(i<(*striplength)){ switch( strip[i] ){ case 0xd8: + /* SOI - start of image */ + _TIFFmemcpy(&(buffer[*bufferoffset]), &(strip[i-1]), 2); + *bufferoffset+=2; i+=2; break; case 0xc0: --------------030803050700060401020705-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---