is there a way to use imagecreatefromstring()
and get somehow what is the image type?
When you use imagecreatefrom... methods, the image is loaded into memory as the uncompressed bitmap. there is not really a image type at this point. you can save it back out as whatever type you wish using the image... function.
$img = imagecreatefromstring($data);
imagepng($img, "file path and name");
imagedestroy($img);
http://us2.php.net/manual/en/function.imagecreatefromstring.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With