Forums / Developer / How can I add more convert rules for imagemagick?

How can I add more convert rules for imagemagick?

Author Message

Ekkehard Dörre

Sunday 25 May 2003 3:46:12 am

How and where can I add to
convert -quality <value> -sharpen <radius>{x<sigma>} -rotate <degrees>{<}{>}
?

Thanks, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Jo Henrik Endrerud

Sunday 25 May 2003 12:56:44 pm

You can do this with the setting in site.ini setting the convert executable. I dont have an eZ publish installation right here, so I don't remember the correct setting. Open your site.ini and search for "convert" and you will probably find the correct setting. Just change this setting to:
convert -quality <value> -sharpen <radius>{x<sigma>} -rotate <degrees>{<}{>}

and you should be set. If you turn on debugging you will see the actual command that is being run (check to see if this is correct if it doesn't work as you want)

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Jonny Bergkvist

Wednesday 28 May 2003 12:48:34 am

In eZ 2.2.x the convert settings is in site.ini.

In eZ 3.0 the convert settings has been moved to image.ini. Put your parameters into settings/override/image.ini.append*

Example (image.ini):
[ShellSettings]
ConvertPath=/usr/bin
ConvertExecutable=convert -quality <value> -sharpen <radius>{x<sigma>} -rotate <degrees>{<}{>}

Your parameters will be automatically run on alle images you put into eZ.