Skip to main content

load_image

Function load_image 

Source
pub fn load_image(
    path: &Path,
    image_type: ImageType,
) -> Result<ImageFile, String>
Expand description

Read and lint a local image: PNG or JPEG, and for PNGs the pixel size against the bucket’s rules.