imagemagick-native-promise
JavaScript Promise wrapper for node-imagemagick-native
Features
- Used node-imagemagick-native
- Used native promise library
- Callback can used and stream API are still origin
Promise supported methods
Please look full API reference at https://github.com/elad/node-imagemagick-native/blob/master/README.md
Original's table of contents
- Examples
- Convert formats (PNG to JPEG)
- Blur
- Resize
- Rotate, flip, and mirror
- API Reference
Examples
Convert formats
Convert from one format to another with quality control:
imagemagick
Blur
Blur image:
imagemagick
Resize
Resized images by specifying width
and height
. There are three resizing styles:
aspectfill
: Default. The resulting image will be exactly the specified size, and may be cropped.aspectfit
: Scales the image so that it will not have to be cropped.fill
: Squishes or stretches the image so that it fills exactly the specified size.
imagemagick
Rotate, flip, and mirror
Rotate and flip images, and combine the two to mirror:
imagemagick