MagickResizeImage and imagecreatetruecolor
Posted: 2009-06-02T10:34:25-07:00
I want to integrate ImageMagick with GD, manipulating with MagickWand. How can I convert from ImageMagick to GD format?
$dst_img = imagecreatetruecolor($dst_width, $dst_height);
$magick_wand = NewMagickWand();
MagickReadImage( $magick_wand, $src_img );
MagickResizeImage( $magick_wand, $dst_width, $dst_height, MW_LanczosFilter, 1.0 );
$dst_img = $magick_wand; <----------- It fails here
Thanks.
$dst_img = imagecreatetruecolor($dst_width, $dst_height);
$magick_wand = NewMagickWand();
MagickReadImage( $magick_wand, $src_img );
MagickResizeImage( $magick_wand, $dst_width, $dst_height, MW_LanczosFilter, 1.0 );
$dst_img = $magick_wand; <----------- It fails here
Thanks.