joelacus / Cobalt

A very customisable widget based start page browser extension/website
11 stars 4 forks source link

Support for local images #12

Open SfSuicune opened 7 months ago

SfSuicune commented 7 months ago

This tab tool is really great! It's only missing one thing for me and that the usage of local images. Only links from he internet are allowed to be used for some reason while local ones get ignored, which doesn't really make sense since these can always change or stop working.

joelacus commented 7 months ago

Hi! That's a good question. The main reason for not allowing local images is due to storage limitations. The extension is only allowed to store a maximum of 10MB of data locally in the browser, and only sync up to 100KB of data.

Accessing files on the user's computer is technically possible with the right permissions, but would be a security/privacy concern for some users, and can be complicated to implement. I could make the "unlimitedStorage" permission optional in Chrome/Edge so the extension can store more data securely instead. Firefox has another method for storing more data in the extension without the need of extra permissions. I'll have a look into this for you. These images however, will not be able to synchronise with your browser to other devices as it is still limited to 100KB.

Alternatively, you could upload your images to sites like Imgur to store them, and use the image URL it will generate for you.