#image-resizing #crop-image #resize #crop #image-url

thumbor

A Rust client for the Thumbor image service

16 releases

0.1.11 Sep 16, 2024
0.1.10 Sep 16, 2024
0.0.4 Sep 15, 2024

#1067 in Images

Download history 81/week @ 2024-11-29 97/week @ 2024-12-06 65/week @ 2024-12-13 114/week @ 2024-12-20 75/week @ 2024-12-27 115/week @ 2025-01-03 96/week @ 2025-01-10 149/week @ 2025-01-17 56/week @ 2025-01-24 7/week @ 2025-01-31 177/week @ 2025-02-07 60/week @ 2025-02-14 70/week @ 2025-02-21 146/week @ 2025-02-28 99/week @ 2025-03-07 289/week @ 2025-03-14

631 downloads per month

MIT license

80KB
576 lines

Rust Thumbor client

Repository Crates.io Version docs.rs Crates.io MSRV

Thumbor is a smart imaging service. It enables on-demand crop, resizing and flipping of images. It features a very smart detection of important points in the image for better cropping and resizing, using state-of-the-art face and feature detection algorithms

This library is a Rust client implementation of the Thumbor image service to generate image urls.

Usage

use thumbor::Server;

let server = Server::new("http://localhost:8888", "my-security-key").unwrap();

let endpoint = server.endpoint_builder()
    .resize((300, 200))
    .smart(true)
    .build();

let url = endpoint.to_url("path/to/my/image.jpg");

Dependencies

~1.3–2MB
~43K SLoC