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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
imagecreatefromstring()It should detect it is a
pngfrom the image header and return an image resource.