This seems like it should be incredibly simple, but I've searched for about 3 hours. I want to do something very simple. I have an <img>
html element, which gets some data in the form of a base64 image that is stored only temporarily. All I want to do is take that image and save it as a jpeg when i click on a certain button. That's it.
so something as simple as (in pseudo code of course) :
x = document.getElementByID("myImgTagID").image.saveToFile(myPath)
I've tried 50 different things, from jquery to php handling of a form POST. All I want is something straightforward and simple that takes the contents of the image ie image.value and writes it to a jpeg or png.
And the problem is I'm not clever enough to figure it out even though I feel like I've gotten close a few times. help!