On Thu, 2009-07-23 at 12:02 +0100, Vik Tara wrote: > > 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?
Yeah, there is something back in my head that agrees, however I am not sure anymore where I read the headsup. > > 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? Yes, to see your approach that would come in handy. Since I had to do the project in record time from ground up, I may say that for now we support only jpg and if they want other format as well it will come in the next version of their pub. Thanks vik. salu2 > > > 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] > -- Thorsten Scherler <thorsten.at.apache.org> Open Source Java <consulting, training and solutions> Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
