Skip to content

Commit

Permalink
Merge pull request #532 from woelper/fix-dng-detection
Browse files Browse the repository at this point in the history
fix: prevent dng from being loaded as tiff
  • Loading branch information
woelper authored Dec 4, 2024
2 parents edbc80a + 96417bb commit d899ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn open_image(
.replace("tiff", "tif")
.replace("jpeg", "jpg");

let unchecked_extensions = ["svg", "kra"];
let unchecked_extensions = ["svg", "kra", "dng"];

if let Ok(fmt) = FileFormat::from_file(&img_location) {
debug!("Detected as {:?} {}", fmt.name(), fmt.extension());
Expand Down

0 comments on commit d899ac6

Please sign in to comment.