rsms/node-imagemagick được TopGit xếp vào nhóm dự án mã nguồn mở, với 1.8k sao trên GitHub, viết chủ yếu bằng JavaScript. Imagemagick module for NodeJS — NEW MAINTAINER: @yourdeveloper
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/rsms/node-imagemagick là nguồn chính thức.
rsms/node-imagemagick có bao nhiêu sao?
rsms/node-imagemagick có 1.8k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/rsms/node-imagemagick. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
rsms/node-imagemagick có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho rsms/node-imagemagick. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
rsms/node-imagemagick còn đang phát triển không?
Commit gần nhất trên rsms/node-imagemagick là 6.0 năm trước (theo timestamp GitHub). Repo có 330 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
rsms/node-imagemagick là gì?
rsms/node-imagemagick (rsms/node-imagemagick) là dự án JavaScript trên GitHub. Theo mô tả gốc: Imagemagick module for NodeJS — NEW MAINTAINER: @yourdeveloper
Đọc đầy đủ README ở tab phía trên.
node-imagemagick có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về node-imagemagick.