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 "Neal C. Evans" <nc...@uab.edu> on 2000/12/14 22:44:48 UTC

fo:external-graphic, tif images, jimi, and *Reader.java

Hi all,

We are trying to use the fo:external-graphic tag to import tif images into
pdf documents we are generating via fop-0.15.  This doesn't work, and we get
the following error:

Error while creating area : No ImageReader for this type of image
(file:../graphics/test.tif)

Other formats, gif, jpg, png and bmp, all work just fine, as I'm sure you're
all aware.  I was a bit surprised that tif support doesn't come by compilign
fop with jimi, since jimi certainly understands tifs.  Looking through the
code, it looks like no TifReader.java has been created in
src\org\apache\fop\image\analyser.  Has anyone done this already?

If not, how do I go about creating this myself?  Can someone (perhaps the
author of the other *Reader.javas) explain to me how to go about properly
setting up the setDimension() and setDefaultHeader() methods for a tif
format file?  Looks like I will have to make some fairly academic changes to
ImageReaderFactory.java and FopImageFactory.java as well.

Thanks for your help,

Neal

p.s. I realize we could just convert the tifs to other formats.  There are
other problems that I need not discuss here that force us to use tif.


Neal Evans, Ph.D.
Senior Applications Architect
Knowledge Management Objects, LLC
(703) 841-4287