Skip to content

Commit

Permalink
Only accept .ff as path extension for Farbfeld (#2181)
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 authored Mar 26, 2024
1 parent 5c3d3db commit 4594c80
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 4594c80

Please sign in to comment.