Elestia Open Source Ratings
1.3

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.

GitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Image processing libraries

  1. 9.0sharp
  2. 7.6@napi-rs/canvas
  3. 7.3Satori
  4. 6.8pica
  5. 6.7ImageScript
  6. 5.9resvg-js
  7. 5.3node-canvas
  8. 5.1Jimp
  9. 1.3gm
Compare all 9 on six scores