]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Putting the Commons codec for png before the ImageIO variant in
authorSimon Pepping <spepping@apache.org>
Thu, 21 Dec 2006 10:15:13 +0000 (10:15 +0000)
committerSimon Pepping <spepping@apache.org>
Thu, 21 Dec 2006 10:15:13 +0000 (10:15 +0000)
ImageFactory, ImageMimeType("image/png") (in the release branch) to
correct a regression. This change is _not_ to be merged back into
trunk.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_93@489314 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/image/ImageFactory.java

index 7d7a92120849adbdb6167daf562f48c48f3d5456..c0efdc9b539ac77ee8c878815166841f00517baa 100644 (file)
@@ -104,9 +104,9 @@ public final class ImageFactory {
 
         imt = new ImageMimeType("image/png");
         imageMimeTypes.put(imt.getMimeType(), imt);
+        imt.addProvider(pngImage);
         //Image I/O is faster and more memory-efficient than own codec for PNG
         imt.addProvider(imageIoImage);
-        imt.addProvider(pngImage);
 
         imt = new ImageMimeType("image/tga");
         imageMimeTypes.put(imt.getMimeType(), imt);