DO NOT REPLY [Bug 47157] New: ImageIO-based images are blurry when rendering a PDF

View: New views
12 Messages — Rating Filter:   Alert me  

DO NOT REPLY [Bug 47157] New: ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

           Summary: ImageIO-based images are blurry when rendering a PDF
           Product: Fop
           Version: 1.0dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pdf
        AssignedTo: fop-dev@...
        ReportedBy: dgreen99@...
        Depends on: 47151


When using PNG or JPG images are blurry when rendering PDF output.  The problem
appears to be related to image size computations even when scaling is not used,
however this may not be the only factor.  Running with a patched version of FOP
(with a fix for bug 27151) images are still blurry (though slightly better than
running without the patch).

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #1 from David Green <dgreen99@...>  2009-05-05 10:17:20 PST ---
Created an attachment (id=23613)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23613)
screenshot showing rendered image

Screenshot showing rendered image beside the original.  Notice how the original
is crisp, whereas the rendered image is blurry.

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #2 from Max Berger <max@...>  2009-05-11 23:31:20 PST ---
David,

just for completeness: Which version of FOP did you use for the left image, and
which one for the right? Is the .fo file the same on both?

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #3 from David Green <dgreen99@...>  2009-05-12 11:36:47 PST ---
There was only one fo file.  The attached screenshot shows the original image
as it is displayed in an image viewing program (not related to FO or FOP), and
the image as it appears when viewing it via a PDF viewer after rendering with
FOP.  So there was only one fo file, and one rendering process.

I built FOP from source.  SVN info gives the following:

bc.
URL: http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 771415
Node Kind: directory
Schedule: normal
Last Changed Author: vhennebert
Last Changed Rev: 770635
Last Changed Date: 2009-05-01 04:19:36 -0700 (Fri, 01 May 2009)

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #4 from David Green <dgreen99@...>  2009-06-23 15:26:11 PST ---
(In reply to comment #0)
> (with a fix for bug 27151) images are still blurry

correction: bug 47151

Is there any hope of someone looking into this issue?  Image quality is
critical.  It's hard to imagine anyone using FOP with images in its current
state, since almost every image comes out blurry.

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #5 from Andreas L. Delmelle <adelmelle@...>  2009-06-23 15:35:39 PST ---
(In reply to comment #4)
> correction: bug 47151
>
> Is there any hope of someone looking into this issue?  Image quality is
> critical.  It's hard to imagine anyone using FOP with images in its current
> state, since almost every image comes out blurry.

Apologies for the late reply. Is it possible to attach the image itself and the
PDF result?
That would be of great help to investigate this further.

Thanks!

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #6 from David Green <dgreen99@...>  2009-06-24 09:35:35 PST ---
Created an attachment (id=23868)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23868)
xsl-fo

xsl-fo used to produce the issue attached

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #7 from David Green <dgreen99@...>  2009-06-24 09:35:55 PST ---
Created an attachment (id=23869)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23869)
original 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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #8 from David Green <dgreen99@...>  2009-06-24 09:36:27 PST ---
Created an attachment (id=23870)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23870)
resulting pdf

attached pdf after processing with FOP/Batik

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #9 from David Green <dgreen99@...>  2009-06-24 09:37:07 PST ---
Please let me know if there's anything else you need.

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #10 from Andreas L. Delmelle <adelmelle@...>  2009-06-24 11:40:48 PST ---
(In reply to comment #9)
> Please let me know if there's anything else you need.

What you sent was perfect. Just what was needed to be able to confirm the
issue, and start looking.

From what I could tell at first glance, this is not merely the result of the
rounding error in bug 47151.
The ImageInfo reports a size of 269966 x 250969 mpt, or 3.7495278 x
3.4856806in, which seems to match what an image viewer reports for the same
PNG: 270x251px at 72.01dpi, give or take a few millipoints... That said, the
remark in bug 47151 is entirely on the spot.

Did you, by any chance, check whether the effect persists in case the PDF is
printed?

--
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 47157] ImageIO-based images are blurry when rendering a PDF

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #11 from David Green <dgreen99@...>  2009-06-24 14:48:03 PST ---
(In reply to comment #10)
> What you sent was perfect. Just what was needed to be able to confirm the issue,
> and start looking.

Great!

> Did you, by any chance, check whether the effect persists in case the PDF is printed?

No, I didn't try printing.

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