Jedito
12-03-2001, 07:36 PM
I have a customer who want to work with PHP and Imagemagick, but he don't exactly know how to do it.
I'm totally clueless, so, I want to ask, if anybody know good documentation about it.
Please don't tell me search in google, I already did it.
Thanks in advance.
Varun Shoor
12-04-2001, 02:13 AM
Here is something i used to resize my images:
$execute_command = exec ("/usr/local/bin/convert -geometry "."220" ."x"."250!"." \"".$ssname."\" \"".$tfile."\"");
Basically, you just use exec to run image magick commands, to manipulate files, you upload them, specify ImageMagick with path to the uploaded file and its destination directory
Hope that helps :D
Schumi3
12-04-2001, 08:19 AM
well, i'm the customer ;) and it don't works... I'm always getting a parse error?!?
look at my script:
<?php
$ssname = "1_cover.jpg";
$tfile = "new.jpg";
$execute_command*=*exec*("/usr/local/bin/convert -geometry "."220"*."x"."250!"." \"".$ssname."\" \"".$tfile."\"");
?>
I don't really see any errors...
Varun Shoor
12-04-2001, 02:58 PM
hmm, thats weird :erm:
What line does it give parse error on? this is the same exact code I used, I just Copied it and pasted it
hostgold
12-04-2001, 03:29 PM
Hey I am pretty familiar with gd but how do you do that with a query with mysql I was asked that a while back and didn't have an answer
bobcares
12-04-2001, 03:31 PM
Hi!
Why not check the path for
/usr/local/bin/convert
Have a great day :)
regards
amar
Varun Shoor
12-04-2001, 04:20 PM
amar,
invalid path shouldnt give a parse error in PHP, parse error means invalid PHP Code, but that code seems fine
Hey I am pretty familiar with gd but how do you do that with a query with mysql I was asked that a while back and didn't have an answer
What do you mean by that? Can you please explain in more detail :)
Schumi3
12-04-2001, 04:37 PM
Nah, path is correct.
Parse error on the line on wich the exec()-command is...
cyansmoker
12-04-2001, 08:38 PM
Originally posted by Schumi3
Nah, path is correct.
Parse error on the line on wich the exec()-command is...
Well,
I guess if you don't copy/paste the exact error message here, nobody's gonna be able to help you.
Schumi3
12-05-2001, 06:51 AM
Baaaaah:
Parse error: parse error in /home/gregdow/public_html/imagemagick.php on line 7
don't says much more then I said, line 7 is the line on wich the exec()-command is.