| Crates.io | vips-rs |
| lib.rs | vips-rs |
| version | 0.1.0-alpha.1 |
| created_at | 2018-04-18 21:13:19.417916+00 |
| updated_at | 2018-04-18 21:13:19.417916+00 |
| description | A rust binding to libvips. |
| homepage | |
| repository | https://github.com/elbaro/vips-rs |
| max_upload_size | |
| id | 61323 |
| size | 7,457 |
A binding to libvips.
libvips is implemented.
If you cannot find an interface you need, you can use vips-sys directly.extern crate vips_rs;
use vips_rs::*;
fn main() {
let instance = VipsInstance::new("app_test", true);
let mut img = VipsImage::new_from_file("kodim01.png").unwrap();
let mut img = img.thumbnail(123, 234, VipsSize::VIPS_SIZE_FORCE);
img.write_to_file("kodim01_123x234.png").unwrap();
}
vips_shutdown after vips_init?VipsImage enforce ownership?