<?php
$im = imagecreatefromjpeg('image.jpg');
imagepng($im, 'result.png');
imagecreatefromjpeg
- creates lib:GD image object from given PNG imageimagepng
- saves given image resource inPNG
format
group: convert
<?php
$im = imagecreatefromjpeg('image.jpg');
imagepng($im, 'result.png');
imagecreatefromjpeg
- creates lib:GD image object from given PNG imageimagepng
- saves given image resource in PNG
formatgroup: convert