#787966 libtiff5: LZW compression doesn't work with GIMP.

Package:
libtiff5
Source:
tiff
Description:
Tag Image File Format (TIFF) library
Submitter:
Pavlo Solntsev
Date:
2022-01-31 19:54:02 UTC
Severity:
normal
#787966#5
Date:
2015-06-07 02:19:07 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

Debian 8, up today
Open any image with GIMP. Go to "export as" and select a tif extension. Use LZW
compression. File is created but it is corrupted/distorted. The same problem
has been discussed here <https://forums.opensuse.org/showthread.php/506050
-GIMP-export-TIF-format-problems>

GIMP version 2.8.14-1+b1

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#787966#10
Date:
2015-09-07 10:36:39 UTC
From:
To:
I have also encountered this bug.

Debian 8; Linux 3.16.0-4-amd64
libtiff5 4.0.3-12.3
gimp 2.8.14-1+b1

GIMP with libtiff5 exports uncompressed TIFF images correctly.
However, if LZW or Deflate compression is selected, the resulting
image gets corrupted. PackBits compression seems to work just fine.

To reproduce, first open the file flower-uncompressed.tif in GIMP 2.8.14:
http://bit.ly/1O8bZFv

Export the image as a new TIFF file, using either LZW or Deflate
compression method. Open the resulting image in GIMP. It will look
like flower-lzw.tif here, when obviously it is supposed to be a
pixel-perfect copy of the original, only a smaller file.
http://bit.ly/1ISUx0G

In another system running Debian 7 with gimp 2.8.2-2+deb7u1 and
libtiff4 3.9.6-11, there was no problem with LZW export. I never tried
Deflate there.

#787966#15
Date:
2015-09-12 17:47:01 UTC
From:
To:
I tested this with GIMP 2.8.10 in Ubuntu 14.04, where the libtiff5
package is version 4.0.3-7ubuntu0.3. Both LZW and Deflate worked fine,
so it seems the bug has appeared between 4.0.3-7 and 4.0.3-12.3.
However, the inner workings of libtiff5 are beyond my understanding.

#787966#20
Date:
2015-09-12 20:02:15 UTC
From:
To:
The reason why the bug didn't appear in 4.0.3-7ubuntu0.3 seems to be
that they disabled the patch that fixed CVE-2014-8128.
https://bugs.launchpad.net/ubuntu/+source/tiff/+bug/1439186

#787966#25
Date:
2015-10-02 16:00:10 UTC
From:
To:
Is there a workaround for this bug? I'm running into trouble creating a
figure for a paper, for which I have a short time limit.  :(

#787966#30
Date:
2015-10-10 15:57:11 UTC
From:
To:
I can't see any easy workaround other than, obviously, not using LZW
compression.

However, the problem seems to have been fixed in libtiff 4.0.5. Now
there's also 4.0.6, which I haven't tried:
http://download.osgeo.org/libtiff/

You need to build and install the new version and make sure GIMP (or
whatever software you're using) sees it instead of the buggy 4.0.3.
Now LZW seems to work.

#787966#35
Date:
2016-03-31 16:53:03 UTC
From:
To:
My Dear, I am Elissa, i viewing you profile today,in dating.meta.uathen
i feel to drop this few line to you,and i will like you to contact me
through my e-mail: elissaabellagu@hotmail.com, to avoid losing your
contact take care and God bless you.

#787966#40
Date:
2016-08-08 09:46:25 UTC
From:
To:
Dear maintainer,

would it be possible to pull testing's 4.0.6 version to stable? It seems
to work fine in a Jessie environment, as I figured out when I installed
4.0.6 after 4.0.3 had ruined some 48 bit scans...

Cheers --

	Torsten

#787966#45
Date:
2016-08-31 07:26:34 UTC
From:
To:
Dear maintainer !

I can confirm that installing the debian Stretch version
(libtiff5_4.0.6-2_amd64.deb) fixes the problem on Jessie.

Regards,
Karl Kashofer

#787966#50
Date:
2016-10-06 04:57:34 UTC
From:
To:
Dear Customer,

This is to confirm that one or more of your parcels has been shipped.
Shipment Label is attached to email.

Kind regards,
Daryl Hendrickson,
Sr. Delivery Agent.

#787966#55
Date:
2016-10-24 16:01:44 UTC
From:
To:
Dear Customer,

We could not deliver your item.
Shipment Label is attached to email.

Kind regards,
Jessie Sutherland,
FedEx Station Manager.

#787966#60
Date:
2016-11-25 15:25:32 UTC
From:
To:
Hello,
We could not deliver your item. Shipment Label is attached to this email.
Kameko Cranfield - Area Manager FedEx , CA
Thanks and best regards.

#787966#65
Date:
2017-05-09 13:46:04 UTC
From:
To:
This bug should be closed with libtiff 4.0.3-12.3+deb8u3
I have tested the conversion of several images to tif with lzw
compression, and the pictures are writte correctly.

#787966#70
Date:
2022-01-31 19:50:56 UTC
From:
To:
HAPPY NEW YEAR.

My name is Ms. Zainal from Malaysia. I am writing you this mail to
solicit for your cooperation in a very confidential business
transaction of $3.9 million, I will give you details of the
transaction upon your positive reply.


Kind regards
Ms Zainal.