ngx-ssb-client
ngx-ssb-client copied to clipboard
Reduce image size when posting content
When a user drags an image into a post the user should get a message that asks him if he wants to reduce the image size by reducing the size and adding more compression.
I think the dialog should have two sliders where the user can adjust the values of size and compression, a preview of the image and a field that indicates the size in kilobytes.
A good library for doing this in javascript land is sharp:
https://www.npmjs.com/package/sharp
I have used it in a project and it worked pretty well.