fix(cli): image previews work for paths without extensions

refactor/sveltekit
Tomáš Mládek 2024-01-17 23:37:47 +01:00
parent bfce05600b
commit db173e03f7
1 changed files with 1 additions and 1 deletions

View File

@ -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(),