You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2004/02/11 10:53:17 UTC
DO NOT REPLY [Bug 26847] New: -
PNG images using JIMI instead JAI
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26847>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26847
PNG images using JIMI instead JAI
Summary: PNG images using JIMI instead JAI
Product: Fop
Version: 0.15
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: images
AssignedTo: fop-dev@xml.apache.org
ReportedBy: joaquin.sanchez@fi2net.com
Trying to create an external graphics using a PNG file does not works if you
want to use JIMI instead JAI.
Location:
class::org.apache.fop.image.FopImageFactory
method::getGenericImageClassName
You catch an Exception when configuring m_genericImageClassName field. If you
have configured JIMI in your classpath instead JAI it throws an Error:
java.lang.NoClassDefFoundError: javax/media/jai/PlanarImage
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.apache.fop.image.FopImageFactory.getGenericImageClassName
(FopImageFactory.java:236)
at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:163)
...
...
In this scenario you cannot use FOP to render a PNG file. To solve this BUG you
must catch Throwable instead Exception.
A workaround is to set m_genericImageClassName
to "org.apache.fop.image.JimiImage" via java.lang.reflect package before you
call FOP.
Bye.
Thanks.