load_image-2.12.0 has been yanked.
Load image as sRGB
Loads a JPEG or PNG image into memory, taking into accout color profile metadata in PNG chunks, EXIF data and app markers. Converts CMYK to RGB if needed.
Requires Rust 1.33+.
[]
= "2"
The returned Image is:
}
The bitmap is packed, so x + y * width gives the pixel at x,y.
The load_image function doesn't panic, but it uses unwinding internally. Error handling won't work in crates compiled with the panic = "abort" option.