Skip to content

Commit

Permalink
refactor!: Only accept .ff as path extension for Farbfeld
Browse files Browse the repository at this point in the history
This is consistent with ImageFormat::extensions_str, and usage by other image libraries and tools.
  • Loading branch information
foresterre committed Mar 26, 2024
1 parent 5c3d3db commit 2c29900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl ImageFormat {
"hdr" => ImageFormat::Hdr,
"exr" => ImageFormat::OpenExr,
"pbm" | "pam" | "ppm" | "pgm" => ImageFormat::Pnm,
"ff" | "farbfeld" => ImageFormat::Farbfeld,
"ff" => ImageFormat::Farbfeld,
"qoi" => ImageFormat::Qoi,
_ => return None,
})
Expand Down

0 comments on commit 2c29900

Please sign in to comment.