Forums / General / Prevent image resize when uploading
Edward Eliot
Tuesday 28 September 2004 3:15:08 am
How do I prevent eZpublish from resizing an image I upload through the image attribute in my "page" class?
Mark Marsiglio
Tuesday 28 September 2004 6:43:09 am
It should not resize it by default, the resizing only occurs when the image is used in a template. By default the image is resized to the size specified as "medium" in the image.ini and image.ini.append files. You can make it appear as you uploaded by specifying the template use the "original" size.
I think this is the right syntax, but I am not sure.
{attribute_view_gui attribute=$:item.object.data_map.image image_class=original}
http://www.thinkcreative.com Turning Ideas Into Strategic Solutions
Tuesday 28 September 2004 7:07:58 am
Works fine, thanks.