ngx-ssb-client icon indicating copy to clipboard operation
ngx-ssb-client copied to clipboard

Reduce image size when posting content

Open enko opened this issue 6 years ago • 0 comments

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.

enko avatar Jun 26 '18 10:06 enko