Joshua,
I've just played this through:
- Extracted FOP 0.95 binary distribution.
- Ran fop.bat -fo examples/fo/basic/simple.fo -tiff simple.tiff
--> I get an RGB TIFF with RLE compression, 32bit IDE incl. alpha
- Copied jai_imageio.jar (1.1) to the lib directory.
- Created the following userconfig.xml:
<?xml version="1.0" encoding="UTF-8"?>
<fop>
<renderers>
<renderer mime="image/tiff">
<compression>CCITT T.6</compression>
</renderer>
</renderers>
</fop>
- Ran fop.bat -c userconfig.xml -fo examples/fo/basic/simple.fo -tiff
simple.tiff
--> Results in a bi-level TIFF with CCITT Group 4 compression
I can't peek into your environment, but essentially, you need
jai_imageio.jar in the classpath (preferrably on the same level as
fop.jar so the META-INF/services mechanism works properly) and then
activate CCITT compression via some means (config file, option via Java
code etc.).
What you can also try is copy the jai_imageio.jar into your JRE's
lib/ext directory which makes it available on a really low level, almost
certainly avoiding any classloader trouble.
In the end, when something doesn't work, go back to the minimal case and
work back to bigger complexity when the minimal case works.
Good luck.
On 19.07.2010 19:46:06 Marquart, Joshua D wrote:
> "I updated everything to the latest JAR and am still getting the above
> compression exception."
>
> What's meant by this is that I even moved to Fop .95 to check (per the
> jar list that followed where I note .95 as the version) and am still
> getting the problem. I'm curious if other can replicate it, or if my
> system is unique, or if possibly I am missing something.
>
> Beyond the JAI Tools jar, does there have to be an alteration to the JRE
> in use, as with a JAI deployment?
>
> -Josh
>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]