用php怎样将图片gif转化为jpg

<?php

$input= "link2.gif";
$output='test.jpg'   ;
$image=imagecreatefromgif($input);
imagejpeg($image,$output);
imagedestroy($image);
unlink($input);

 

 

posted @ 2017-12-26 09:53  码农编程进阶笔记  阅读(42)  评论(0编辑  收藏  举报
返回顶部 有事您Q我