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 :)

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 19 2025 07:12:04
Script start
Timing: Jan 19 2025 07:12:04
Module start 'layout'
Timing: Jan 19 2025 07:12:04
Module start 'content'
Timing: Jan 19 2025 07:12:05
Module end 'content'
Timing: Jan 19 2025 07:12:05
Script end

Main resources:

Total runtime1.0709 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.2891152.6406
Module start 'layout' 0.00700.0033 741.929739.4766
Module start 'content' 0.01031.0588 781.4063553.2969
Module end 'content' 1.06910.0018 1,334.703112.1250
Script end 1.0709  1,346.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4052160.0003
Check MTime0.00140.1348160.0001
Mysql Total
Database connection0.00130.122510.0013
Mysqli_queries1.009594.2601570.0177
Looping result0.00060.0544550.0000
Template Total1.033896.520.5169
Template load0.00290.275120.0015
Template processing1.030896.252320.5154
Template load and register function0.00030.023810.0003
states
state_id_array0.00100.091010.0010
state_identifier_array0.00170.155220.0008
Override
Cache load0.00270.2496590.0000
Sytem overhead
Fetch class attribute can translate value0.00060.058120.0003
Fetch class attribute name0.00140.134640.0004
XML
Image XML parsing0.00070.067020.0004
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00090.0845160.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs