Forums / Install & configuration / center image - resize
Andreas Kaiser
Friday 16 May 2008 1:45:10 am
Hello,
In one template I need to create automatic images with a 198x159px size. These images will contain logos, so they shouldn't be cropped. The idea is to reduce the original image and then crop the image. A similar situation was posted here:
http://ez.no/developer/forum/setup_design/image_filters/re_image_filters
I've tried the code:
[AliasSettings] ... AliasList[]=flash_logo [ImageMagick] ... Filters[]=thumb=-resize 'x%1' -resize '%1x<' -resize 50% Filters[]=centerimg=-gravity center -crop %1x%2+0+0 +repage [flash_logo] Reference= Filters[] Filters[]=thumb=400 Filters[]=centerimg=198;159
but it didn't work (no image was shown). Any ideas?
eZ Partner in Madrid (Spain) Web: http://www.atela.net/
Felix Laate
Friday 16 May 2008 2:43:48 am
Hi Andreas,
I use the same, but with one more filter:
[ImageMagick] ... Filters[]=strip=-strip [smallpic] ... Filters[]=strip=
This works for me at least.
Felix
Publlic Relations Manager Greater Stavanger www.greaterstavanger.com