[](https://badge.fury.io/js/teamlockr-s3-imagekit)
npm install teamlockr-s3-imagekit
Developed by TeamLockr Dev Team
cropImage
resizeFromUrl
resizeImage
These three methods will crop and resize from S3 and create new images based on the parameters passed in.
medium, large, small etc.To use the resizer, firstly make sure that you've installed either imagemagick or graphicsmagick
On OS X, you can do so by brew install imagemagick
Next
``shell`
$ npm install gm
It exposes a few functions:
+ resizeFromUrl
+ resizeImage
1) resizeFromUrl:
Takes in sizes, a sourceUrl, bucket, a key, as well the name that will be assigned to the downloaded and resized file when uploaded.
* Tip:
For more usage on gm` you can checkout gm methods