cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk-Willem van Gulik <di...@webweaving.org>
Subject Re: Image Serializers
Date Sat, 15 Apr 2000 08:23:14 GMT


On Fri, 14 Apr 2000, Pier P. Fumagalli wrote:

> Stefano Mazzocchi wrote:
> > 
> > package org.apache.cocoon.components.image;
> > 
> > public interface ImageEncoder implements Component {
> >     public String getContentType();
> >     public void encode(BufferedImage image, OutputStream out)
> >     throws IOException;
> > }
> 
> I like it .... +1 

You might want to have a bit more control over the encoding. Or you end up
overriding all of it all the time; as you might want to add signatures to
your images, per-client gamma correction, different formats with fallback
where required to common encodings and so on. 

Dw


Mime
View raw message