Page 1 of 1

jpg problems, need help asap

Posted: 2008-04-08T14:27:27-07:00
by maurisouto
Hi, I'm a php developer, my client install ImageMagick on his server, but when i try to create a jpg file it does not work.
if a try with gif file every is fine.
can you help me? this is my code:
/usr/local/bin/convert -background lightblue -fill blue -font Arial -pointsize 72 label:DragonMind text_img.jpf

please, help me

I will very appreciate your help.

Mauricio Souto.

Re: jpg problems, need help asap

Posted: 2008-04-08T14:30:04-07:00
by fmw42
Possibly it does not work as you spelled jpg wrong. You have jpf instead of jpg. It that is not it, have you installed the jpg delegate library.

See

http://www.imagemagick.org/download/delegates/

Re: jpg problems, need help asap

Posted: 2008-04-09T00:04:09-07:00
by Bonzo
You can find detailed info about your setup using:

Code: Select all

<?php
// Build the array of items to be used
exec("convert convert -list list", $IMarray, $code);
// Start the loop to find and display the results
foreach ($IMarray as $value) {
echo "<br>system (\"convert -list $value\")";
echo "<pre>";
system("convert -list $value");
echo "</pre><hr>";
}
?>
There are some other examples of php and ImageMagick on my site.