pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1837563 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java
Date Mon, 06 Aug 2018 20:33:11 GMT
Author: tilman
Date: Mon Aug  6 20:33:11 2018
New Revision: 1837563

URL: http://svn.apache.org/viewvc?rev=1837563&view=rev
Log:
PDFBOX-4285: pass quality parameter

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java?rev=1837563&r1=1837562&r2=1837563&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java Mon
Aug  6 20:33:11 2018
@@ -175,7 +175,7 @@ public final class ImageIOUtil
     public static boolean writeImage(BufferedImage image, String formatName, OutputStream
output,
             int dpi, float quality) throws IOException
     {
-        return writeImage(image, formatName, output, dpi, 1.0f, "");
+        return writeImage(image, formatName, output, dpi, quality, "");
     }
 
     /**



Mime
View raw message