0.2.4 • Published 10 years ago

im-native v0.2.4

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

im-native

Build Status

Native binding for Magick++. Still in development

Quick usage:

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', '<interlaceType>']
  • ['resize', '<width>x<height><flag>']
  • ['extent', '<width>x<height', '<gravity>']
  • ['format', '<JPG/PNG/WEBP>']
  • ['quality', '<0 - 100>']
  • ['filter', '<filter types>']
  • ['blurSigma', '<blurSigma>']

TODO

  • Figure out optional width & height
  • More tests
  • Composite (for rounded corners...)
0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago