rsms/node-imagemagick is a open-source project on GitHub, written primarily in JavaScript. It has 1.8k stars. Imagemagick module for NodeJS — NEW MAINTAINER: @yourdeveloper
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
This is an abandoned version. Please see @yourdeveloper/node-imagemagick for the currently maintained version
Imagemagick module for Node.
Note: This code has been unmaintained for a long time. Please consider using the gm module instead.
You can install this module using npm:
npm install imagemagick
Requires imagemagick CLI tools to be installed. There are numerous ways to install them. For instance, if you're on OS X you can use Homebrew: brew install imagemagick.
Example
var im = require('imagemagick');
im.readMetadata('kittens.jpg', function(err, metadata){
if (err) throw err;
console.log('Shot at '+metadata.exif.dateTimeOriginal);
})
// -> Shot at Tue, 06 Feb 2007 21:13:54 GMT
API
convert.path
Path to the convert program. Defaults to "convert".
identify.path
Path to the identify program. Defaults to "identify".
identify(path, callback(err, features))
Identify file at path and return an object features.
srcPath, dstPath and (at least one of) width and height are required. The rest is optional.
Example:
im.resize({
srcPath: 'kittens.jpg',
dstPath: 'kittens-small.jpg',
width: 256
}, function(err, stdout, stderr){
if (err) throw err;
console.log('resized kittens.jpg to fit within 256x256px');
});
Example with stdin/stdout:
var fs = require('fs');
im.resize({
srcData: fs.readFileSync('kittens.jpg', 'binary'),
width: 256
}, function(err, stdout, stderr){
if (err) throw err
fs.writeFileSync('kittens-resized.jpg', stdout, 'binary');
console.log('resized kittens.jpg to fit within 256x256px')
});
crop(options, callback)
Convenience function for resizing and cropping an image. crop uses the resize method, so options and callback are the same. crop uses options.srcPath, so make sure you set it :) Using only options.width or options.height will create a square dimensioned image. Gravity can also be specified, it defaults to Center. Available gravity options are [NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
How active is development on rsms/node-imagemagick?
The most recent commit recorded on rsms/node-imagemagick was 6.0 years ago, based on the GitHub push timestamp. The repository has 330 forks — one of the better signals of community interest.
How many stars does rsms/node-imagemagick have?
rsms/node-imagemagick has 1.8k GitHub stars — refresh the page for the live number, or check github.com/rsms/node-imagemagick. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is rsms/node-imagemagick open source?
TopGit's metadata for rsms/node-imagemagick does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is rsms/node-imagemagick?
rsms/node-imagemagick (rsms/node-imagemagick) is a JavaScript project on GitHub. From the project's own README: Imagemagick module for NodeJS — NEW MAINTAINER: @yourdeveloper
Where do I read more about rsms/node-imagemagick?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/rsms/node-imagemagick is the definitive source.
Read full README in the tab above.
Still deciding about node-imagemagick?
One click hands the question to an AI along with this page — see what it says about node-imagemagick.