content-aware-resizing

Crates.iocontent-aware-resizing
lib.rscontent-aware-resizing
version0.1.0
sourcesrc
created_at2022-05-31 09:26:31.683118
updated_at2022-05-31 09:26:31.683118
descriptionBinary crate for resizing an image using seam carving
homepage
repository
max_upload_size
id597378
size1,192,952
(JasperSrrzn)

documentation

README

Seam carving

This project calculates the seam with the lowest energy. A seam is like a path of pixels. The lowest energy means that the seam does not contain a lot of information and can be safely removed. If you do this iteratively you are resizing the image in a content-aware way. The idea is illustrated in the following example. Original Resized

Running the project

Clone the project and run

cargo install --path ./

This will install it in to the /.cargo/bin folder. If you export this path to the terminal. You will be able to ru n

contenet-aware-resizing -i <input-path-image> -o <output-path-image> -n <number-of-times-you-want-to-crop>
Commit count: 0

cargo fmt