Laravel Image Rust
==================

*v0.1.0*

Image resizing, cropping and encoding in pure Rust, with a signed URL route and a disk cache.

```
cargo add laravel-image-rust
```

[View on crates.io](https://crates.io/crates/laravel-image-rust) [View on GitHub](https://github.com/mischasigtermans/laravel-image-rust)

The demo above resizes three photos from this site through the crate's own route. It only signs those three.

What it does
------------

- Pure Rust codecs

  JPEG, PNG, WebP, AVIF and GIF without a system library. Photos are turned upright from their EXIF, and the output carries none.

- A signed route

  url() signs a size, a fit and a format for a file on a disk. The route makes each image once, caches it, and answers with an ETag.

- Refuses what it should

  A changed URL is a 403 and an unknown parameter a 400. An image too large to decode is refused from its header.

- A chain of changes

  Resize, cover, contain, crop, rotate, blur, sharpen, greyscale and place a watermark, then encode.

[View on crates.io](https://crates.io/crates/laravel-image-rust).
