schwanm
19th of August 2004 (Thu), 03:28
Hi alltogether!
First, a big "thank you" for that really powerfull gallery!
As soon EE 1.5 Final will come out :lol: i'll pay for it willingly.
But now the issue with imagemagick:
I spent some hours to investigate why imagemagick is working well
when I'll do the "Graphics modules" - Test but not when I try to
rethumb or upload my pictures.
As I digged through the code I found the following lines in "input/RESIZE_imagemagick.php":
if ($resizemethodwatermark == "0") {
$cmd = "{$s_mogrify} -size {$im_newsize} {$fullsize_image} -resize {$im_newsize}! {$profile} {$unsharp} -quality {$resizemethodcompressionquality} {$resizemethodextracommand} {$resized_image_path}{$file_to_upload}";
exec ($cmd,$exec_output,$exec_retval);
if($exec_retval > 0) {
In the last line the return code of the "convert" command will be checked.
If it's greater than "0" you'll get an error message and that's it.
In my case this return code was "1" (don't know why!). I changed the "0" to "1" -> et voila -> I'll get nice thumbs!
if ($resizemethodwatermark == "0") {
$cmd = "{$s_mogrify} -size {$im_newsize} {$fullsize_image} -resize {$im_newsize}! {$profile} {$unsharp} -quality {$resizemethodcompressionquality} {$resizemethodextracommand} {$resized_image_path}{$file_to_upload}";
exec ($cmd,$exec_output,$exec_retval);
if($exec_retval > 1) {
But what does the return code "1" mean? The only return-codes I found are:
0 Success method completed without an error or warning
300 ResourceLimitWarning a program resource is exhausted (e.g. not enough memory)
305 TypeWarning A font is unavailable; a substitution may have occurred
310 OptionWarning a command-line option was malformed
315 DelegateWarning an ImageMagick delegate returned a warning
320 MissingDelegateWarning the image type can not be read or written because the appropriate Delegate is missing
325 CorruptImageWarning the image file may be corrupt
330 FileOpenWarning the image file could not be opened
335 BlobWarning a binary large object could not be allocated
340 StreamWarning there was a problem reading or writing from a stream
345 CacheWarning pixels could not be saved to the pixel cache
350 CoderWarning there was a problem with an image coder
355 ModuleWarning there was a problem with an image module
360 DrawWarning a drawing operation failed
365 ImageWarning the operation could not complete due to an incompatible image
380 XServerWarning an X resource is unavailable
385 MonitorWarning there was a problem with prgress monitor
390 RegistryWarning there was a problem getting or setting the registry
395 ConfigureWarning there was a problem getting a configuration file
400 ResourceLimitError a program resource is exhausted (e.g. not enough memory)
....
Would be good to clearify that because I think some other users have the identical problem. (found some threads)
best regards
marcus
First, a big "thank you" for that really powerfull gallery!
As soon EE 1.5 Final will come out :lol: i'll pay for it willingly.
But now the issue with imagemagick:
I spent some hours to investigate why imagemagick is working well
when I'll do the "Graphics modules" - Test but not when I try to
rethumb or upload my pictures.
As I digged through the code I found the following lines in "input/RESIZE_imagemagick.php":
if ($resizemethodwatermark == "0") {
$cmd = "{$s_mogrify} -size {$im_newsize} {$fullsize_image} -resize {$im_newsize}! {$profile} {$unsharp} -quality {$resizemethodcompressionquality} {$resizemethodextracommand} {$resized_image_path}{$file_to_upload}";
exec ($cmd,$exec_output,$exec_retval);
if($exec_retval > 0) {
In the last line the return code of the "convert" command will be checked.
If it's greater than "0" you'll get an error message and that's it.
In my case this return code was "1" (don't know why!). I changed the "0" to "1" -> et voila -> I'll get nice thumbs!
if ($resizemethodwatermark == "0") {
$cmd = "{$s_mogrify} -size {$im_newsize} {$fullsize_image} -resize {$im_newsize}! {$profile} {$unsharp} -quality {$resizemethodcompressionquality} {$resizemethodextracommand} {$resized_image_path}{$file_to_upload}";
exec ($cmd,$exec_output,$exec_retval);
if($exec_retval > 1) {
But what does the return code "1" mean? The only return-codes I found are:
0 Success method completed without an error or warning
300 ResourceLimitWarning a program resource is exhausted (e.g. not enough memory)
305 TypeWarning A font is unavailable; a substitution may have occurred
310 OptionWarning a command-line option was malformed
315 DelegateWarning an ImageMagick delegate returned a warning
320 MissingDelegateWarning the image type can not be read or written because the appropriate Delegate is missing
325 CorruptImageWarning the image file may be corrupt
330 FileOpenWarning the image file could not be opened
335 BlobWarning a binary large object could not be allocated
340 StreamWarning there was a problem reading or writing from a stream
345 CacheWarning pixels could not be saved to the pixel cache
350 CoderWarning there was a problem with an image coder
355 ModuleWarning there was a problem with an image module
360 DrawWarning a drawing operation failed
365 ImageWarning the operation could not complete due to an incompatible image
380 XServerWarning an X resource is unavailable
385 MonitorWarning there was a problem with prgress monitor
390 RegistryWarning there was a problem getting or setting the registry
395 ConfigureWarning there was a problem getting a configuration file
400 ResourceLimitError a program resource is exhausted (e.g. not enough memory)
....
Would be good to clearify that because I think some other users have the identical problem. (found some threads)
best regards
marcus