- <?php
- $white=new Imagick();
- $white->newImage($width, $height, "white");
- $white->compositeimage($image, Imagick::COMPOSITE_OVER, 0, 0);
- $white->setImageFormat('jpg');
- $white->writeImage('image.jpg');
- //该片段来自于http://www.codesnippet.cn/detail/290820135451.html
来源: http://www.codesnippet.cn/detail/290820135451.html