pub fn read_input(path: &Path, encoding: InputEncoding) -> Result<Image, Error>Expand description
Read the input, from a camera raw when it is one and the build has a decoder.
A raw file is scene-referred linear by construction, so --input-encoding
does not apply to it: the value is taken as the file’s own, and a user who
asked for srgb on a .nef is not obeyed, because obeying would apply a
transfer curve to data that never had one. Every command that reads a
photograph reads it through here for that reason.