pica
Reasonable, with limits. 4th of 9 image processing libraries.
pica resizes images in the browser with good quality. It picks Web Workers, WebAssembly or pure JS on its own and processes images in tiles. It is the strongest choice for its narrow job, client-side downscaling without pixelation, and version 10 (2026) brought it up to date. It does not convert formats in general and is not meant for server work, where sharp is the right tool.
Best for: Web apps that must shrink user images in the browser before upload, with better quality than canvas drawImage.
Scores
Overall6.8
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
For high-quality image resizing in the browser, pica is still the library to pick, and v10 shows it is still maintained. It does not do the category's broader job: no format conversion, no drawing and no server use, where sharp, @napi-rs/canvas and node-canvas lead. Thin independent validation and a small maintainer team keep it in the middle of the range.
- github.com/nodeca/pica: v10 modernisation; browser-only scope
- peers sharp downloadsLast4Weeks: 650M per 4 weeks: sharp dominates server image work
- npm downloadsLast4Weeks: Strong growth, but most likely transitive
GPT-6.2 Sol: 7.6, likely 6.5 to 8.6
pica is a strong choice for new web apps that need high-quality downscaling on the device. Its typed API, recent browser fixes, and current production use support that recommendation. Sharp is the stronger choice for general Node.js resizing and conversion. Limited cross-browser benchmarks and uncertainty about long-term release coverage keep the range wide.
- github.com/nodeca/pica/blob/master/CHANGELOG.md: Current stable release and browser-specific fixes.
- simplyimagetools.com/guides/resize-without-losing-quality: Measured photo-downscaling advantages and limits in Chromium.
- github.com/ustaxcourt/ef-cms/blob/staging/docs/dependency-updates.md: Current production integration of the stable version.
- sharp.pixelplumbing.com: Broader format support and processing operations on Node-compatible runtimes.
Needed by many3.7
How many developers need a tool for this job?
Claude Opus 5.5: 3.5, likely 2.5 to 4.5
Only front-end developers who downscale user images on the client need this tool. That is a clear niche within the image processing category. Most image work in JavaScript runs on the server with sharp, or in canvas libraries.
- github.com/nodeca/pica: Browser resize only; the README sends server users to sharp
- github description: "Resize image in browser with high quality and high speed"
GPT-6.2 Sol: 3.9, likely 2.8 to 5.1
Client-side resizing is a clear niche for photo uploads, thumbnails, and browser editors. pica works across frontend frameworks, with limited Node.js support and a focus on resizing. Survey results give context on demand for file and canvas features, while the share of developers needing a separate resizer remains uncertain.
- github.com/nodeca/pica: Browser-first scope, upload and thumbnail use cases, and limited Node.js mode.
- 2025.stateofhtml.com/en-US/conclusion: Survey context for developer interest in file and canvas features.
Helps a lot7.5
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
For browser downscaling it is the most complete library: it has several filters and an unsharp mask, picks the fastest available backend, uses tiles to save memory, supports cancellation and gives predictable output. Version 10 added an ESM factory and bundled types. Its scope is narrow, and the README itself warns against using it for professional-quality images (8 bits per channel).
- github.com/nodeca/pica: Feature list and v10 migration notes
- unpkg.com/pica@10.0.3/README.md: Filters, unsharp options, toBlob, and the createImageBitmap caveat
- npm hasTypes: Ships TypeScript types
GPT-6.2 Sol: 8.0, likely 6.9 to 9.0
Version 10.0.3 combines configurable filters with tiled processing, workers, WebAssembly, and a JavaScript fallback. Shipped types, short examples, and specific setup errors help coding agents use the current API. An independent Chromium test found lower error with Lanczos on photos and a screenshot, but higher error on flat and transparent graphics. Evidence on speed across browsers is limited, and canvas constrains formats and color precision.
- github.com/nodeca/pica: Filter options, tiling, fallback paths, documented examples, and canvas limits.
- github.com/nodeca/pica/blob/master/package.json: Separate type declarations for ESM and CommonJS.
- github.com/nodeca/pica/blob/master/src/pica_main.ts: Specific errors for invalid inputs and missing worker configuration.
- simplyimagetools.com/guides/resize-without-losing-quality: Independent user measurements for Lanczos downscaling at one ratio in Chromium.
Holds up over time6.5
Will it still be a good choice in two years?
Claude Opus 5.5: 6.0, likely 4.5 to 7.5
The project is twelve years old and still active: 63 commits and 4 npm versions in the last year, a v10 rewrite and only 5 open issues. It is mainly the work of the small nodeca team, with some funding through Tidelift. The OpenSSF Maintained check scores only 5, and there are no GitHub releases. The browser canvas APIs it depends on are stable.
- github commitsLastYear: 63 commits; last push 2026-08-15
- npm versionsLastYear: 4 versions; 10.0.3 published 2026-08-15
- github openIssues: 5 open, 195 closed
- github.com/nodeca/pica: Tidelift commercial support offered
GPT-6.2 Sol: 6.9, likely 5.5 to 8.1
The project recorded 63 commits and four npm releases over the year, with the latest release in August 2026. A user-reported Chrome worker regression was fixed in about two weeks. Version 10 modernized the build and tests, and introduced several API breaks. The npm README lists commercial support through Tidelift, but funding levels and release-team depth are unclear.
- github.commitsLastYear, github.openIssues, github.openPullRequests, npm.versionsLastYear, npm.latestPublishedAt: 63 commits, five open issues, one open pull request, and four npm releases.
- github.com/nodeca/pica/blob/master/CHANGELOG.md: Version 10 modernization, breaking API changes, and subsequent fixes.
- github.com/nodeca/pica/issues/258: Chrome regression reported July 30 and fixed August 15.
- npmjs.com/package/pica: Project README lists Tidelift commercial support.
Used widely4.0
How many use it, and is that growing?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
Downloads rose about 11.5 times in a year, to 7.0M per 4 weeks, well above the 4.1 median. A rise that sudden most likely comes from a popular package that now pulls pica in, not from developers choosing it directly. Only 670 dependent repositories and 121 dependent packages were found, far fewer than sharp, Jimp or node-canvas, so direct choices are probably in the low thousands. Copies loaded from a CDN add some uncounted use.
- npm downloadsLast4Weeks: 7.0M, up from 610k a year before (ratio about 11.5)
- dependents: 670 repos and 121 packages, against 178k for sharp
- github stars: 4,161 stars
- cdnjs.com/libraries/pica: Also served from CDNs, which npm downloads do not count
GPT-6.2 Sol: 3.4, likely 2.3 to 4.8
Four-week npm installs rose from 611,000 to 7.0 million, an 11.5× increase against the catalog median of 4.1×. A separate npm snapshot showed far more downloads for version 7.1.1 than for 10.0.3, and wrappers such as image-blob-reduce bring in pica transitively. The 670 indexed dependent repos are far below sharp and Jimp, and recent social attention is sparse. Incomplete indexing and CDN distribution leave the number of direct choices uncertain.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 11.5× year-over-year install growth against the 4.1× median.
- dependents, github.stars, bluesky.posts, hackerNews.stories, peers: 670 indexed repos, 121 packages, 4,161 stars, two Bluesky posts, and no matched HN stories.
- npmjs.com/package/pica?activeTab=versions: One weekly snapshot showed about 572,000 installs for 7.1.1 and 24,000 for 10.0.3.
- github.com/nodeca/image-blob-reduce/blob/master/package.json: The file-resize wrapper declares pica as a dependency.
- cdnjs.com/libraries/pica: Browser bundles are also distributed through a CDN.
Vouched for5.0
Who stands behind it being good?
Claude Opus 5.5: 3.5, likely 2.0 to 5.0
Its long life and its many forks suggest real use, but I found no current independent benchmarks, survey entries or named production users. It has no Hacker News stories and only two Bluesky posts. Third-party pages mostly describe it, often as a step before a compression library.
- hackerNews stories: 0 stories
- bluesky posts: 2 posts, one of them a repost of the description
- socket.dev/npm/package/browser-image-compression: Mentioned as a complement to compression libraries, not as a benchmark
GPT-6.2 Sol: 6.4, likely 5.0 to 7.6
The U.S. Tax Court’s DAWSON web client documents its use of pica 10.0.3, and BIRME names pica as its high-quality resize engine. Simply Image Tools also uses pica and published results showing where Lanczos helped and where it struggled. These examples support browser resizing, while broad developer satisfaction and performance across devices remain uncertain.
- github.com/ustaxcourt/ef-cms/blob/staging/docs/dependency-updates.md: DAWSON documents pica 10.0.3 in its web client.
- ustaxcourt.gov/dawson: The court identifies DAWSON as its live filing and case management system.
- birme.net: BIRME identifies pica as its high-quality browser resize engine.
- simplyimagetools.com/guides/resize-without-losing-quality: Another production user publishes positive and negative quality measurements.
Safe7.1
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
There are no advisories in its history, it has only 2 dependencies and an MIT licence, and it runs in a sandboxed browser context. The OpenSSF Scorecard is weak at 4.6: no code review, no branch protection, no SAST and only partly pinned dependencies, so a small team publishes without much process.
- advisories total: 0 advisories
- scorecard score: 4.6; Code-Review 0, Branch-Protection 0
- npm dependencies: 2 dependencies
- security.snyk.io/package/npm/pica: No known vulnerabilities listed
GPT-6.2 Sol: 6.7, likely 5.3 to 8.0
The MIT license is permissive, the package declares two runtime dependencies, and OSV lists zero advisories. The OpenSSF score of 4.6 reflects gaps in branch protection, code review, and fuzzing, alongside strong workflow token permissions. The project documents private reporting, while release signing and npm publisher coverage remain unverified.
- npm.license, npm.dependencies, advisories.total: MIT license, two declared dependencies, and zero known OSV advisories.
- scorecard.score, scorecard.checks: 4.6 overall, zero on branch protection, code review and fuzzing, and no signed-release result.
- github.com/nodeca/pica/security/policy: Documents a private vulnerability reporting route.
Good
- The output is clearly better than plain canvas drawImage, with Lanczos and mks2013 filters and an optional unsharp mask.
- It picks Web Workers, WebAssembly or pure JS on its own, uses several cores and works in tiles to limit memory.
- Version 10 brings a modern ESM factory API, bundled TypeScript types and a split worker build that helps with CSP.
- It has a small footprint, no known advisories and an MIT licence.
Bad
- It only works in the browser. On Node.js it needs a separate canvas library, and the README itself points to sharp for server work.
- It only resizes. It does no cropping, rotation, EXIF orientation, compositing or encoder control beyond canvas toBlob.
- Version 10 broke the v9 API: the quality argument, createCanvas and the shared worker pool all changed.
- It rests on a small maintainer team, and there are no GitHub releases and little independent write-up.
The numbers
- npm downloads, 4 weeks
- 7M ×11 in a year
- GitHub stars
- 4.2k
- Commits, 12 months
- 63
- npm version
- 10.0.3 Aug 2026
- Versions, 12 months
- 4
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 4.6 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (nodeca/pica), npm (pica), OSV and the OpenSSF Scorecard.