I\'m trying to re-save an already created JPEG as a progressive jpg.
Basically, on the front end I have some JS that crops an image, and outputs a base64 im
Create image resource with imagecreatefromstring:
$data = base64_decode($data); $im = imagecreatefromstring($data); if ($im === false) { die("imagecreatefromstring failed"); } imageinterlace($im, true); imagejpeg($im, 'new.jpg'); imagedestroy($im);