I need the a function like imagecreatefrompng(), but I want to pass in the image directly (as opposed to the filename). Is this possible?
Note: I need this because the image is coming from a blob in a database.
I need the a function like imagecreatefrompng(), but I want to pass in the image directly (as opposed to the filename). Is this possible?
Note: I need this because the image is coming from a blob in a database.
It should detect it is a png
from the image header and return an image resource.