Working with images

Author Message

Alejandro Dominguez

Tuesday 25 January 2011 1:54:01 am

Hello folks,

I have a doubt working with images in an eZ class for a news website. The news class have an image attribute to upload the main image.

If I want to resize the image for the differents views of my article, should I do it before or after upload it? For example I want that new in a blog view with an image of 221x149 px and I also want to use that new in a column with less width.

Can anybody help me?

Cheers

Sylvain Guittard

Tuesday 25 January 2011 2:41:18 am

Hi,

It's better to upload an image with a maximum resolution and let ez publish manage image sizes.

Check the doc:

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/image.ini/AliasSettings/AliasList

and define different sizes for your website

http://www.vignevin-epicure.com
http://twitter.com/vignevinEPIcure

Bertrand Dunogier

Tuesday 25 January 2011 2:47:05 am

You don't need to resize your images yourself. Just upload the largest quality image you have, and the image system will take care of the rest, based on images aliases definitions: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/image.ini/AliasSettings/AliasList

I'm not sure there is a dedicated documentation for it though, but you can easily read the comments in image.ini and ask here for more information.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Alejandro Dominguez

Wednesday 26 January 2011 12:01:14 am

Wow! This is an amazing feature! It was what I need!

Thanks Sylvain and Bertrand for your answer!!!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.