Comments (9)
i was actually thinking of forking to add this - base64 might be the way to do it?
from reminders-of-inspiration.
I don't know anything about base64 but I might look into it soon then!
And if want to add it and contribute to this repo, that would be amazing! The code's in a weird place right now - I'm doing a refactor to make the code much cleaner, but if you ignore the 'old' files (which is what people are currently seeing) you should be fine
from reminders-of-inspiration.
Base64 in this case is just an ASCII representation of the image binary so could in theory have the storage object contain a base64 string that gets used as the image src.
I gave it a try though - unless saving super tiny images, need to split up the base64 string into small blobs throughout storage because the max size for a storage object field (QUOTA_BYTES_PER_ITEM) is something like 8KB... it could work but would also have to increase the total size (QUOTA_BYTES) to unlimited. Dunno how realistic or scalable really that would be.
from reminders-of-inspiration.
hmmm yeah that sounds pretty messy.
Are there free image hosting services that have APIs? Like how you can host images on imgur, if we could just upload to them and get the url through some request. Idk if that exists though
from reminders-of-inspiration.
https://api.imgur.com/endpoints/image#image-upload there we go :D
from reminders-of-inspiration.
that would do it... would you have people log in to their own imgur accounts first?
from reminders-of-inspiration.
I haven't looked into what we'd need to do to use the API but if that's needed, then I guess so!
the extension also works offline, so we'd have to add a little message saying it's only an option if you're connected to the internet, but I think it could work out!
from reminders-of-inspiration.
looking at it, seems like using Oauth would work for that!
from reminders-of-inspiration.
sweet
I looovee Oauth :p
haha so looks like we got a plan! probably not at the top of my todo list right now, but I do want to get this on here eventually - and if you want to add it just let me know and I'll clean up the existing files haha
from reminders-of-inspiration.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reminders-of-inspiration.