From: Karen Lease Date: Sun, 24 Nov 2002 21:35:14 +0000 (+0000) Subject: Hook up the TiffImage to the factory; falls back to generic handler if not present X-Git-Tag: fop-0_20_5rc~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0af27966653f738522d8572e51c89ee0b98ebd1e;p=xmlgraphics-fop.git Hook up the TiffImage to the factory; falls back to generic handler if not present git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195624 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/image/FopImageFactory.java b/src/org/apache/fop/image/FopImageFactory.java index 33735d3c8..19794d223 100644 --- a/src/org/apache/fop/image/FopImageFactory.java +++ b/src/org/apache/fop/image/FopImageFactory.java @@ -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"; }