Installations
npm install qimagemagick
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
16.13.2
NPM Version
8.1.2
Score
74.6
Supply Chain
97.8
Quality
75.3
Maintenance
50
Vulnerability
100
License
Releases
Unable to fetch releases
Languages
TypeScript (72.96%)
JavaScript (27.04%)
Developer
Download Statistics
Total Downloads
2,601
Last Day
1
Last Week
1
Last Month
49
Last Year
416
GitHub Statistics
MIT License
1 Stars
10 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Feb 04, 2023
Bundle Size
22.85 kB
Minified
8.04 kB
Minified + Gzipped
Maintainers
Package Meta Information
Latest Version
0.4.1
Package Id
qimagemagick@0.4.1
Unpacked Size
114.09 kB
Size
20.37 kB
File Count
17
NPM Version
8.1.2
Node Version
16.13.2
Total Downloads
Cumulative downloads
Total Downloads
2,601
Last Day
0%
1
Compared to previous day
Last Week
-97.7%
1
Compared to previous week
Last Month
188.2%
49
Compared to previous month
Last Year
-38.1%
416
Compared to previous year
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
2
node-qimagemagick
You can install this module using npm
npm install qimagemagick --save
Requirements
- ImageMagick CLI:
- Debian/Ubuntu:
sudo apt-get install imagemagick
- Debian/Ubuntu:
Examples
Convert and show info
1import { QIM } from "qimagemagick"; 2// const { QIM } = require("qimagemagick"); 3 4async function main() { 5 let image = await QIM.read_to_buffer('./example-images/coffee.png'); 6 7 let info = await QIM.identify(image).catch(reason => {console.log(reason)}); 8 console.log(info); 9 10 let blob = await QIM.convert(image, { 11 format: 'jpg', 12 resize: '50%' 13 }).catch(reason => { 14 console.log('error: ', reason); 15 process.exit(1); 16 }); 17 18 let converted_info = await QIM.identify(blob).catch(reason => {console.log(reason)}); 19 console.log(converted_info); 20} 21 22main();
Output
1Info { 2 width: 1909, 3 height: 1066, 4 page_width: 1909, 5 page_height: 1066, 6 offset_x: 0, 7 offset_y: 0, 8 format: 'PNG', 9 depth: '8-bit', 10 colorspace: 'sRGB', 11 size: '1.8288MiB' 12} 13Info { 14 width: 955, 15 height: 533, 16 page_width: 955, 17 page_height: 533, 18 offset_x: 0, 19 offset_y: 0, 20 format: 'JPEG', 21 depth: '8-bit', 22 colorspace: 'sRGB', 23 size: '181.8047KiB' 24}
Crop from center
1import { QIM } from "qimagemagick"; 2// const { QIM } = require("qimagemagick"); 3 4async function main() { 5 let image = await QIM.read_to_buffer('./example-images/coffee.png'); 6 7 let blob = await QIM.convert(image, { 8 gravity: 'Center', 9 crop: '300x300+0+0' 10 }).catch(reason => { 11 console.log('error: ', reason); 12 process.exit(1); 13 }); 14 15 let converted_info = await QIM.identify(blob).catch(reason => {console.log(reason)}); 16 console.log(converted_info); 17} 18main();
Output
1Info { 2 width: 300, 3 height: 300, 4 page_width: 1909, 5 page_height: 1066, 6 offset_x: 804, 7 offset_y: 383, 8 format: 'PNG', 9 depth: '8-bit', 10 colorspace: 'sRGB', 11 size: '36.2393KiB' 12}
Reading images
- From local file
1let buffer = await QIM.read_to_buffer('./coffee.png'); 2let info = await QIM.identify('./coffee.png');
- From URL
1let buffer = await QIM.read_to_buffer('https://placedog.net/640/480'); 2let info = await QIM.identify('https://placedog.net/640/480');
- From Buffer
1let buffer = await QIM.read_to_buffer('https://placedog.net/640/480'); 2let info = await QIM.identify(buffer);
More Examples
Full Documentation
To see the full documentation visit: ImageMagick – Command-line Processing

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE.txt:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-03-31
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More