Disable imagemagick

Author Message

Guglielmo Celata

Tuesday 18 May 2004 9:16:39 am

I gave a look in the forum, it seems pretty easy to disable ImageMagick, but I just couldn't.
I am trying to disable it, in order to use the GD library (on a production server I tend to switch the paranoic mode on and don't want php to use system() too much).

I tried modifying my settings/override/image.ini.append.php this way:

 UseConvert=false
 UseGD=true
 
 [GDSettings]
 # If set to true more advanced functionality will be available
 # which is present in GD2. This requires GD2 to be compiled in
 # the PHP module.
 HasGD2=true
 
 # commented out in order to leave only GD
 #[ShellSettings]
 #ConvertPath=/usr/X11R6/bin
 #ConvertExecutable=convert

then I cleaned all the caches,
but the system plain ignores it.

As a matter of fact, renaming /usr/bin/convert to /usr/bin/convert_foo, leads to this warning in ez debugger:

 Failed executing: 
  convert '-geometry' '600x600>'
  'var/[site]/storage/images/[path]/5455-2-eng-GB/[file].gif'
  'GIF:var/[site]/storage/images/[path]/5455-2-eng-GB/[file].gif', Error: , Return: 127

and the image is NOT displayed.

Guglielmo

Guglielmo Celata

Tuesday 18 May 2004 10:40:20 am

I'll answer myself, hoping to be helpful.

 [ImageMagick]
 IsEnabled=false

This snippet, at the top of settings/override/image.ini.append[.php] will do the job.

The following rules may also be helpful (all gif images will be converted into png).
GIF is patented and should no longer be used.

 [Rules]
 DefaultRule=image/jpeg;gd
 Rules[]=image/jpeg;image/jpeg;gd
 Rules[]=image/png;image/png;gd
 Rules[]=image/gif;image/png;gd
 Rules[]=image/xpm;image/png;gd

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 18 2025 16:03:07
Script start
Timing: Jan 18 2025 16:03:07
Module start 'layout'
Timing: Jan 18 2025 16:03:07
Module start 'content'
Timing: Jan 18 2025 16:03:08
Module end 'content'
Timing: Jan 18 2025 16:03:08
Script end

Main resources:

Total runtime0.7116 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.0234152.6250
Module start 'layout' 0.00500.0024 741.648439.4297
Module start 'content' 0.00740.7024 781.0781430.9922
Module end 'content' 0.70980.0018 1,212.07038.5000
Script end 0.7116  1,220.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4112160.0002
Check MTime0.00130.1764160.0001
Mysql Total
Database connection0.00070.095410.0007
Mysqli_queries0.668793.9644520.0129
Looping result0.00050.0690500.0000
Template Total0.677595.220.3387
Template load0.00240.338220.0012
Template processing0.675094.857420.3375
Template load and register function0.00010.020410.0001
states
state_id_array0.00180.247610.0018
state_identifier_array0.00160.220320.0008
Override
Cache load0.00180.2494200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.090410.0006
Fetch class attribute name0.00120.162120.0006
XML
Image XML parsing0.00010.018710.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00150.2095100.0001
String conversion0.00000.001040.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/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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs