pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4655) ImageIOUtil.WriteImage creates huge PNG images when used with default quality on jdk11
Date Sun, 22 Sep 2019 07:23:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-4655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16935233#comment-16935233
] 

ASF subversion and git services commented on PDFBOX-4655:
---------------------------------------------------------

Commit 1867315 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1867315 ]

PDFBOX-4655: SonarQube fix

> ImageIOUtil.WriteImage creates huge PNG images when used with default quality on jdk11
> --------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4655
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4655
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.17
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>              Labels: imageio, jdk11, jdk12, jdk13, png
>             Fix For: 2.0.18, 3.0.0 PDFBox
>
>
> [~tallison@apache.org] pointed us to a build failure in Tika on jdk11. The cause may
be different .PNG files - I noticed that PNG files saved with ImageIOUtil.write() are huge
when done with default quality on jdk12 / 13, which is 1. In the past (jdk8 and before) that
parameter had no effect for PNG files but apparently no more.
> Thus I'll set compressionQuality to 0 to ensure maximal compression. PNG is a lossless
format so there is no risk.
> Todo:
> - use flexible default value
> - mention in Javadoc
> - change command line tool PDFToImage
> - change one test



--
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


Mime
View raw message