From dev-return-65490-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Sat Sep 21 12:28:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1FB62180652 for ; Sat, 21 Sep 2019 14:28:03 +0200 (CEST) Received: (qmail 28265 invoked by uid 500); 21 Sep 2019 12:28:02 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 28200 invoked by uid 99); 21 Sep 2019 12:28:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Sep 2019 12:28:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 361B2E30C3 for ; Sat, 21 Sep 2019 12:28:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 345A978064A for ; Sat, 21 Sep 2019 12:28:00 +0000 (UTC) Date: Sat, 21 Sep 2019 12:28:00 +0000 (UTC) From: "ASF subversion and git services (Jira)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PDFBOX-4655) ImageIOUtil.WriteImage creates huge PNG images when used with default quality on jdk11 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-4655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16935027#comment-16935027 ] ASF subversion and git services commented on PDFBOX-4655: --------------------------------------------------------- Commit 1867280 from Tilman Hausherr in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1867280 ] PDFBOX-4655: set 0 as default for maximal PNG compression, 1 for maximum quality for the other formats > 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 endure 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