publiclab / image-sequencer

A pure JavaScript sequential image processing system, inspired by storyboards
https://sequencer.publiclab.org
GNU General Public License v3.0
110 stars 210 forks source link

Load URL feature to get input image #1241

Open prakashujjwal1010 opened 5 years ago

prakashujjwal1010 commented 5 years ago

Please Note: We are preparing to participate in Google Code-in, and have reserved this issue for participants in GCI - but we'd love to have your help with another one! Please check out https://code.publiclab.org to see more

Please describe the idea

we can have a Load URL feature in image sequencer , which takes url of the image and get the image from web.

what problem could this idea solve?

currently image sequencer have three methods to get input image 1) by selecting 2) by drag and drop 3) by camera but to take images directly from web, we should have Load URL feature.

Please show us where to look

https://beta.sequencer.publiclab.org

welcome[bot] commented 5 years ago

Thanks for opening your first issue here! Please follow the issue template to help us help you ๐Ÿ‘๐ŸŽ‰๐Ÿ˜„ If you have screenshots to share demonstrating the issue, that's really helpful! ๐Ÿ“ธ You can make a gif too!

debck commented 4 years ago

Uploaded to GCI Dashboard

SidharthBansal commented 4 years ago

Published

tsparksh commented 4 years ago

Hey @debck.

For image uploading from link we need to have a backed server or a site with configured CORS.

Browsers do not allow js to access from one domain to another without permission from the requested domain (cors policy). Yes, we can add image to the user page, but we cant access its contents in the context of javascript.

Btw we already have functionality for loading images (but only from domains where CORS is configured for the distribution of pictures is allowed, for example imgur) https://beta.sequencer.publiclab.org/examples/#src=https://i.imgur.com/eYMFQMu.jpg, it doesnโ€™t work due to the lack of one line, that i fixed in #1359

tsparksh commented 4 years ago

@keshav234156, can you check this please?