xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Lee <micha...@collegenet.com>
Subject Re: external-graphic, tif images, jimi, and *Reader.java
Date Fri, 15 Dec 2000 16:39:34 GMT
I wrote an analyzer to recognize TIFFs.  Here it is again.

Have fun!

-Michael

Eric SCHAEFFER wrote:
> 
> The analyser sub package is here only to read the image size (in pixels)
> without loading the entire image data.
> It also checks the image type.
> 
> If you know how to read these informations from tif images, you can write an
> analyser for this image type.
> But I'd like to change the FopImageFactory to use analysers if it exists one
> that match, and try to load the image data (using image classes) if there's
> no analyser.
> 
> Simple configuration has just been added to the CVS source, I'll modify the
> FopImageFactory to use it.
> 
> Eric.
> 
> PS: the CVS source has a JAI implementation, if you prefer... (Jimi is not
> supported any more by SUN)
> 
> Cordialement,
> Eric SCHAEFFER
> 
> Consultant TechMetrix Research
> http://www.techmetrix.net
> Groupe SQLi
> http://www.sqli.com
> Créateurs de sites intelligents depuis 1995
> 
> FOP, the first XSL:FO processor
> http://xml.apache.org/fop/
> 
> > -----Message d'origine-----
> > De: Neal C. Evans [mailto:nce@uab.edu]
> > Date: jeudi 14 décembre 2000 22:45
> > À: fop-dev@xml.apache.org
> > Objet: 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
> >
Mime
View raw message