miniPaint icon indicating copy to clipboard operation
miniPaint copied to clipboard

Sending images to my miniPaint instance from the URL

Open prp-e opened this issue 1 year ago • 4 comments

Consider I have an image hosted on example.com/image.png and I have myminipaint.com on another server. What I have in mind is that using it like this:

myminipaint.com/#image=example.com/image.png

Somehow like what photopea does with their API's.

Is it possible?

prp-e avatar Mar 30 '24 07:03 prp-e

Yes, here is example for you: https://viliusle.github.io/miniPaint/?image=http://i.imgur.com/ATda8Ae.jpg

p.s. make sure your URL on exampe.com provides correct CORS headers (so not all cases will work because of this reason)

viliusle avatar Mar 30 '24 18:03 viliusle

Thanks, I faced CORS error on a lot of URL's, so I ask another question, is there any option for Base64 images?

prp-e avatar Mar 30 '24 19:03 prp-e

Yes, but only with Menu: File > open > open data URL

viliusle avatar Mar 30 '24 19:03 viliusle

I see.

prp-e avatar Mar 30 '24 20:03 prp-e