php imagick库下png转jpg
imagick库下png转jpg [代码片段(7行)]
<?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://outofmemory.cn
- 上一篇:PHP利用imagick把PDF转成PNG
- 下一篇:php Python描述符
精彩图集
精彩文章






