-1

I have a question. In my web app I create an image file using a little php script. It is possible to create a file and re-use it with js?

Thanks.

I find some script that convert canvas2image. The main problem is that I wolud save the image in my path (localhost/myproj/photos) and not in download folder. It is a way to do that? Thans in advise.

salvo italy
  • 193
  • 2
  • 4
  • 14
  • possible duplicate of [how to create an image file on server from dataurl](http://stackoverflow.com/questions/15675063/how-to-create-an-image-file-on-server-from-dataurl) – Mark Jan 30 '15 at 16:24

1 Answers1

0

I haven't got experience myself, but it's should be possible to load an external image into a canvas object and to export that object as a base64 string.

After that you could save that string to a client-side database with a js library such as PouchDB.

A example of loading external images into canvas is here: HTML Canvas image to Base64 problem

Community
  • 1
  • 1
Billy Blaze
  • 333
  • 1
  • 8