gm-mio

1.0.0 • Public • Published

gm-mio

Graphicsmagick with an extra function for scale-cropping images:

var gm = require('gm-mio');
    
gm('/tmp/lol.png').scaleCrop(256, 128, 50); // scale to 256 * 128, slicing off the top 50 pixels

Useful for slicing images into pixelated banners. Extremely useful. Will change your life.

Dependents (1)

Package Sidebar

Install

npm i gm-mio

Weekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • kazmer