internetarchive / openlibrary

One webpage for every book ever published!
https://openlibrary.org
GNU Affero General Public License v3.0
5.23k stars 1.37k forks source link

Upload covers via copy/paste #9993

Open RayBB opened 1 week ago

RayBB commented 1 week ago

Proposal

We would like to be able to upload covers via copy/paste. Also drag/drop would be nice. We can no longer support uploading via remote URLs for security purposes.

Justification

The problem is now people have to download and then upload covers which creates friction.

This would make things easier to upload.

I know our current upload system is in an old iframe and a little hard to develop with (in my opinion)

Breakdown

Requirements Checklist

Related files

*

Stakeholders


Instructions for Contributors

Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.

Freso commented 1 week ago

FWIW, MusicBrainz/Cover Art Archive (another IA project) has a long-standing ticket for URL uploading: https://tickets.metabrainz.org/browse/MBS-4641

And there’s a community developed userscript to achieve this functionality: https://github.com/ROpdebee/mb-userscripts/tree/main?tab=readme-ov-file#mb-enhanced-cover-art-uploads (Ray asked me elsewhere to show a demonstration of the userscript in action, but due to the attack(s) on IA, cover art uploading and editing is currently disabled on MB.)

mekarpeles commented 3 hours ago

See: https://www.smashingmagazine.com/2018/01/drag-drop-file-uploader-vanilla-js/ for an example of how this can be done with vanilla js