pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java?rev=1837562&r1=1837561&r2=1837562&view=diff
==============================================================================
--- pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java
(original)
+++ pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java
Mon Aug  6 20:33:05 2018
@@ -185,7 +185,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