You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/09/15 16:11:35 UTC

DO NOT REPLY [Bug 45809] New: PNGs are rendered with dull colors

https://issues.apache.org/bugzilla/show_bug.cgi?id=45809

           Summary: PNGs are rendered with dull colors
           Product: Fop
           Version: all
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: images
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: jean-francois@elfouly.nom.fr


Created an attachment (id=22567)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22567)
A screenshot illustrating the problem

At least some 24-bit PNG files, but probably all of them, are rendered by FOP
with dull colors (see example.png).
This can be seen even in a simple 8 pixel example. The image and its colors are
correct (object 11 in the PDF); and the soft mask too (object 10 in the PDF).
So there could be a problem with the ICC color profile after all (obj 5).


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #14 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-10-12 16:27:56 PST ---
Created an attachment (id=22716)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22716)
Same test case, FOP patched to add /AIS true


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #5 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-15 08:50:34 PST ---
Created an attachment (id=22573)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22573)
The Java source that generated the test image

This is a fully stripped-down version of the custom cockpit-screenshots
generator/editor that is used by our customer. Creates the test image in pretty
much the same technical context as the "real" ones.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #10 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-16 00:43:01 PST ---
Created an attachment (id=22588)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22588)
PDF render with different backgrounds.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #13 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-10-12 16:27:19 PST ---
Created an attachment (id=22715)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22715)
Same test case, FOP patched to add /AIS false


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #7 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-15 08:52:56 PST ---
Created an attachment (id=22574)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22574)
Image dump in the PDF

Exactly what you would expect when reading the java code that generated the
image.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #1 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-15 07:13:00 PST ---
Created an attachment (id=22568)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22568)
FO file

FO source file for the example.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #2 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-15 07:13:34 PST ---
Created an attachment (id=22569)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22569)
The test image.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #11 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-16 00:48:01 PST ---

Also discussed previously (by the same):
http://markmail.org/message/gjrau3dfjmyfhne4


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #3 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-15 07:14:23 PST ---
Created an attachment (id=22570)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22570)
The generated PDF


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809

--- Comment #15 from Luis Bernardo <lm...@gmail.com> 2012-03-06 09:43:46 UTC ---
The dull colors are visible in Adobe Reader but not in Evince! Could the issue
be with the viewer?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809

--- Comment #16 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:41:30 UTC ---
resetting P2 open bugs to P3 pending further review

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #12 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-10-12 16:26:09 PST ---
Playing with the AIS (Alpha Is Shape) parameter in the Graphics state does not
fix the problem.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #8 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-15 08:54:21 PST ---
Created an attachment (id=22575)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22575)
Soft mask dump from the PDF

Says in a rather straight manner that the thrid pixel is transparent and the
rest is opaque; which is also what one would expect when reading the java
source or looking at the PNG file at the bit level.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #6 from Jeremias Maerki <je...@apache.org>  2008-09-15 08:51:46 PST ---
For reference: http://markmail.org/message/ykcb7re4bm4xyufs
The thread contains some initial analysis of the problem but no solution, yet.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #9 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-16 00:42:28 PST ---
Created an attachment (id=22587)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22587)
Test case with changing background

Reading the chapter 7 (Transparency) of PDF 1.4 specification, I understood
transparency is much about blending. So I tried the render with different color
backgrounds but there seems to be no influence...


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45809] PNGs are rendered with dull colors

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45809





--- Comment #4 from Jean-François El Fouly <je...@elfouly.nom.fr>  2008-09-15 08:35:59 PST ---
Created an attachment (id=22572)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22572)
The PDF obtained without a soft mask

This PDF is generated without a PDF soft mask by commenting out this.softmask
=... in ImageRenderedAdapter.java:102
The colors are now bright and the PDF no longer has a soft mask bound to the
image. But the third pixel from the left is now rendered opaque, while it
should be completely transparent (thus, gray here).
It's hard to understand whether the soft mask is conceptually "on top" of the
image (thus, making the colors dull by interposing a sort of "veil") or related
to the image transparency, thus between the image and the media ?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.