Introduction | image-rust | Spatie      

 SPATIE  

image-rust
==========

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Image-rust](https://spatie.be/docs/image-rust/v1)  Introduction

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/image-rust/v1) 

  Introduction    
- [ Introduction ](https://spatie.be/docs/image-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/image-rust/v1/support-us)
- [ Installation ](https://spatie.be/docs/image-rust/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/image-rust/v1/usage)
- [ Encoding and optimization ](https://spatie.be/docs/image-rust/v1/encoding-and-optimization)
- [ Testing ](https://spatie.be/docs/image-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/image-rust/v1/changelog)

  Image-rust 
============

 Manipulate images with an expressive API 

### Useful links

- [Repository](https://github.com/spatie/image-rust)
- [Discussions](https://github.com/spatie/image-rust/discussions)

Introduction
------------

Manipulate images with an expressive API in Rust. `spatie-image` adds fit modes, focal cropping, watermarks, canvas operations and color effects to the `image` crate's types.

```
use spatie_image::{Fit, Image};

let thumbnail = Image::from(pixels)
    .fit(Fit::Crop, 200, 200)?
    .into_inner();
```

The fluent builder runs operations in order and exposes its underlying `DynamicImage`. Extension methods work directly on existing images, so you can combine them with other image-processing crates.

Loading automatically corrects EXIF orientation. Saving supports encoder quality settings and an optional optimization pass through the published `spatie-image-optimizer` crate.

Continue with [installation](installation-and-setup), [usage](usage), and [encoding and optimization](encoding-and-optimization).

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
