Image resize library with fit: cover

Hi, i want convert my aws lambda function for image resizing from node js to rust.
The problem is that i'm using sharp js and with it in the resize options i can specify also these:
{ fit: 'cover', position: 'entropy' }
It can also rotate automatically the image by checking exif params.
Is there any library that do it in rust?
Thanks

I've written that twice, for imageoptim.com/api and Cloudflare images, both are implemented in Rust. However, the overall implementations are not public.

There's imageflow that is a one-stop-shop for image processing in Rust.

You can write your own with some glue code around crates like:

https://lib.rs/resize

https://lib.rs/mss_saliency

https://lib.rs/imgref

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.