Closed walterbm closed 2 years ago
It's Rust, so if it compiles, it most likely works. :) Thanks for the PR.
@nlfiedler thanks for reviewing and for maintaining this crate!
I've found this crate very useful for a few projects so If I can help contribute with anything else please let me know
This PR adds support for the ImageMagick "thumbnail" resizing operation (
MagickThumbnailImage
) which resizes images using some optimizations (like removing any associated profiles) to produce small low cost thumbnail images suited for display on the web.These "thumbnail" images are often a bit smaller than the images produced by the standard resize. For example I ran one of the test images in this repo through both the standard resizing and "thumbnail" resizing:
So the "thumbnail" image was roughly ~ 12% smaller compared to the standard resize image which is a big help for web applications.
I am fairly new to Rust so please let me know if you spot any mistakes or would like me to make any changes!