pub fn load_image_dimensions(src: &str) -> Result<(u32, u32), String>
Read only the pixel dimensions from an image source without decoding pixels. Returns (width, height) in pixels. Much cheaper than load_image.
load_image