Author Topic: Imagemagick Modify  (Read 6015 times)

0 Members and 1 Guest are viewing this topic.

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
Imagemagick Modify
« 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.

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: Imagemagick Modify
« Reply #1 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
Buddy Duke
www.budduke.com

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Imagemagick Modify
« Reply #2 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 ;)
cheers
Nicky
Your first three "must do" before you ask a question ! ( by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
Re: Imagemagick Modify
« Reply #3 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\"";
?>


« Last Edit: July 21, 2009, 06:19:36 PM by Marcovich »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Imagemagick Modify
« Reply #4 on: July 25, 2009, 12:48:48 AM »
Its not working
Not working how exactly?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
Re: Imagemagick Modify
« Reply #5 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Imagemagick Modify
« Reply #6 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Imagemagick Modify
« Reply #7 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
cheers
Nicky
Your first three "must do" before you ask a question ! ( by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi