Author: tilman
Date: Sun Feb 23 20:54:22 2014
New Revision: 1571089

URL: http://svn.apache.org/r1571089
Log:
PDFBOX-1734: fix change that broke JPEG compression

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

Modified: 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java?rev=1571089&r1=1571088&r2=1571089&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java 
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java 
Sun Feb 23 20:54:22 2014
@@ -185,7 +185,7 @@ public class ImageIOUtil
                                 
writerParams.setCompressionType(writerParams.getCompressionTypes()[0]);
                             }
                         }
-                        writerParams.setCompressionQuality(0);
+                        writerParams.setCompressionQuality(quality);
                     }
                     IIOMetadata meta = createMetadata(image, imageWriter, 
writerParams, resolution);
                     if (meta != null)


Reply via email to