Help - Search - Members - Calendar
Full Version: Anyone want to offer some ImageMagick help?
Hostony Board > General Support > General Support
kingtaco
here's the command i'm running, and i'm getting no errors... but the file doesn't get saved anywhere...



$imagemagickPath = "/usr/local/bin";

system("$imagemagickPath/convert input.jpg -thumbnail '100x100>' output.gif");
Alexandre
I hope this link will help you
http://www.imagemagick.com/
JasonJones
try putting the full path to the output file.. it may be trying to write into the /usr/local/bin folder as nothing was specified for the output path.

Jason
kingtaco
i just tried that... same issue, the file doesn't get saved anywhere. sad.gif
JasonJones
you have a bit of an issue with the command order...

it needs to be:

convert -thumbnail '100x100>' input.jpg output.gif

I used your coding to make this php script.. it does nothing but resize the image hardcoded into the script... the code is as follows:

CODE
<?php
$imagemagickPath = "/usr/local/bin";
system("$imagemagickPath/convert -thumbnail '100x100>' input.jpg output.gif");
exit;
?>


You can see it work here: http://www.pr0ntab.com/kingtaco/
JasonJones
OH, and almost forgot, the output folder needs to be world writeable as the process to convert will be owned by "nobody" and will output the file owned by "nobody" ...

Jason
kingtaco
that did it thanks!

(had to chmod 777)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here