Giter Site home page Giter Site logo

Comments (9)

whoisbma avatar whoisbma commented on September 23, 2024 1

i was actually thinking of forking to add this - base64 might be the way to do it?

from reminders-of-inspiration.

evykassirer avatar evykassirer commented on September 23, 2024

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.

whoisbma avatar whoisbma commented on September 23, 2024

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.

evykassirer avatar evykassirer commented on September 23, 2024

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.

evykassirer avatar evykassirer commented on September 23, 2024

https://api.imgur.com/endpoints/image#image-upload there we go :D

from reminders-of-inspiration.

whoisbma avatar whoisbma commented on September 23, 2024

that would do it... would you have people log in to their own imgur accounts first?

from reminders-of-inspiration.

evykassirer avatar evykassirer commented on September 23, 2024

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.

whoisbma avatar whoisbma commented on September 23, 2024

looking at it, seems like using Oauth would work for that!

from reminders-of-inspiration.

evykassirer avatar evykassirer commented on September 23, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.