RE: Help with JAI, TIFF, and FOP
Victor Mote wrote: J.Pietschmann wrote: Contrary to the documentation, JAI support in 0.20.4 requires nontrivial code changes. Simply dropping in the JAI API jar isn't sufficient. I still don't have time to look at the code today. Do you think this comment was intended to document the redesign branch instead of the maintenance branch? OK, now I understand this to be distinguishing between 0.20.4 and the 0.20.5 release candidates. I will open a thread on fop-dev to discuss synchronization of the web site with our releases. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with JAI, TIFF, and FOP
Comments inline. On 12.05.2003 20:02:18 Steve Albin wrote: I am using the fop 0.20.4 binary distribution on Windows. I have a couple of questions I'm hoping that others can help me with. 1) I am unable to get FOP to invoke JAI to handle a TIFF or PNG. I have copied the jai_core.jar and jai_codec.jar files to {fop-install-lib}\lib. Here is my FO: fo:external-graphic src=url('file:///C:/image.tiff')/ When I invoke FOP with the JAI libraries in the path I get the following error: [ERROR] Error while creating area : Error creating FopImage object (file:/C:/image.tiff) : Jimi image library not available Why would I get the Jimi image library not available if I'm trying to use JAI? This happens when only JIMI support is compiled in and JIMI is not in the classpath. See 2) for more. 2) I read through the thread on clarifications about using JAI/JIMI with FOP and it appears that those who successfully used JAI had to build FOP themselves. Does the binary distribution really support JAI as described or do I need to actually built FOP myself to support it? Also, should I be using a different version of FOP? 0.20.4 binary seems to have been compiled without JAI support. But it contains JIMI support. You have two choices: 1. Use the 0.20.4 source dist and compile yourself. 2. Use 0.20.5rc or 0.20.5rc2 binary dist. 3) I cannot render a TIFF in a PDF with the JIMI library If I invoke FOP with the JIMI library in the path I get the following [ERROR] Error while creating area : Error while loading image file:/C:/image.tiff : class java.lang.Exception - Image error 0.20.4 still contained support for TIFF though JIMI but JIMI being old software may not support all subformats. I think you're trying to open a TIFF image to supported by JIMI. A comment to those who love details: In 0.20.5xxx TIFF support through JIMI got indirectly disabled by the addition of the TIFFImage class which derives from JAIImage. This made direct embedding of JPEG and CCITT subformats in PDF possible but at the same time disabled TIFF when JIMI is used. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with JAI, TIFF, and FOP
Jeremias Maerki wrote: 0.20.4 binary seems to have been compiled without JAI support. But it contains JIMI support. You have two choices: 1. Use the 0.20.4 source dist and compile yourself. Contrary to the documentation, JAI support in 0.20.4 requires nontrivial code changes. Simply dropping in the JAI API jar isn't sufficient. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]