Page 1 of 1
ImageMagick error
Posted: Fri Aug 31, 2007 10:46 am
by zeveck
I am calling ImageMagick using exec(). I have ImageMagick working fine when running my app on Linux, but convert crashes when I make the equivalent calls on Windows. Any ideas?
~RMC
Posted: Fri Aug 31, 2007 1:16 pm
by feyd
Additional information necessary. Example: errors you're getting, code you're using, the basic stuff...
Posted: Fri Aug 31, 2007 1:26 pm
by zeveck
feyd | Please use Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Sorry. ^_^;;
All I am getting for error is that convert crashes, like Windows pops up an illegal operation dialog or some such. I can check exact wording when I get home, but it's the generic "this application has crashed" type dialog.
Code: Select all
function resize($input_image, $output_image, $max_height, $max_width) {
$convert_cmd = "convert $input_image -resize {$max_width}x$max_height! $output_image";
$convert_cmd = escapeshellcmd($convert_cmd);
shell_exec($convert_cmd);
}
feyd | Please use Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]