KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
seamcarving
★ 12
Open GitHub ↗
Seam carving implemented in rust
Download README (.md)
Explore Similar Repositories
kcpp
:
kcptun c++版
chatup
:
No description available.
enable-appmesh
:
Enable App Mesh for ECS/Fargate apps with the AWS Console
JcApiHelper
:
JcApiHelper
wifi-direct-chat
:
Android Development (Spring 2019) Final Project
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
seamcarving
?
Download (.md)
# seamcarving A rust library for **content-aware image resizing** using [seam carving](https://en.wikipedia.org/wiki/Seam_carving). ## How to use Open an image using the [**image** crate](https://crates.io/crates/image), then use the `resize` function from this create to create a smaller version of the image, while preserving its contents. ```rust let img = image::open("input.jpg")?; let (width, height) = img.dimensions(); let resized = seamcarving::resize(&img, width/2, height); resized.save("resized.jpg")?; ``` #### Detailed code example - [resize.rs](./examples/resize.rs) : command-line image resizing ## Results Original | Resized --- | ---  |   | 