# image

> Imaging library. Provides basic image processing and encoders/decoders for common image formats.

Source: https://talira.ai/catalog/image-kz2tnn0p
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [media / images / processing](https://talira.ai/categories/media/images/processing), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Apache-2.0
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes
- Backed by: [image-rs](https://talira.ai/orgs/image-rs.md)

The image crate decodes, encodes and processes images in pure Rust. Its default formats are AVIF, BMP, DDS, EXR, Farbfeld, GIF, HDR, ICO, JPEG, PNG, PNM, QOI, TGA, TIFF and WebP, each behind a Cargo feature, and it has basic operations (resizing, cropping, colour conversion) on its ImageBuffer types. ImageReader guesses a file's format from its bytes and takes decoding limits, so an untrusted file can't claim enormous dimensions and take the memory.

## Links

- GitHub: https://github.com/image-rs/image
- Docs: https://docs.rs/image

## Problems it solves

- decode PNG and JPEG files in Rust without linking a C library
- check whether an uploaded file is really an image and read its width and height
- find out what format a file is from its bytes rather than its extension
- resize and crop images in a Rust backend
- convert images between PNG, JPEG and WebP in Rust
- read the largest icon out of a favicon.ico file
- decode untrusted images with a memory limit so a crafted file can't exhaust RAM
- generate thumbnails in Rust
- encode a pixel buffer I drew as a PNG

## Features

- decoders and encoders for AVIF, BMP, GIF, ICO, JPEG, PNG, TIFF, WebP and more
- format detection from bytes
- decoding limits
- resize, crop and colour conversion
- one Cargo feature per format

## Capabilities

- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.60 out of 1.
Signals: maintenance 0.69, adoption 0.75, momentum 0.48, community 1.00, backing 0.30, extensibility 0.20.

- last commit 12 days ago
- 13 commits in the last 90 days
- 5.9k GitHub stars
- 392 contributors
- backed by image-rs
- has a plugin system

## Alternatives

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