imagick库下png转jpg
<?php
$white=new Imagick();
$white->newImage($width, $height, "white");
$white->compositeimage($image, Imagick::COMPOSITE_OVER, 0, 0);
$white->setImageFormat('jpg');
$white->writeImage('image.jpg');
Copy after login
以上就是imagick库下png转jpg的内容,更多相关内容请关注PHP中文网(www.php.cn)!