fix(cli): image previews work for paths without extensions
parent
bfce05600b
commit
db173e03f7
|
@ -29,7 +29,7 @@ impl<'a> Previewable for ImagePath<'a> {
|
|||
})
|
||||
.and_then(|shorts| shorts.first().cloned());
|
||||
|
||||
let image = ImageReader::open(self.0)?.decode()?;
|
||||
let image = ImageReader::open(self.0)?.with_guessed_format()?.decode()?;
|
||||
let image = match orientation {
|
||||
Some(3) => image.rotate180(),
|
||||
Some(6) => image.rotate90(),
|
||||
|
|
Loading…
Reference in New Issue