load_image-2.12.2 has been yanked.
Load image as sRGB
Glue code for a few libraries that correctly 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.
For Rust 1.43 or later.
[]
= "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.