node-imagemagick-native
ImageMagick's Magick++ binding for Node.
Features
- Native bindings to the C/C++ Magick++ library
- Async, sync, stream and promises API
- Support for
convert
,identify
,composite
, and other utility functions
Table of contents
- Examples
- Convert formats (PNG to JPEG)
- Blur
- Resize
- Rotate, flip, and mirror
- API Reference
- Installation
- Performance
- Contributing
- License
Examples
Convert formats
Convert from one format to another with quality control:
fs.writeFileSync('after.png', imagemagick.convert({
srcData: fs.readFileSync('before.jpg'),
format: 'PNG',
quality: 100 // (best) to 1 (worst)
}));
Original JPEG:
Converted to PNG:
quality 100