[opencms-dev] image scaler
Mario Jäger
m.jaeger at alkacon.com
Wed Dec 30 10:49:59 CET 2009
Hi Ruben,
I have tried to reproduce your problem, but everything works fine.
I used a picture with the width of 900 and the height of 400. With following
<cms:img>-tag I did successful scale it to the width of 3000 and the height of 200:
<cms:img src="/picture1.jpg" alt="Picture1" scaleType="3" width="3000" height="200" />
But, if you want to scale to an exact target size, so it is better to use scaleType 4,
instead of scaleType 3. ScaleType 4 doesn't keep image proportions.
--
Kind Regards,
Mario.
-------------------
Mario Jäger
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Ruben Malchow schrieb:
> hi list,
>
> i am somewhat sure that other people have run into this - the image
> scaler apparently doesn't do anything when:
>
> - mode is 3
> - target width is bigger than image width
>
> so, if you want all your images to have the same width (regardless of
> their height), everything is fine. however, if you want you images to
> have the same height, it doesn't really work unless the images are a lot
> bigger. so, scaling an image that is 900x400 to 3000x200 results in an
> unchanged image. which, to my understanding, is wrong ... or isn't it?
>
> .rm
>
> _______________________________________________
> 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
>
More information about the opencms-dev
mailing list