Skip to content

Instantly share code, notes, and snippets.

@palfrey
Created June 6, 2016 13:23
Show Gist options
  • Select an option

  • Save palfrey/c140beb4c55b279de0af2a76cc5984cd to your computer and use it in GitHub Desktop.

Select an option

Save palfrey/c140beb4c55b279de0af2a76cc5984cd to your computer and use it in GitHub Desktop.
Breaking issue for Image
[package]
name = "break-image"
version = "0.1.0"
authors = ["Tom Parker <[email protected]>"]
[dependencies]
image = { git = "https://github.com/PistonDevelopers/image.git" }
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);
}
@palfrey
Copy link
Copy Markdown
Author

palfrey commented Jun 6, 2016

Test image

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment