While I composite image on other image. Sometimes the second picture becomes black or no picture?

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
bikash00789
Posts: 5
Joined: 2016-04-05T12:09:53-07:00
Authentication code: 1151

While I composite image on other image. Sometimes the second picture becomes black or no picture?

Post by bikash00789 » 2016-07-21T05:27:44-07:00

Below is the php code which I am using...


$final_image = new Imagick();
$final_image->readImage("http://images.nationalgeographic.com/wp ... 90x742.jpg");
$im1 = new Imagick();
$im1->readImage("http://4.bp.blogspot.com/-HTvSYzA-pO4/U ... +cute2.jpg");
$im1->cropThumbnailImage( 114, 114 );
$im1->roundCorners( 10, 10 );
$final_image->compositeImage( $im1, imagick::COMPOSITE_DEFAULT, 24, 12 );

Post Reply