Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/longlho/im-native
Node ImageMagick Native module
https://github.com/longlho/im-native
Last synced: about 2 months ago
JSON representation
Node ImageMagick Native module
- Host: GitHub
- URL: https://github.com/longlho/im-native
- Owner: longlho
- License: mit
- Created: 2014-03-18T01:11:46.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-10T05:07:59.000Z (about 10 years ago)
- Last Synced: 2024-10-03T12:23:46.589Z (3 months ago)
- Language: JavaScript
- Size: 895 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
im-native
=========[![Build Status](https://travis-ci.org/longlho/im-native.svg?branch=master)](https://travis-ci.org/longlho/im-native)
Native binding for Magick++. **Still in development**
Quick usage:
```javascript
var im = require('im-native');
var outputBuffer = im.convert(
// Required. Can also be URL, file path or Buffer object. Note that IM is IO-blocking so using path/URL will block the process
'test.jpg',
// Required. Operations, just like arguments you'd pass to `convert` process
['resize', '100x100^', 'quality', 75, 'format', 'WEBP', 'extent', '100x100', 'CenterGravity', 'blurSigma', 5],
// Required, callback function
callbackFn
});
```Supported methods
---**NOTE**: Orders do matter
- `['strip']`
- `['interlace', '']`
- `['resize', 'x']`
- `['extent', 'x']`
- `['format', '']`
- `['quality', '<0 - 100>']`
- `['filter', '']`
- `['blurSigma', '']`TODO
---- Figure out optional width & height
- More tests
- Composite (for rounded corners...)