[opencms-dev] Functionality of CmsJspActionElement.img()
Uhlig, Roman Knuepfer Verlag
roman.uhlig at knve.de
Mon May 29 12:55:00 CEST 2006
Hi,
we detected a strange behaviour of the CmsJspActionElement.img() method
(as well as <cms:img> tag). Generating the resized preview thumbnails
seems to work only when logged in into the workplace. In this case,
small versions of the larger images are correctly created. As soon as I
visit the page from outside the workplace, e.g. as usual visitor, the
full sized images are downloaded and just displayed as small sized
thumbnails.
The images are generated within a contentload loop by this tag:
<cms:img width="120" height="120" scaleRendermode="1" hspace="10"
border="0" alt="" style="vertical-align:middle;float:left">
<cms:param name="src"><cms:contentshow /></cms:param>
</cms:img>
It generates HTML code like this:
<img
src="/opencms/opencms/mysite/imagegallery1/image45.jpg?__scale=w:120,h:1
20,r:1" width="120" height="120" hspace="10"
style="vertical-align:middle;float:left" border="0" />
It would be great if there's any solution to the problem, cause we have
to server large sized images as thumbnails. Just displaying them small
sized is not sufficient, we need real image resizing functionality,
which should be delivered by CmsJspActionElement.img() if I got the API
docs right.
BTW, if there is a real thumbnail generation: Where are these generated
images saved? Are they physically stored within the VFS or just inside
the cache?
Thanks for any help on this topic,
Roman
More information about the opencms-dev
mailing list