9951 explained code solutions for 126 technologies
<?php $im = imagecreatefrompng('image.png'); imagejpeg($im, '/tmp/image.jpg');ctrl + cgithub
<?php $im = imagecreatefrompng('image.png'); imagejpeg($im, '/tmp/image.jpg');
imagejpeg
saves given gd image in jpeg format to the specified path
gd
jpeg
imagecreatefrompng
creates GD image object from given PNG image