{"_id":"gulp-gm","_rev":"31-58440f1b4fccd452835554a572c70f65","name":"gulp-gm","description":"Image manipulation with GraphicsMagick for gulp.","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"gulp-gm","version":"0.0.1","description":"Image manipulation with GraphicsMagick for gulp.","main":"index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"license":"MIT","bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"homepage":"https://github.com/scalableminds/gulp-gm","dependencies":{"gm":"^1.14.2","gulp-util":"^2.2.14","through2":"^0.4.1"},"devDependencies":{"gulp-mocha":"^0.4.1","gulp":"^3.5.5","jshint-stylish":"^0.1.5","gulp-jshint":"^1.5.0"},"_id":"gulp-gm@0.0.1","dist":{"shasum":"c0839e9c2abaa5dbf41fcff212ca9956fde05ee2","tarball":"https://registry.npmjs.org/gulp-gm/-/gulp-gm-0.0.1.tgz","integrity":"sha512-JBIopiBxueWr6UMkOX8t9ozJDC739J3XuQU6p2ktMWB4K8dAB9m5jKDbSEvpPCP8QGjinBFS+5GhQSTMspZQmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVfCvZ0zYQ+nc8Kcmtge+M9J7ZpCRYByv4FllHUVrIEwIgWU28QzPyFDwV+LG/OI6AusgKj0+SYCVRoUOb3R4r2Xg="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"normanrz","email":"norman@scm.io"},"maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"directories":{}},"0.0.2":{"name":"gulp-gm","version":"0.0.2","description":"Image manipulation with GraphicsMagick for gulp.","main":"index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"license":"MIT","bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"homepage":"https://github.com/scalableminds/gulp-gm","dependencies":{"gm":"^1.14.2","gulp-util":"^2.2.14","through2":"^0.4.1"},"devDependencies":{"gulp-mocha":"^0.4.1","gulp":"^3.5.5","jshint-stylish":"^0.1.5","gulp-jshint":"^1.5.0"},"_id":"gulp-gm@0.0.2","dist":{"shasum":"765436cf1f8b4209145c76503c3650820b8b3f2b","tarball":"https://registry.npmjs.org/gulp-gm/-/gulp-gm-0.0.2.tgz","integrity":"sha512-QIUrFK+K+eIcTBXs4qiz+adlg+2+5NNtntvhRirsTa4dWmWd1Om/snrqwWO2gGUZgFAi0phViuo7Qf8y08shcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvC3zbaudsdNGipL8ZSCwN9w5SYHvYWFs1vm+km5G9KAIgQnQ1PNOYE/h4oj/kBLyLXrI/q6ICB8IdOX0dV5arpqE="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"normanrz","email":"norman@scm.io"},"maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"directories":{}},"0.0.3":{"name":"gulp-gm","version":"0.0.3","description":"Image manipulation with GraphicsMagick for gulp.","main":"index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"license":"MIT","bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"homepage":"https://github.com/scalableminds/gulp-gm","dependencies":{"gm":"^1.14.2","gulp-util":"^2.2.14","through2":"^0.4.1"},"devDependencies":{"gulp-mocha":"^0.4.1","gulp":"^3.5.5","jshint-stylish":"^0.1.5","gulp-jshint":"^1.5.0","gulp-rename":"^1.2.0"},"_id":"gulp-gm@0.0.3","dist":{"shasum":"358849cfcff062a043fb35583527cfcffb490f1f","tarball":"https://registry.npmjs.org/gulp-gm/-/gulp-gm-0.0.3.tgz","integrity":"sha512-JC6+0Tfphw6mVaeopSq+5aktl47fwqhe06ER6tjtAWUmBIKMd7txUYI0I90sSg47pptbEaPkTTrap4MIbXofVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAL4IsBGHD9krgaWDsowgqyIuPya18zGOc6cWtYnr/lQAiAVBcWny426W3SGx6sCL9ThTldJz69iIrW6hSJms39L9g=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"normanrz","email":"norman@scm.io"},"maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"directories":{}},"0.0.4":{"name":"gulp-gm","version":"0.0.4","description":"Image manipulation with GraphicsMagick for gulp.","main":"index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"license":"MIT","bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"homepage":"https://github.com/scalableminds/gulp-gm","dependencies":{"gm":"^1.14.2","gulp-util":"^2.2.14","through2":"^0.4.1"},"devDependencies":{"gulp-mocha":"^0.4.1","gulp":"^3.5.5","jshint-stylish":"^0.1.5","gulp-jshint":"^1.5.0","gulp-rename":"^1.2.0"},"gitHead":"87173bdb089cc89506e1daa38c920657e1feefe5","_id":"gulp-gm@0.0.4","_shasum":"e3268250b33b02897fafd66dda26b2189e1b2abf","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"normanrz","email":"norman@scm.io"},"maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"dist":{"shasum":"e3268250b33b02897fafd66dda26b2189e1b2abf","tarball":"https://registry.npmjs.org/gulp-gm/-/gulp-gm-0.0.4.tgz","integrity":"sha512-+L/MyZxb1zvEYH49SUNNmKcGq4ClaQXzHqQjebh1EPgvuu20FHXZXivYrhdBKo3e2CybzjYvtvhsVJclvUQQvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPGdknbMYl3/T7R9LnfjclHliOPtfommTSIVNKlW//bAiEA8Kxv/oDgy10qLBXglKSkoFX/fd5V1DBtZMM/sRcqqCM="}]},"directories":{}},"0.0.5":{"name":"gulp-gm","version":"0.0.5","description":"Image manipulation with GraphicsMagick for gulp.","main":"index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"license":"MIT","bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"homepage":"https://github.com/scalableminds/gulp-gm","dependencies":{"gm":"^1.14.2","gulp-util":"^2.2.14","through2":"^0.4.1"},"devDependencies":{"gulp-mocha":"^0.4.1","gulp":"^3.5.5","jshint-stylish":"^0.1.5","gulp-jshint":"^1.5.0","gulp-rename":"^1.2.0"},"gitHead":"fbddd4739a8543d17d8f85ca112e78a05f06f580","_id":"gulp-gm@0.0.5","_shasum":"cc1cc85ecbedc6c4a6d2d809e00252d8477d875e","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"normanrz","email":"norman@scm.io"},"maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"dist":{"shasum":"cc1cc85ecbedc6c4a6d2d809e00252d8477d875e","tarball":"https://registry.npmjs.org/gulp-gm/-/gulp-gm-0.0.5.tgz","integrity":"sha512-nGB7SKmCy7NnnJXDAA/hQp8IqPNzGjg6de6NouAtrjSjtuLcyvomoS59Rv9tVEu+nu6Hm3WSLRZRh1os2vwa2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSMil5Ke1KpylTODEN56eVDll1nj8xqFwE5rkUUcJBxwIhANJ9J2n2qWmyK3iV4WFxLKcwW7Eh47228a/6QwLqSXia"}]},"directories":{}},"0.0.6":{"name":"gulp-gm","version":"0.0.6","description":"Image manipulation with GraphicsMagick for gulp.","main":"index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"license":"MIT","bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"homepage":"https://github.com/scalableminds/gulp-gm","dependencies":{"gm":"^1.14.2","gulp-util":"^2.2.14","through2":"^0.4.1"},"devDependencies":{"gulp-mocha":"^0.4.1","gulp":"^3.5.5","jshint-stylish":"^0.1.5","gulp-jshint":"^1.5.0","gulp-rename":"^1.2.0"},"gitHead":"809786afb744cf7b9218ce1f7ce92975adc8a1ba","_id":"gulp-gm@0.0.6","_shasum":"b7fbfce4ba57c569d2a8085eaacd85f82a85dcba","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"normanrz","email":"norman@scm.io"},"maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"dist":{"shasum":"b7fbfce4ba57c569d2a8085eaacd85f82a85dcba","tarball":"https://registry.npmjs.org/gulp-gm/-/gulp-gm-0.0.6.tgz","integrity":"sha512-5y2Kwi7Jjj+tBmD8kzP9eWw4sOPDOiDTBcM5F4TSuLTo7YIBeKvZAWc2lnoIuxRXXZU/rcjO+W4YHlQ7CO+8yw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4rci4GYt0INb2IS47G0QTjqXj1iBy6GbaNelnb2KLDAIgSerNXsKpa8rFBBIFc22NvsX+Be2aQ3XHq28o80is0X4="}]},"directories":{}},"0.0.7":{"name":"gulp-gm","version":"0.0.7","description":"Image manipulation with GraphicsMagick for gulp.","main":"index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"license":"MIT","bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"homepage":"https://github.com/scalableminds/gulp-gm","dependencies":{"gm":"^1.14.2","gulp-util":"^2.2.14","through2":"^0.4.1"},"devDependencies":{"gulp-mocha":"^0.4.1","gulp":"^3.5.5","jshint-stylish":"^0.1.5","gulp-jshint":"^1.5.0","gulp-rename":"^1.2.0"},"gitHead":"019f4d9ee69211b6696a12168c2b31344beb62ef","_id":"gulp-gm@0.0.7","_shasum":"6f4d0fbc3299aabe10acc379a2c12e091887fe05","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"normanrz","email":"norman@scm.io"},"maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"dist":{"shasum":"6f4d0fbc3299aabe10acc379a2c12e091887fe05","tarball":"https://registry.npmjs.org/gulp-gm/-/gulp-gm-0.0.7.tgz","integrity":"sha512-tZreWgc5huR/ftt0jqKU0LXFA/1vdaCh4pPWa4WBuSv3gey2ODzSi/ZBnOPk+XQTTJTqCD3KJWJ5qRLDMp4ljw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5kQnAtqKEjVnnLth2AL0KD/zFRPiniw6w9pBZzZ8O3wIgbDS9HCA9MTTs5PqP7dILKUpnyZi57KYfgPQmplpWliU="}]},"directories":{}},"0.0.8":{"name":"gulp-gm","version":"0.0.8","description":"Image manipulation with GraphicsMagick for gulp.","main":"index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"license":"MIT","bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"homepage":"https://github.com/scalableminds/gulp-gm","dependencies":{"gm":"^1.14.2","gulp-util":"^2.2.14","through2":"^0.4.1"},"devDependencies":{"gulp-mocha":"^0.4.1","gulp":"^3.5.5","jshint-stylish":"^0.1.5","gulp-jshint":"^1.5.0","gulp-rename":"^1.2.0"},"gitHead":"d2eb9e6f4d48602de508bd721217536e7c9be912","_id":"gulp-gm@0.0.8","_shasum":"5fb69a51e6cbb449ccc3043479a691247f5db268","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"normanrz","email":"norman@scm.io"},"maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"dist":{"shasum":"5fb69a51e6cbb449ccc3043479a691247f5db268","tarball":"https://registry.npmjs.org/gulp-gm/-/gulp-gm-0.0.8.tgz","integrity":"sha512-ihYq7VTheIfQnuXDHh217dfWJq8qjYKIso+5pzVupo4o6EPzuQT3/h0iXdovdp9Dn9OyY7ZLnHWf/LebKnWowQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF7UPRBXwP7tuKmtFmjO4FJlUYavSRmG543PgPosOFUSAiAKuzjY5DRWNv6FDRCHKSrHP9XgCq25VUNx405sx57ofg=="}]},"directories":{}},"0.0.9":{"name":"gulp-gm","version":"0.0.9","description":"Image manipulation with GraphicsMagick for gulp.","main":"index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"license":"MIT","bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"homepage":"https://github.com/scalableminds/gulp-gm","dependencies":{"gm":"^1.14.2","plugin-error":"^1.0.1","through2":"^0.4.1"},"devDependencies":{"gulp-mocha":"^0.4.1","gulp":"^3.5.5","jshint-stylish":"^0.1.5","gulp-jshint":"^1.5.0","gulp-rename":"^1.2.0"},"gitHead":"c083918edb87edfb668b1c2ded4e7a0f5edb0140","_id":"gulp-gm@0.0.9","_npmVersion":"5.6.0","_nodeVersion":"9.9.0","_npmUser":{"name":"normanrz","email":"code@normanrz.com"},"dist":{"integrity":"sha512-T1jHDCnR3TmAABIif5ooFXonaDHdovJJRdKL9cQ8gdnMwunrW33HFqDr7E0zxw+lN0fFhBj/cp1VCeHcL9BPmg==","shasum":"dbd74a812eca5ba28c0b74e8d2f729bde9844978","tarball":"https://registry.npmjs.org/gulp-gm/-/gulp-gm-0.0.9.tgz","fileCount":10,"unpackedSize":171333,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKKzL2hoZvNienHNpL7pPkCf6jl1yfMqiXkh30E9JI/AiEA8/Y8lWk1LctoACbEQKgCq8LwaqAEZXAP7ADt3hrLRIE="}]},"maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-gm_0.0.9_1522221720024_0.5450010246093875"},"_hasShrinkwrap":false}},"readme":"# [gulp](https://github.com/gulpjs/gulp)-gm [![Build Status](https://travis-ci.org/scalableminds/gulp-gm.svg?branch=master)](https://travis-ci.org/scalableminds/gulp-gm)\n\n> Image manipulation with [gm](https://github.com/aheckmann/gm). Refer to [gm's documentation](http://aheckmann.github.io/gm/docs.html) for details.\n\n\n# Install\n\nInstall with [npm](https://npmjs.org/package/gulp-gm)\n\n```\nnpm install --save-dev gulp-gm\n```\n\n### GraphicsMagick or ImageMagick\n`gulp-gm` works best with GraphicsMagick.  \nHowever, it also supports ImageMagick, but you'll need to set the option `imageMagick: true`.\n\nMake sure GraphicsMagick or ImageMagick is installed on your system and properly set up in your `PATH`.\n\nUbuntu:\n\n```shell\napt-get install imagemagick\napt-get install graphicsmagick\n```\n\nMac OS X (using [Homebrew](http://brew.sh/)):\n\n```shell\nbrew install imagemagick\nbrew install graphicsmagick\n```\n\nWindows & others:\n- GraphicsMagick: [http://www.graphicsmagick.org/download.html](http://www.graphicsmagick.org/download.html)\n- ImageMagick: [http://www.imagemagick.org/script/binary-releases.php](http://www.imagemagick.org/script/binary-releases.php)\n\nConfirm that GraphicsMagick or ImageMagick is properly set up by executing `gm -version` or `convert -version` in a terminal.\n\n\n## Example\n\n```js\nvar gulp = require('gulp');\nvar gm = require('gulp-gm');\n\ngulp.task('default', function () {\n  gulp.src('test.png')\n\n    .pipe(gm(function (gmfile) {\n\n      return gmfile.resize(100, 100);\n\n    }))\n\n    .pipe(gulp.dest('dist'));\n});\n```\n\n### Convert png to jpg\n\n```js\ngulp.src('test.png')\n  .pipe(gm(function (gmfile) {\n\n    return gmfile.setFormat('jpg');\n\n  }))\n  .pipe(gulp.dest('dist'));\n```\n\n### Async manipulation\n\n```js\ngulp.src('test.png')\n  .pipe(gm(function (gmfile, done) {\n\n    gmfile.size(function (err, size) {\n\n      done(null, gmfile\n        .stroke(\"blue\", 6)\n        .fill(\"transparent\")\n        .drawRectangle(0, 0, size.width, size.height));\n\n    });\n\n  }))\n  .pipe(gulp.dest('dist'));\n```\n\n### Using ImageMagick\n\n```js\ngulp.src('test.png')\n\n  .pipe(gm(function (gmfile) {\n\n    return gmfile.resize(100, 100);\n\n  }, {\n    imageMagick: true\n  }))\n\n  .pipe(gulp.dest('dist'));\n```\n\n## API\n\n### gm(modifier, options)\n\n#### modifier(gmfile, [done])\n\nType: `Function`\n\nSupply a callback that manipulates the image. The first argument will the `gm` object with all original properties. [Read more in the gm documentation](http://aheckmann.github.io/gm/docs.html).\n\n##### Sync\nMake sure to return your modified `gm` object.\n\n```js\ngulp.src('test.png')\n  .pipe(gm(function (gmfile) {\n    return gmfile.blur(10);\n  }))\n  .pipe(gulp.dest('dist'));\n```\n\n##### Async\nIf your call back accepts a second argument (`done`), it will be treated asynchronously. Your code will then need to call `done(err, gmfile)` at some point.\n\n```js\ngulp.src('test.png')\n  .pipe(gm(function (gmfile, done) {\n    gmfile.size(function (err, size) {\n\n      done(null, gmfile.resize(\n        size.width * 0.5,\n        size.height * 0.5\n      ));\n\n    });\n  }))\n  .pipe(gulp.dest('dist'));\n```\n\n\n#### options.imageMagick\n\nType: `Boolean`\nDefault value: `false`\n\nSet to `true` when using ImageMagick instead of GraphicsMagick.\n\n\n## Known Issues\n\n* `gm.thumb(...)` is not supported because it writes to the file system directly. Consider using [gulp-image-resize](https://github.com/scalableminds/gulp-image-resize) instead.\n\n\n## Tests\n\n1. You need both ImageMagick and GraphicsMagick installed on your system to run the tests.\n2. Install all npm dev dependencies `npm install`\n3. Install gulp globally `npm install -g gulp`\n4. Run `gulp test`\n\n\n## License\n\nMIT © [scalable minds](http://scm.io)\n","maintainers":[{"name":"normanrz","email":"norman@scm.io"}],"time":{"modified":"2022-06-18T17:09:06.698Z","created":"2014-03-13T10:49:06.831Z","0.0.1":"2014-03-13T10:49:06.831Z","0.0.2":"2014-03-13T10:55:26.916Z","0.0.3":"2014-03-13T12:57:49.342Z","0.0.4":"2014-07-08T12:56:42.610Z","0.0.5":"2014-07-08T13:18:08.633Z","0.0.6":"2014-07-20T14:27:27.496Z","0.0.7":"2014-08-11T15:20:03.587Z","0.0.8":"2015-08-25T11:59:44.980Z","0.0.9":"2018-03-28T07:22:00.160Z"},"homepage":"https://github.com/scalableminds/gulp-gm","keywords":["gulpplugin","gulpfriendly","graphicsmagick","image"],"repository":{"type":"git","url":"git://github.com/scalableminds/gulp-gm.git"},"author":{"name":"Norman Rzepka","email":"norman@scm.io","url":"http://scm.io"},"bugs":{"url":"https://github.com/scalableminds/gulp-gm/issues"},"license":"MIT","readmeFilename":"README.md","users":{"westmark":true,"dukewan":true,"colynb":true,"h4des":true,"veksen":true,"hellopath":true,"incendiary":true,"irj":true,"tylersclark":true,"adammench":true,"steel1990":true,"ericwbailey":true}}