# sharp

> High performance Node.js image processing

Source: https://talira.ai/catalog/sharp-2j4scvhc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [media / images / processing](https://talira.ai/categories/media/images/processing), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: macos, linux, windows[^2]
- Licence: Apache-2.0[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^3]
- API: yes[^5]
- Creator: Lovell Fuller

sharp is a Node-API module that converts large images into smaller, web-friendly JPEG, PNG, WebP, GIF and AVIF files, built on the libvips image library. It reads JPEG, PNG, WebP, GIF, AVIF, TIFF and SVG, resizes with Lanczos resampling, and rotates, extracts, composites and corrects gamma while handling colour spaces, ICC profiles and alpha channels. The project says resizing is typically 4 to 5 times faster than the quickest [ImageMagick](https://talira.ai/catalog/imagemagick-yw9v07z4.md) and GraphicsMagick settings. Prebuilt binaries cover [macOS](https://talira.ai/catalog/macos-8swyggxb.md), Linux and Windows on common architectures, it runs on Node.js, Deno and [Bun](https://talira.ai/catalog/bun-z64kv5wg.md), and an optional WebAssembly package covers other platforms.

## Links

- Website: https://sharp.pixelplumbing.com/
- GitHub: https://github.com/lovell/sharp
- Docs: https://sharp.pixelplumbing.com/api-constructor/

## Problems it solves

- resize user-uploaded photos into thumbnails in my Node.js backend
- convert JPEG and PNG uploads to WebP or AVIF to cut page weight
- image resizing with ImageMagick is too slow and eats memory on our server
- generate several sizes of an image for responsive srcset in a build step
- resize images without shelling out to a command line tool from Node
- strip or keep EXIF metadata and colour profiles when I process photos
- compress PNGs and JPEGs further for the web with mozjpeg or pngquant settings
- composite a watermark or overlay onto images on the server
- rasterise an SVG to PNG in a serverless function
- rotate phone photos the right way up based on their orientation
- stream images through a resize pipeline without writing temp files
- make Deep Zoom tiles for a pan-and-zoom image viewer

## Features

- reads JPEG, PNG, WebP, GIF, AVIF, TIFF and SVG
- writes JPEG, PNG, WebP, GIF, AVIF, TIFF and raw pixel data
- resize with Lanczos resampling
- rotate, extract, composite and gamma correction
- colour spaces, ICC profiles and alpha channels
- mozjpeg and pngquant optimisations
- streams, Buffers and files, with one input feeding several pipelines
- Deep Zoom image pyramids
- prebuilt binaries with no extra runtime dependencies
- runs on Node.js, Deno and Bun
- optional WebAssembly package (@img/sharp-wasm32)

## Limitations

- Doesn't read or write HEIC (HEVC-compressed) images out of the box: that needs a globally installed libvips built with libheif, libde265 and x265[^1]
- Doesn't write JPEG 2000 or JPEG XL with its prebuilt binaries: both need a custom-built libvips[^1]
- Doesn't run in web browsers: its WebAssembly build needs a runtime with multi-threaded Wasm via Workers[^2]

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Lovell Fuller

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [ImageMagick](https://talira.ai/catalog/imagemagick-yw9v07z4.md): The open-source suite for image creation, conversion, and batch manipulation

## Sources

[^1]: https://sharp.pixelplumbing.com/api-output/ (checked 20 Nov 2026)
[^2]: https://sharp.pixelplumbing.com/install/ (checked 20 Nov 2026)
[^3]: https://github.com/lovell/sharp/blob/main/LICENSE (checked 20 Nov 2026)
[^4]: https://sharp.pixelplumbing.com/ (checked 20 Nov 2026)
[^5]: https://sharp.pixelplumbing.com/api-constructor/ (checked 20 Nov 2026)
