Function image::image_dimensions
source · [−]Expand description
Read the dimensions of the image located at the specified path. This is faster than fully loading the image and then getting its dimensions.
Try io::Reader
for more advanced uses, including guessing the format based on the file’s
content before its path or manually supplying the format.