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

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

#771 in Images

Download history 128/week @ 2024-09-25 31/week @ 2024-10-02 54/week @ 2024-10-09 165/week @ 2024-10-16 50/week @ 2024-10-23 57/week @ 2024-10-30 62/week @ 2024-11-06 120/week @ 2024-11-13 52/week @ 2024-11-20 119/week @ 2024-11-27 48/week @ 2024-12-04 103/week @ 2024-12-11 105/week @ 2024-12-18 58/week @ 2024-12-25 121/week @ 2025-01-01 119/week @ 2025-01-08

415 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.1–1.7MB
~36K SLoC