4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: Marcovich on July 20, 2009, 01:00:12 AM

Title: Imagemagick Modify
Post by: Marcovich on July 20, 2009, 01:00:12 AM
Hi all,
I have asked from my server administor to install imagemagick
he gave me the path:
/usr/local/bin/convert

but its not working to me (i have multi download mod)

Why its not working,
Please?? help me.
Title: Re: Imagemagick Modify
Post by: budduke on July 20, 2009, 09:52:09 PM
Can you browse to that folder path on your hosted server?
I am thinking they placed the imagemagick inside the convert folder
if they did it may be "/usr/local/bin/convert/convert.exe"
if they placed the files in the bin folder instead
the path would be "/usr/local/bin/convert.exe"
in otherwords, wherever they place the files for imagemagick, you should see in the directory list of that folder a file called "convert.exe" (that would be the path you need reference to)

that is about all I know about Imagemagick
Title: Re: Imagemagick Modify
Post by: Nicky on July 21, 2009, 11:48:59 AM
do following

create an php script(eg. im_test.php) with following content
Code: [Select]
<?php
error_reporting
(E_ALL);
@
ini_set("display_errors"1);
echo 
"<b>ImageMagick</b> path <b>/usr/local/bin/convert</b>";
echo 
"<br /><br />";
echo 
"<b>Original Picture</b>";
echo 
"<br />";
echo 
"<img src=\"./image.jpg\"";
system("/usr/local/bin/convert -resize '640x480' /CHANGETOYOURFULL_PATH/image.jpg /CHANGETOYOURFULL_PATH/image_im640x480.jpg");
echo 
"<br /><br />";
echo 
"<b>Resized to 640x480</b>";
echo 
"<br />";
echo 
"<img src=\"./image_im640x480.jpg\"";
system("/usr/local/bin/convert -resize '250x250' /CHANGETOYOURFULL_PATH/image.jpg /CHANGETOYOURFULL_PATH/image_im250x250.jpg");
echo 
"<br /><br />";
echo 
"<b>Resized to 250x250</b>";
echo 
"<br />";
echo 
"<img src=\"./image_im250x250.jpg\"";
system("/usr/local/bin/convert -resize '120x120' /CHANGETOYOURFULL_PATH/image.jpg /CHANGETOYOURFULL_PATH/image_im120x120.jpg");
echo 
"<br /><br />";
echo 
"<b>Resized to 120x120</b>";
echo 
"<br />";
echo 
"<img src=\"./image_im120x120.jpg\"";
?>
change /CHANGETOYOURFULL_PATH/ to your exact path to this folder (example path: /home/myuserid/htdocs/imtest/)

upload im_test.php into example: http://yoursite/imtest

upload an JPG picture renamed as image.jpg to the same folder where you uploaded im_test.php.

run http://yoursite/imtest/im_test.php in your browser

working?
no?

try to change ALL /usr/local/bin/convert to /usr/bin/convert

works?
no?

lets see.

@ badduke:
/usr/local/bin/convert is okay on *NIX systems
*.exe is something for Windoof ;)
Title: Re: Imagemagick Modify
Post by: Marcovich on July 21, 2009, 06:05:43 PM
http://backgroundscity.net/im_test.php

Its not working, i dont know what to do,
Please help me somehow?

Code: [Select]
<?php
error_reporting
(E_ALL);
@
ini_set("display_errors"1);
echo 
"<b>ImageMagick</b> path <b>/usr/local/bin/convert</b>";
echo 
"<br /><br />";
echo 
"<b>Original Picture</b>";
echo 
"<br />";
echo 
"<img src=\"./image.jpg\"";
system("usr/local/bin/convert -resize '640x480' /home/backgrou/public_html/image.jpg /home/backgrou/public_html/image_im640x480.jpg");
echo 
"<br /><br />";
echo 
"<b>Resized to 640x480</b>";
echo 
"<br />";
echo 
"<img src=\"./image_im640x480.jpg\"";
system("/usr/local/bin/convert -resize '250x250' /home/backgrou/public_html/image.jpg /home/backgrou/public_html/image_im250x250.jpg");
echo 
"<br /><br />";
echo 
"<b>Resized to 250x250</b>";
echo 
"<br />";
echo 
"<img src=\"./image_im250x250.jpg\"";
system("/usr/local/bin/convert -resize '120x120' /home/backgrou/public_html/image.jpg /home/backgrou/public_html/image_im120x120.jpg");
echo 
"<br /><br />";
echo 
"<b>Resized to 120x120</b>";
echo 
"<br />";
echo 
"<img src=\"./image_im120x120.jpg\"";
?>


Title: Re: Imagemagick Modify
Post by: V@no on July 25, 2009, 12:48:48 AM
Its not working
Not working how exactly?
Title: Re: Imagemagick Modify
Post by: Marcovich on July 25, 2009, 03:56:23 AM
Well nicky have look into my files and made some changes and still nothing its not working you can also see:
http://www.backgroundscity.net/nicky/im_test.php
Title: Re: Imagemagick Modify
Post by: V@no on July 25, 2009, 05:37:32 AM
I think you should contact your host administrator. The code Nicky provided should work just fine if everything is ok on the server.
Title: Re: Imagemagick Modify
Post by: Nicky on July 25, 2009, 07:49:57 PM
correct..

as i already wrote via PM

hi,

error message
Quote
convert: NoDecodeDelegateForThisImageFormat `/home/XXXXXXXXX/public_html/nicky/image.jpg' @ constitute.c/ReadImage/503.

send this to your host.
ImageMagick is not properly compiled or modules are missing