You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2020/06/15 16:23:00 UTC
[jira] [Commented] (PDFBOX-4886) Regression: Images get blurry when
rendering with 304 DPI (works fine with 2.0.19)
[ https://issues.apache.org/jira/browse/PDFBOX-4886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17135995#comment-17135995 ]
Tilman Hausherr commented on PDFBOX-4886:
-----------------------------------------
Probably duplicate of PDFBOX-4863. The uncommitted fix I have solves that one.
> Regression: Images get blurry when rendering with 304 DPI (works fine with 2.0.19)
> ----------------------------------------------------------------------------------
>
> Key: PDFBOX-4886
> URL: https://issues.apache.org/jira/browse/PDFBOX-4886
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.20
> Reporter: Emmeran Seehuber
> Priority: Major
> Attachments: FlowerBompA6.pdf, image-2020-06-15-15-29-32-611.png, image-2020-06-15-15-29-33-208.png
>
>
> There seems to be a regression when rendering a PDF to an high DPI image with PDFBox 2.0.20. Everything worked fine with PDFBox 2.0.19.
> See the attached [^FlowerBompA6.pdf] file. The rendering is done using
> {{}}{{PDFRenderer pdfRenderer = new PDFRenderer(doc);}}
> {{BufferedImage bufferedImage = pdfRenderer.renderImageWithDPI(0, 304, ImageType.RGB);}}
>
> I've build a small project to reproduce this problem:
> [https://github.com/rototor/pdfbox-render-blurry]
> Checkout this repository and run mvn clean test. You find a blurry rendering of the PDF as result in the target/test folder.
> !image-2020-06-15-15-29-32-611.png!
> Then change the PDFBox Version in the pom.xml to 2.0.19 and run mvn clean test again.
> The rendering of the flowers are now sharp.
> !image-2020-06-15-15-29-33-208.png!
> A test driver in a project of mine compares the resulting file sizes after exporting the image as JPGs. Because of the blurring the resulting file is way smaller then it used to be...
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org