-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.

1

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.