imgorisort 0.1.2

Quickly sort images into directories by orientation: landscape, portrait, and square.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::Path;
use image::image_dimensions;
use failure::Error;

/// Return the width and height of an image.
pub fn img_dimensions(path: &Path) -> Result<(u32, u32), Error>
{ return Ok(image_dimensions(path)?); }

#[cfg(test)]
mod tests {
    #[test]
    fn test_get_img_dimensions() {
        // TODO
        assert_eq!(2 + 2, 4);
    }
}