> Since I need the resizing as well for gif and other formats I changed
> the code to include a url that goes through the image reader of cocoon
> which allows you the resize on the fly.

I don't think Cocoon's image reader supports any other file types than
jpg does it?

For more complex image handling, we have created a module that uses jmagick:
http://sourceforge.net/projects/jmagick/

Let me know if that would help you?


Regards


Vik

Thorsten Scherler wrote:
> Hi all,
> 
> I have a question re the preview of the resource module.
> 
> I found in the modules xslt 
> src/modules/resource/xslt/resource2xhtml.xsl
> 
> the call to <xsl:template name="preview"> from
> src/modules/resource/xslt/common/mimetype.xsl
> 
> where we see whether the width is set.
> 
> Only if we have a jpg we call the svg module to ask for
> reduction/resizing of the image with adding
> "?lenya.module=svg&height=300&width=400" to the image.
> 
> This AFAIR because the other are simply not supported, right?
> 
> Since I need the resizing as well for gif and other formats I changed
> the code to include a url that goes through the image reader of cocoon
> which allows you the resize on the fly.
> 
> However I do not seem to get the internal link to the media document
> right. So I did some debug testing and added the following static
> (specific for my environment):
> <map:match pattern="x">
>   <!-- <map:read type="image"
> src="/home/thorsten/Pictures/cimg5152.jpg"/>-->
> 
>   <!--<map:read type="image"
> src="http://localhost:8888/festivales/authoring/teatro/clasico/test/galeria/sop.jpg"/>-->
> 
>   <map:read type="image"
> src="lenya-document:08191060-7721-11de-af1e-f8bf12b17365,lang=es,pub=festivales,area=authoring"/>
> </map:match>
> 
> The first two are  working like a charm the third one does not. So my
> question is what is the correct way to call the file "behind" a media
> within the sitemap so I can use it as a source for my reader?
> 
> salu2


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to