Sunday, 19 March 2017

Node.js/AngularJS: Shrink image files to specific file size

Using a MEAN environment, I would like to automatically shrink image files (.gif/.png/.jpg) which are uploaded by websites users, to a specific file size (e.g. 2 MB). Is there any node.js module available, enabling me to use something like this:

SomeModule.shrinkImage('MyHugeImage.jpg','2MB')
.then()
[...]

Haven't found anything suitable yet. May happen on client (using AngularJS) or server-side (Node.js module), I don't care. Suggestions?



via Igor P.

No comments:

Post a Comment