xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric SCHAEFFER <ESCHAEF...@Techmetrix.net>
Subject RE: FopImage interface - proposal
Date Mon, 18 Dec 2000 23:52:03 GMT
> -----Message d'origine-----
> De: Peter S. Housel [mailto:housel@acm.org]
> Date: lundi 18 décembre 2000 21:28
> À: fop-dev@xml.apache.org
> Objet: Re: FopImage interface - proposal
> > Here is my proposal for the image package.
> > In fact, I remove dependencies with PDF stuff. The FopImage 
> implementing
> > classes return image data as a BufferedImage (I like it because it
> contains
> > everything, but it could be a RenderedImage), and can give 
> access to the
> > image InputStream to include the image content "asis".
> > The only properties that this interface provides and gives 
> access to is
> the
> > image Mime Type, and the image size (width and height in pixels).
> > Maybe we could include properties like dpi, if supported by 
> the image
> > type...
> I think this looks good.  I think that the getImage() should support
> retrieving the image by rows or bands so that it's not 
> necessary to keep the
> whole image in memory.  A method could be provided for 
> retrieving a natural
> band size for the image format to minimize the overall memory 
> requirements.

The problem is that or you write yourself all the code to read the image
data, or you use other APIs (Java native Gif/JPEG, Jimi, JAI, ...). These
APIs doesn't permit to retreve partial image data.
And I'm leazy... Thus I prefer to use other APIs.

> I'd like to write code to allow importing embedded PDF 
> figures like pdftex
> and dvipdfm can do.  Would that go through this interface also?

If that's just raster images, yes of course. If it's more a kind of vector
format, I'm not sure. 
There's an SVG class in the image package, but it breaks the package logic.
I think it should be put elsewhere, but I don't know where.

> Cheers,
> -Peter S. Housel-   housel@acm.org   http://members.home.com/housel/


Consultant TechMetrix Research
Groupe SQLi
Créateurs de sites intelligents depuis 1995

FOP, the first XSL:FO processor

View raw message