]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Hook up the TiffImage to the factory; falls back to generic handler if not present
authorKaren Lease <klease@apache.org>
Sun, 24 Nov 2002 21:35:14 +0000 (21:35 +0000)
committerKaren Lease <klease@apache.org>
Sun, 24 Nov 2002 21:35:14 +0000 (21:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195624 13f79535-47bb-0310-9956-ffa450edef68

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

index 33735d3c82b13eb0ae90b6fef72aa37dcae6f5d0..19794d22360a33e1f4fcd633acdc9ab06e42ddfa 100644 (file)
@@ -144,7 +144,12 @@ public class FopImageFactory {
         } else if ("image/eps".equals(imgMimeType)) {
             imgClassName = "org.apache.fop.image.EPSImage";
         } else if ("image/tiff".equals(imgMimeType)) {
-            imgClassName = getGenericImageClassName();
+            try {
+                imgClassName = "org.apache.fop.image.TiffImage";
+                Class.forName(imgClassName);
+            } catch (Exception ex) {
+                imgClassName = getGenericImageClassName();
+            }
         } else if ("image/svg+xml".equals(imgMimeType)) {
             imgClassName = "org.apache.fop.image.SVGImage";
         }