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
ImageMagick error
Moderator: General Moderators
feyd | Please use
feyd | Please use
Code: Select all
,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
,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]