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.

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

eZ debug

Timing: Jan 30 2025 22:28:33
Script start
Timing: Jan 30 2025 22:28:33
Module start 'layout'
Timing: Jan 30 2025 22:28:33
Module start 'content'
Timing: Jan 30 2025 22:28:34
Module end 'content'
Timing: Jan 30 2025 22:28:34
Script end

Main resources:

Total runtime1.0990 sec
Peak memory usage8,192.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.2656151.2266
Module start 'layout' 0.00780.0061 739.4922220.7188
Module start 'content' 0.01401.0843 960.21094,483.0234
Module end 'content' 1.09820.0007 5,443.234411.8125
Script end 1.0989  5,455.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3405160.0002
Check MTime0.00130.1174160.0001
Mysql Total
Database connection0.00120.108010.0012
Mysqli_queries1.017792.6022590.0172
Looping result0.00050.0462570.0000
Template Total1.044795.120.5223
Template load0.00200.179520.0010
Template processing1.042794.879720.5213
Template load and register function0.00110.099310.0011
states
state_id_array0.00180.167410.0018
state_identifier_array0.00160.148720.0008
Override
Cache load0.00170.1513210.0001
Sytem overhead
Fetch class attribute can translate value0.00140.129330.0005
Fetch class attribute name0.00160.150050.0003
XML
Image XML parsing0.00300.269330.0010
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00290.2668220.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs