I tried the following but it takes too long to process:
imagepng(imagecreatefromstring(file_get_contents($input)), $output);
where the $input
is an animated GIF.
Any idea how to convert a large animated GIF to a still PNG in PHP fast? I simply need the first frame of the GIF image converted to PNG, fast.