Created
June 6, 2016 13:23
-
-
Save palfrey/c140beb4c55b279de0af2a76cc5984cd to your computer and use it in GitHub Desktop.
Breaking issue for Image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "break-image" | |
| version = "0.1.0" | |
| authors = ["Tom Parker <[email protected]>"] | |
| [dependencies] | |
| image = { git = "https://github.com/PistonDevelopers/image.git" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern crate image; | |
| use image::{imageops, FilterType}; | |
| use std::env; | |
| fn main() { | |
| let image = image::open(env::args().nth(1).expect("First arg should be a file")).unwrap(); | |
| let _ = imageops::resize(&image, 16, 16, FilterType::Nearest); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test image