cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Rodriguez (genaker)" <javier.rodrig...@genaker.net>
Subject Re: Image transcoding using cocoon
Date Wed, 08 Jul 2009 10:04:13 GMT
Hi Steven, Jasha,
Thanks for your inputs. I will have a look to this ImageReader.
Best regards,
Javier

-------- Original Message  --------
Subject: Re: Image transcoding using cocoon
From: Steven Dolg <steven.dolg@indoqa.com>
To: users@cocoon.apache.org
Date: 08/07/2009 11:41
> Javier Rodriguez (genaker) schrieb:
>> Hi,
>>
>> I need to implement a transcoding of images (resolution and format) for
>> an application based in cocoon. Theses images are taken from an URL. I
>> am thinking in several solutions but I don't know witch is the most
>> appropriate:
>>
>> 1. Implement the transcoding as a separate servlet and make some
>> redirection to this servlet from the sitemap
>>
>> 2. Implement my own transcoding stuff using cocoon: 1 generator that
>> load a binary image into an XML stream, 1 or several transcoding (1 for
>> size , another for type etc...) and 1 serialize to generate the new
>> binary image
>>
>> The first option is more efficient but less integrated. And the second
>> option is more modular and integrated ...
>>
>> Do you have some experience in this kind of developments?
>>   
>
> Well I started to create some image processing for Cocoon 3, however
> this is somewhat dormant right now. (Not to technical problems, tho)
> But I simply assume, that you want to use this for Cocoon 2.x, so
> those components would not be of any help.
>
> The two options you mentioned above are certainly possible. (I'd
> prefer the first one)
> However you could also write a reader component and handle all the
> processing in it. This would eliminate the need to (de)serialize the
> image from/to XML between the components and still be "fully integrated".
>
> Having said that, there is already
> org.apache.cocoon.reading.ImageReader, which might or might not
> provide all the necessary operations you want.
> This also provides an example on manipulating images using Java2D and
> ImageIO.
>
> hth,
> Steven
>
>> Thanks a lot,
>>
>> Javier
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>

-- 
Javier Rodríguez
www.genaker.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message