SFTtech / abrechnung

Payment tracking and money splitting for groups 💸
https://abrechnung.readthedocs.io
GNU Affero General Public License v3.0
122 stars 15 forks source link

Add client side compression of images #176

Closed Raupinger closed 8 months ago

Raupinger commented 8 months ago

Add the option to compress images in the browser using the browser-image-compression module. Currently, since there is now way for the client to get the size limit with the current API, the target size is hard-coded at 1MB, which is the default for the file size limit. An endpoint for that could of course be added, but I'd like some feedback on whether that's necessary before I start screwing around with the API.

solves #114

https://github.com/SFTtech/abrechnung/assets/29229062/63bf20f6-862c-47f5-8020-20e5cdb44d88