Save Dynamically Generated Image
-
Hi All,
For a plugin I’m currently creating, I’m looking for a solution to a problem I face at the moment: This is a snippet of my Code
header("Content-type: image/jpeg"); echo base64_decode($result);When this code runs I see an image apppearing in my browser
Now I want to actually save this image to my wp-content/uploads folder, and make a WordPres attachment of it.Obviously the image is stored in ” $result “.
Can anyone point me in the right direction to acchieve this?
The topic ‘Save Dynamically Generated Image’ is closed to new replies.