After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 77283 - Out-of-gamut alpha pixels turn black in TIFF
Out-of-gamut alpha pixels turn black in TIFF
Status: VERIFIED FIXED
Product: GIMP
Classification: Other
Component: General
1.x
Other Linux
: Normal normal
: 1.2
Assigned To: GIMP Bugs
Daniel Egger
Depends on:
Blocks:
 
 
Reported: 2002-04-02 01:30 UTC by Gregory Brauer
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This is the image that causes problems. Note the "hole" that appears at (205,277) to (206,276) where the alpha is 254. (67.53 KB, application/octet-stream)
2002-04-02 17:59 UTC, Gregory Brauer
  Details
Here is that same image converted to png. It looks fine in gimp. (56.13 KB, image/png)
2002-04-02 18:00 UTC, Gregory Brauer
  Details
Patch for tiff.c from Gimp 1.2.x (3.42 KB, patch)
2002-04-21 02:37 UTC, Nick Lamb
none Details | Review

Description Gregory Brauer 2002-04-02 01:30:25 UTC
I have a TIFF file with alpha that does not display correctly in Gimp,
but works fine in all other applications I have tested.  When I load 
the image, and pixel who's alpha value is not 255 gets displayed as a 
black pixel.  This only happens with TIFF, not other formats.

I have example files that I would like to send, but I don't see any way 
to add attachments here.  What should I do?
Comment 1 Raphaël Quinet 2002-04-02 08:40:04 UTC
Please attach the image file(s) to this bug report.  This is easy to
do: after you submit your bug report, you have a link "Create a new
attachment", which does exactly what it says...
Comment 2 Gregory Brauer 2002-04-02 17:59:52 UTC
Created attachment 7515 [details]
This is the image that causes problems.  Note the "hole" that appears at (205,277) to (206,276) where the alpha is 254.
Comment 3 Gregory Brauer 2002-04-02 18:00:44 UTC
Created attachment 7516 [details]
Here is that same image converted to png.  It looks fine in gimp.
Comment 4 Nick Lamb 2002-04-09 18:19:23 UTC
Argh, Entropy! More 3D industry software. Look at that "TimeStamp"
present in both files. Which year is 0102?

The cretins that wrote _this_ piece of 3D software decided to store
ExtraSample associated alpha that is not pre-multiplied, in
contravention of the TIFF specification (Adobe TIFF R6.0 final).

I'm going to assume that this particular bit of random 3D software is
expensive, and that therefore you can call them up and personally
shout at the people responsible until they fix it. If I'm wrong about
that then you probably need to email them and hope for a fix in some
later version.

This is NOTABUG in The GIMP. Thanks for telling us about this, if you
need someone to speak verrry sloowly to your vendor until they
understand then give them my email address.
Comment 5 Nick Lamb 2002-04-09 18:22:46 UTC
Summary changed to match the problem, now that I know what's wrong.

Apparently I can't mark this NOTABUG. Someone please do so and change
the summary to "Entropy creates invalid TIFFs" so that other users can
find it easily.
Comment 6 Gregory Brauer 2002-04-09 18:59:57 UTC
Ok.  Thanks for the info.
Comment 7 Raphaël Quinet 2002-04-10 07:37:58 UTC
I think that it is more appropriate to mark this as NOTGNOME instead
of NOTABUG.  According to the description of the Resolution field,
NOTABUG is for something that is intended to work as described, while
NOTGNOME is for something that is really a bug, but not in our
software (in this case, not in the GIMP).  So I am changing the status
accordingly.

By the way, some software that is not transparency-aware (e.g., xv)
displays the TIFF image correctly (without transparency, but without
a black spot like the GIMP does).  So some users might think that the
GIMP is broken, even if the error comes from Entropy.
Comment 8 Nick Lamb 2002-04-21 02:36:40 UTC
OK, apparently I'm the one who needed to be spoken to "verrry sloowly"
and the PNG attached to this bug is incorrect, not the TIFF. CVS Gimp
1.2 is fixed and I will take care of applying a similar fix to CVS
HEAD soon.

Sorry for the inconvenience Greg, I will add a patch to this bug which
contains the CVS changes, this should apply fairly cleanly to any
recent version that you're using and resolve this issue with TIFFs
from Entropy and similar software for you.
Comment 9 Nick Lamb 2002-04-21 02:37:45 UTC
Created attachment 7830 [details] [review]
Patch for tiff.c from Gimp 1.2.x
Comment 10 Gregory Brauer 2002-05-03 19:56:48 UTC
This patch appears to fix the bug for us.  Thanks.
Comment 11 Nick Lamb 2002-05-03 22:33:54 UTC
Fix applied to CVS 1.3 too. Updated and re-resolved.

A little bird tells me that Gimp 1.2.4 will be out 'soon' and will
therefore roll up this fix for the general public.
Comment 12 Gregory Brauer 2002-05-03 23:02:52 UTC
For the record, the png file attached here was created from the 
tiff file with ImageMagick, like this:

convert -quality 100 myfile.tiff myfile.png

(Nick Lamb had asked, but my emails to him are bouncing).
Comment 13 Raphaël Quinet 2003-06-20 16:30:42 UTC
The fix is part of the stable release 1.2.4.  Closing this bug.