Forums / Install & configuration / ImageMagick - two ways

ImageMagick - two ways

Author Message

Ulrich L.

Friday 04 February 2005 2:21:11 pm

Hi,
while trying to generate a new site with the wizard, I wanted to get full ImageMagick functionality.

First, I installed a IM package as described on imagemagick.org. I compiled it, and test from the shell was fine, even when accessing the shell not as root. (Test is: "convert -version") However, the wizard didn't find it, even when pointing to the directory "/usr/local/bin". What's wrong about this?

Second, I installed a precompiled binary package directly under ez root. Now the wizard found it, after pointing to the certain directory.

Can anybody tell me what went wrong with my first attempt?

Björn Dieding@xrow.de

Monday 07 February 2005 5:44:58 am

turn on debugging

can the apache user execute in the dir /usr/local/bin?

I think this is a permission problem

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Ulrich L.

Saturday 12 February 2005 1:57:16 pm

Thank you for your answer.
The permissions are 755 on all files in "/usr/local/bin", as I understand it this means that all can execute, apache included.
In the meantime I recognised that the other "local" install doesn't work either, after disabling IM in the override/image.ini I finally got function, but of course only GD.

Ulrich L.

Saturday 12 February 2005 2:22:55 pm

I enabled IM again and typed the path manually (before it was the wizard) - now it seems to work. Or is GD still working...?

Is there a status display in eZpublish where I can see which graphic engine is running?

However, I'm not satisfied with the results of the generated images, they seem to be highly compressed and look much worse than the originals. Can I adjust any settings in order to improve the results (e.g. setting the compression rate in JPG generation etc.)?

Greg Rundlett

Monday 14 February 2005 5:31:56 am

If open_basedir is in effect, Apache might not be able to test for the presence of ImageMagick in /usr/local/bin even if the permissions on the directory would allow it. You can check the value of open_basedir by putting a file in your document root with this simple php code:

<?php
// filename: phpinfo.php
// purpose: shows me the details of my PHP configuration
phpinfo();
?>

If open_basedir is not restricting where a PHP script can wander in your system, then the <b>directory</b> where ImageMagick is installed needs 'execute' permission for the script to go there.

This command tells the system to let 'Others' have execute permissions on the directory
chmod o+x /usr/local/bin

hope that helps

nothing to sig here, move along

Ulrich L.

Monday 14 February 2005 12:52:31 pm

Thank you, the permissions seem all to be fine.

I assume the IM engine I compiled (located in /usr/local/bin) is now running fine for ezpublish. However, I'm not sure wether it is really IM or GD...? I would be grateful for a hint wether there is a status display in the admin interface reporting which graphic engine actually is selected and running.

I found out I can control the quality of conversion using [MIMETypeSettings] in override/image.ini.

eZ debug

Timing: Jan 19 2025 09:09:13
Script start
Timing: Jan 19 2025 09:09:13
Module start 'content'
Timing: Jan 19 2025 09:09:13
Module end 'content'
Timing: Jan 19 2025 09:09:14
Script end

Main resources:

Total runtime0.1529 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0096 588.9531180.8359
Module start 'content' 0.00970.0065 769.789198.0078
Module end 'content' 0.01620.1366 867.7969526.5313
Script end 0.1528  1,394.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00402.5854200.0002
Check MTime0.00150.9698200.0001
Mysql Total
Database connection0.00161.042310.0016
Mysqli_queries0.103367.53111410.0007
Looping result0.00150.95101390.0000
Template Total0.136189.010.1361
Template load0.00100.686710.0010
Template processing0.135088.297510.1350
Override
Cache load0.00070.477410.0007
Sytem overhead
Fetch class attribute can translate value0.00090.565710.0009
XML
Image XML parsing0.00030.181810.0003
General
dbfile0.00473.0622200.0002
String conversion0.00000.006130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs