gm
Do not start with it. 9th of 9 image processing libraries.
gm is a Node wrapper that runs the GraphicsMagick or ImageMagick command-line tools. Its author sunset it on 2025-02-24, and npm marks it deprecated. Do not use it for new work. Pick sharp for most server-side image work, or call the `magick`/`gm` binaries directly if you need ImageMagick features.
Best for: Nobody starting today; only existing codebases that need time to migrate off it.
Scores
Overall1.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 1.0, likely 0.5 to 2.0
gm is deprecated and unmaintained, so it should not start a new project. Sharp is faster, typed and actively maintained, and covers the common jobs. For rare ImageMagick-only features, the author himself advises calling the binaries directly. Its remaining downloads come from legacy codebases.
- npm deprecated: Package officially sunset
- github.com/aheckmann/gm: Author recommends migrating off it
- sharp.pixelplumbing.com/performance: Sharp is about 4x faster on the same task
- peers sharp commitsLastYear: Sharp is active, with 255 commits in the last year
GPT-6.2 Sol: 1.6, likely 0.9 to 2.2
The last release still covers a wide range of image operations, but the npm deprecation and explicit end of fixes make gm a poor choice for a new dependency. Sharp is actively maintained and faster in common resizing tests. The range is narrow because the remaining case for gm is largely compatibility with existing pipelines.
- github.com/aheckmann/gm#2025-02-24-this-project-is-not-maintained: Confirms the sunset and suggests calling the executables directly
- npm deprecated and peers sharp commitsLastYear: gm is deprecated while sharp recorded 255 commits in the last year
- sharp.pixelplumbing.com/performance: Current comparison favors sharp for routine JPEG and PNG resizing
Needed by many4.5
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Many backend developers need to resize and convert images, but not most JS developers. gm narrows this further: it runs only on Node and needs a system-installed GraphicsMagick or ImageMagick, so it does not fit browsers, edge runtimes or locked-down serverless.
- github.com/aheckmann/gm: Requires GraphicsMagick or ImageMagick installed separately
- category scope: Image processing is common in server-side web apps but not universal
GPT-6.2 Sol: 4.0, likely 2.8 to 5.3
Thumbnails, format conversion, and image annotation are common needs in web and media apps. gm serves the subset that processes images in Node.js and can install a system executable. The survey measures Node.js use, so the share that needs this kind of wrapper remains uncertain.
- survey.stackoverflow.co/2026/technology/data: 46.4% of respondents to the web technology question reported using Node.js
- github.com/aheckmann/gm: Documents image operations and requires GraphicsMagick or ImageMagick
Helps a lot5.0
How well does it do the job for those who need it?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
gm still works as a thin wrapper and gives access to the broad ImageMagick feature set. But it is about 4x slower than sharp on JPEG resizing, ships no types, and depends on the version of the system binary. Sharp does the common jobs clearly better.
- sharp.pixelplumbing.com/performance: JPEG: gm about 21 ops/s against sharp about 89 ops/s on AMD64
- npm hasTypes: No bundled TypeScript types
- npm-compare.com/gm,imagemagick,jimp,sharp: Wider format and API support than sharp, but it needs system dependencies
GPT-6.2 Sol: 6.0, likely 4.9 to 7.1
Version 1.25.1 covers the core jobs, including drawing text and shapes, with examples and stream support. The callback API and separate type declarations add friction, and a user reported missing text after upgrading GraphicsMagick on Alpine. Sharp was faster in both an older independent comparison and its current benchmark against gm 1.25.1. The benchmark gap varies by workload, and drawing behavior depends on the installed executable.
- github.com/aheckmann/gm: Documents callbacks, stream handling, drawing, and backend options
- npmjs.com/package/%40types/gm: Separate community TypeScript declarations
- github.com/aheckmann/gm/issues/877: User reports missing text on Alpine with some GraphicsMagick versions
- github.com/ivanoff/images-manipulation-performance: Older independent comparison found sharp faster
- sharp.pixelplumbing.com/performance: Sharp’s own tests show higher throughput on JPEG and PNG resizing
Holds up over time0.6
Will it still be a good choice in two years?
Claude Opus 5.5: 0.5, likely 0.0 to 1.0
The author formally sunset the project and npm marks it deprecated. There were no commits or releases in the last year, and 325 issues and 41 pull requests are open. The README says nothing more will be merged or published.
- npm deprecated: Deprecated: 'The gm module has been sunset'
- github commitsLastYear: 0 commits and 0 releases in the last year
- github.com/aheckmann/gm: README: no issues addressed, no PRs merged, no releases
- bestofjs.org/projects/gm: Listed as not maintained since 2025-02-24
GPT-6.2 Sol: 0.7, likely 0.2 to 1.4
The maintainer ended issue support, merges, and releases in February 2025. There were zero commits or npm releases in the past year, and the final release updated a dependency after a gap of more than two years. The explicit sunset makes the outlook clear, with some uncertainty about how long existing deployments will stay compatible.
- github.com/aheckmann/gm#2025-02-24-this-project-is-not-maintained: Official end of maintenance and releases
- github.com/aheckmann/gm/blob/master/History.md: Final dependency update followed the previous release from 2022
- github commitsLastYear and npm versionsLastYear: Zero commits and zero npm versions
Used widely4.5
How many use it, and is that growing?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
It still has about 4.1M downloads every 4 weeks and about 32.7k dependent repos, which is a large legacy base. But downloads grew only 1.75x in a year against a 4.1x median, so it is losing ground fast, and almost no new projects choose it. Sharp has 650M downloads.
- npm downloadsLast4Weeks: 4.10M now vs 2.35M a year ago (1.75x, below the 4.1x median)
- dependents: 32,670 repos and 1,335 packages
- peers sharp downloadsLast4Weeks: Sharp has 651M, about 160x more
- bluesky posts: One post, which is about the sunset
GPT-6.2 Sol: 4.4, likely 3.3 to 5.5
Ecosyste.ms found 32,670 dependent repositories, close to node-canvas’s 38,000 and well below sharp’s 178,353. Four-week downloads rose from 2.35 million to 4.10 million, or 1.75 times, against a catalog median of 4.1 times, so gm lost relative ground. Existing dependencies such as pdf2pic generate indirect installs, and the 6,969 stars and download counts leave current direct adoption uncertain.
- dependents repos and peers dependentRepos: Tens of thousands of indexed repositories, behind the leading peers
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: 1.75 times year-over-year growth against a 4.1 times median
- github stars: 6,969 stars accumulated over the project’s lifetime
- github.com/yakovmeister/pdf2image/blob/master/package.json: pdf2pic installs gm as a dependency
Vouched for3.2
Who stands behind it being good?
Claude Opus 5.5: 2.0, likely 1.0 to 3.0
It was widely used for a decade, but no current endorsements remain. The author himself tells users to migrate away. Independent comparisons now recommend sharp instead.
- github.com/aheckmann/gm: Author urges users to move to an alternative
- npm-compare.com/gm,imagemagick,jimp,sharp: Third-party comparison favours sharp for production
- hackerNews stories: No HN stories
GPT-6.2 Sol: 4.3, likely 3.0 to 5.7
n8n uses gm in its Edit Image node, and pdf2pic depends on it for PDF conversion. These integrations show it has handled real workloads. Current evidence of developer satisfaction or recommendations for new projects is sparse, and the older independent benchmark covers a limited workload.
- github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/EditImage/EditImage.node.ts: n8n’s Edit Image node imports gm and uses it for image operations
- github.com/yakovmeister/pdf2image/blob/master/package.json: pdf2pic declares gm as a runtime dependency
- github.com/ivanoff/images-manipulation-performance: Independent benchmark exercises both GraphicsMagick and ImageMagick modes
- hackerNews stories and bluesky posts: No matched Hacker News stories and one Bluesky post about the sunset
Safe3.1
How safe is it to depend on?
Claude Opus 5.5: 2.5, likely 1.5 to 4.0
The one known advisory, a critical command injection (CVE-2015-7982), was fixed in 1.21.1. But the project is abandoned, and the README warns that the risk of unpatched vulnerabilities will keep growing. It shells out to ImageMagick or GraphicsMagick, which get CVEs often. The Scorecard is 2.6/10 and the repo has no licence file, although npm lists the package as MIT.
- github.com/advisories/GHSA-pjh3-jv7w-9jpr: Critical command injection in compare(), fixed in 1.21.1
- scorecard score: 2.6/10; Maintained, Security-Policy and License checks all 0
- npm deprecated: No future security fixes
- npm license: MIT on npm; GitHub has no licence file
GPT-6.2 Sol: 3.7, likely 2.4 to 5.0
gm has a permissive MIT license and four direct npm dependencies. The known critical command-injection advisory was fixed in 1.21.1, and the final release updated cross-spawn. OpenSSF scored it 2.6 out of 10, with zeroes for branch protection and security policy, and ecosyste.ms lists one npm maintainer. Future wrapper fixes are off the table, and exposure also depends on the version and configuration of the separately installed executable.
- app.unpkg.com/gm@1.25.1/files/package.json: Published manifest lists MIT and four runtime dependencies
- github.com/advisories/GHSA-pjh3-jv7w-9jpr: Historical critical advisory was patched in 1.21.1
- github.com/aheckmann/gm/blob/master/History.md: Final release updated cross-spawn
- summary.ecosyste.ms/projects/381319: Lists one npm maintainer for gm
- scorecard score and checks: 2.6 overall, with zero scores for maintenance, branch protection, and security policy
- github.com/aheckmann/gm#2025-02-24-this-project-is-not-maintained: Ends wrapper updates and documents the separate executable
Good
- It exposes almost the full GraphicsMagick/ImageMagick feature set, so it supports more formats and operations than most peers.
- Its chainable API is simple and has been stable for many years, and thousands of old examples exist.
- In sharp's benchmark it is faster than Jimp at JPEG resizing.
Bad
- The author sunset it in February 2025, npm marks it deprecated, and no fixes or releases will come.
- You must install GraphicsMagick or ImageMagick on the system yourself, which makes containers and serverless setups harder.
- It ships no TypeScript types, and sharp's benchmark puts it about 4x slower than sharp on JPEG resizing.
- It builds shell commands from its inputs, so command injection is a real risk. It already had one critical advisory, and the binaries it calls get their own CVEs.
The numbers
- npm downloads, 4 weeks
- 4.1M +75% in a year
- GitHub stars
- 7k
- Commits, 12 months
- 0
- npm version
- 1.25.1 Feb 2025
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 1 ever
- OpenSSF Scorecard
- 2.6 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (aheckmann/gm), npm (gm), OSV and the OpenSSF Scorecard.