# pica: 6.8 out of 10

Reasonable, with limits. 4th of 9 in [Image processing libraries](https://elestia.ai/opensource/images/index.md).

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

- **Overall: 6.8** (likely 5.8 to 7.8)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.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.
- **Needed by many: 3.7** (likely 2.7 to 4.8)
  - Claude Opus 5.5 (3.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.
  - GPT-6.2 Sol (3.9): 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.
- **Helps a lot: 7.5** (likely 6.5 to 8.5)
  - Claude Opus 5.5 (7.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).
  - GPT-6.2 Sol (8.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.
- **Holds up over time: 6.5** (likely 5.0 to 7.8)
  - Claude Opus 5.5 (6.0): 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.
  - GPT-6.2 Sol (6.9): 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.
- **Used widely: 4.0** (likely 2.9 to 5.2)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (3.4): 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.
- **Vouched for: 5.0** (likely 3.5 to 6.3)
  - Claude Opus 5.5 (3.5): 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.
  - GPT-6.2 Sol (6.4): 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.
- **Safe: 7.1** (likely 5.9 to 8.3)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.7): 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.

## 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

- Downloads, 4 weeks: 7M
- In a year: ×11
- GitHub stars: 4.2k
- Commits, 12 months: 63
- Last npm release: Aug 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/nodeca/pica
- npm: https://www.npmjs.com/package/pica

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
