Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending images to my miniPaint instance from the URL #402

Open
prp-e opened this issue Mar 30, 2024 · 4 comments
Open

Sending images to my miniPaint instance from the URL #402

prp-e opened this issue Mar 30, 2024 · 4 comments

Comments

@prp-e
Copy link

prp-e commented Mar 30, 2024

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?

@viliusle
Copy link
Owner

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)

@prp-e
Copy link
Author

prp-e commented Mar 30, 2024

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

@viliusle
Copy link
Owner

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

@prp-e
Copy link
Author

prp-e commented Mar 30, 2024

I see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants