Forums / Setup & design / imagemagick convert parameters do not work?

imagemagick convert parameters do not work?

Author Message

alex t

Friday 28 November 2003 7:45:46 am

hi
I use convert. that does fine when setting this in the image.ini.append:
ConvertExecutable=convert

now when I try any parameter, e.g. for creating a border like this:
ConvertExecutable=convert -border 1

I get the following error:

Failed executing: "/usr/local/bin/convert -border 1" -geometry "600x600>" var/porsche/storage/reference/image//php4RKn3Z.jpg jpg:var/porsche/storage/variations/image/p/h/p//php4RKn3Z_600x600_282.jpg, Err: , Ret: 127

any idea about that? when I do the same (a simple convert -border 1 to any image) on the command line, the conversion works fine.

the two " " cause the failure. where and why are they set? also, the foto is not in ./reference/image but in ./original/image
maybe the upload did not work correct because of the " "? :-)

setting the image.ini.append back to
ConvertExecutable=convert

you can see at least the correct convert call:

Failed executing: /usr/local/bin/convert -geometry "600x600>" var/pors......

(error still occurs because the image is missing in that directory)

maybe it´s a php issue? system info:

Version
3.2-3 (3.2 release 3)
SVN revision
3893

Extensions

PHP
Version
4.3.2

Extensions
xml, tokenizer, standard, session, posix, pcre, overload, mysql, ctype, apache

Safe mode is off.
Basedir restriction is off.
Global variable registration is on.
File uploading is enabled.
Maximum size of post data (text and files) is 32M.
Script memory limit is .
Maximum execution time is 30 seconds

Database
Type
mysql
Charset
iso-8859-1

regards
/alex

Marco Zinn

Saturday 29 November 2003 5:14:05 am

Hi Alex,
when you upload images, the original is stored in var/original/image. At the same time, a "reference image" of this images is create in var/reference/image. This usually is some "usuable" size like 800x600, while you original image may be larger, if it comes from a digital camera for example.
As you assume, the problem is the first pair of quotes. The second pair of quotes (-geometry "600x600>" ) is needed, because without quotes, the > character would mean an "output redirection" for the operating system. So, th 600x600> must be in quotes.

You CAN try this:
http://ez.no/developer/ez_publish_22/forum/general/error_while_uploading_an_image_problem_solution , but I guess, that this will always give your very large image variations.
Also see this bug report http://ez.no/developer/ez_publish_3/bug_reports/convert_command_with_custom_parameters_fails, which describes your problem and notes some Variable ConvertParameters.... but i don't know, if this was introduced yet.

Note: Version 3.3 has a new image system... but i did not test this yet! Maybe you want to have a look at the beta 1 release.

Marco
http://www.hyperroad-design.com

alex t

Monday 01 December 2003 9:19:15 am

ok let's try 3.3

thanks for answer :)

eZ debug

Timing: Jan 31 2025 05:32:19
Script start
Timing: Jan 31 2025 05:32:19
Module start 'content'
Timing: Jan 31 2025 05:32:19
Module end 'content'
Timing: Jan 31 2025 05:32:19
Script end

Main resources:

Total runtime0.1859 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0625180.8125
Module start 'content' 0.00550.0063 768.875097.9297
Module end 'content' 0.01170.1741 866.8047533.3750
Script end 0.1858  1,400.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00331.7690200.0002
Check MTime0.00130.6925200.0001
Mysql Total
Database connection0.00080.447110.0008
Mysqli_queries0.141676.19271410.0010
Looping result0.00110.56741390.0000
Template Total0.173893.510.1738
Template load0.00070.375010.0007
Template processing0.173193.112410.1731
Override
Cache load0.00050.262510.0005
Sytem overhead
Fetch class attribute can translate value0.00090.465810.0009
XML
Image XML parsing0.00020.131910.0002
General
dbfile0.00744.0044200.0004
String conversion0.00000.003130.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