I agree with 2) not scaling up could maybe be a flag that is set to
false by default? Also, if the resulting image is larger than the
original image and we are not scaling up it would be good to still
return an image of the requested size and use a transparent background
or color background and an alignment for the source image in the
resulting image (top, bottom, center, left, right, center).
Ruben
Vincent Faidherbe wrote:
Hello,
I think It's not a good idea to change the default behaviour:
1/ If the ScaleImageTag doesn't allow to scale up an image, it must be
renamed to ScaleDownImageTag
2/ I'm relying on this behaviour for one of my website. Some pages
require images with a fixed dimension for esthetic reasons. When
contributors upload images with smaller dimension, the scale up
behaviour generally does the trick. I'm sure that there must be other
Magnolia users that uses the scale up behaviour and maybe without
noticing it.
Personally, my biggest issue with the ScaleImageTag is that it
generally generates image with bigger size. I think it is caused by
the use of PNG format and the lack of attributes that let the users
specify the quality or the compression level.
Vincent
----- Original Message ----- From: "Tom Duffey" <[email protected]>
To: <[email protected]>
Sent: Monday, July 07, 2008 5:57 PM
Subject: [magnolia-user] scale image tag
Hi All,
We're modifying the scale image tag so it does not attempt to expand
images beyond their original dimensions. I will submit this change
to be incorporated into a future release but thought I should ask
if anyone does not want this behavior? We never want images made
bigger than their original dimensions but if someone does want it
let me know now so I can make it an option in the patch I submit.
Tom
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------