Crates.io | thumbor |
lib.rs | thumbor |
version | 0.1.11 |
source | src |
created_at | 2024-09-14 16:12:40.533277 |
updated_at | 2024-09-16 21:49:25.704735 |
description | A Rust client for the Thumbor image service |
homepage | |
repository | https://github.com/SteelAlloy/thumbor-rs |
max_upload_size | |
id | 1374911 |
size | 83,187 |
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.
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");