pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1867275 - /pdfbox/branches/2.0/tools/src/test/java/org/apache/pdfbox/tools/imageio/TestImageIOUtils.java
Date Sat, 21 Sep 2019 12:07:37 GMT
Author: tilman
Date: Sat Sep 21 12:07:37 2019
New Revision: 1867275

URL: http://svn.apache.org/viewvc?rev=1867275&view=rev
Log:
PDFBOX-4655: set parameter for maximal PNG compression; reorder code

Modified:
    pdfbox/branches/2.0/tools/src/test/java/org/apache/pdfbox/tools/imageio/TestImageIOUtils.java

Modified: pdfbox/branches/2.0/tools/src/test/java/org/apache/pdfbox/tools/imageio/TestImageIOUtils.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/tools/src/test/java/org/apache/pdfbox/tools/imageio/TestImageIOUtils.java?rev=1867275&r1=1867274&r2=1867275&view=diff
==============================================================================
--- pdfbox/branches/2.0/tools/src/test/java/org/apache/pdfbox/tools/imageio/TestImageIOUtils.java
(original)
+++ pdfbox/branches/2.0/tools/src/test/java/org/apache/pdfbox/tools/imageio/TestImageIOUtils.java
Sat Sep 21 12:07:37 2019
@@ -114,7 +114,6 @@ public class TestImageIOUtils extends Te
     private void doTestFile(File file, String outDir) throws IOException
     {
         PDDocument document = null;
-        String imageType = "png";
         LOG.info("Preparing to convert " + file.getName());
         try
         {
@@ -125,7 +124,8 @@ public class TestImageIOUtils extends Te
             checkSaveResources(document.getPage(0).getResources());
 
             // testing PNG
-            writeImage(document, imageType, outDir + file.getName() + "-", ImageType.RGB,
dpi, 1, "");
+            String imageType = "png";
+            writeImage(document, imageType, outDir + file.getName() + "-", ImageType.RGB,
dpi, 0, "");
             checkResolution(outDir + file.getName() + "-1." + imageType, (int) dpi);
             checkFileTypeByContent(outDir + file.getName() + "-1." + imageType, FileType.PNG);
 



Mime
View raw message