[opencms-dev] Scaling an Image automatically

Volkmar Emberger volkmar.emberger at e-tecture.com
Mon Feb 26 22:47:38 CET 2007


but isn't it better to save the images in every scale (thumb, big, 
small,...) in the DB, than rescale it on every imageload on the website?

Isaac R. Higgins schrieb:

>does the editor do this by default?  Is there a way to force it to if it doesn't?
>
>-----Original Message-----
>From: opencms-dev-bounces at opencms.org on behalf of Christoph Schönfeld
>Sent: Mon 2/26/2007 10:46 AM
>To: The OpenCms mailing list
>Subject: Re: [opencms-dev] Scaling an Image automatically
> 
>Here is an example showing the use of server-side image scaling to 
>100x75 px in combination with the contentload tag:
>
><%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms"%>
>...
>
><cms:contentload ...>
>  <cms:img width="100" height="75" border="0">
>    <cms:param name="src">
>      <cms:contentshow element="TeaserPicture"/>
>    </cms:param>
>  </cms:img>
></cms:contentload>
>
>The src attribute must be an absolute URL.
>
>If you do not use contentload you can also inline the src attribute 
>instead of defining it in the cms:param tag.
>
>Best regards,
>Christoph
>
>_______________________________________________
>This mail is sent to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
>  
>
>------------------------------------------------------------------------
>
>
>_______________________________________________
>This mail is sent to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://lists.opencms.org/mailman/listinfo/opencms-dev
>

-- 


Mit freundlichen Grüßen

Volkmar Emberger
Diplomand

e-tecture GmbH
Hirschstraße 2
76133 Karlsruhe

Phone: +49 721 570458-17
Fax: +49 721 1205468
e-mail: volkmar.emberger at e-tecture.com 
<mailto:volkmar.emberger at e-tecture.com>
www.e-tecture.com <http://www.e-tecture.com>

Geschäftsführer: Christian Schwab
Die Gesellschaft ist eingetragen beim Registergericht Frankfurt
(Sitz der Gesellschaft) Nr. HRB 56449
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070226/8976aaad/attachment.htm>


More information about the opencms-dev mailing list