Skip to content

Commit

Permalink
Extend GIF support
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmichalis committed Jan 30, 2025
1 parent c871ccc commit 63ad354
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/content/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ fn detect_media_extension(content: &[u8]) -> Option<&'static str> {
[0xFF, 0xD8, 0xFF, ..] => Some("jpg"),
// GIF
[b'G', b'I', b'F', b'8', b'9', b'a', ..] => Some("gif"),
[b'G', b'I', b'F', b'8', b'7', b'a', ..] => Some("gif"),
// WEBP
[b'R', b'I', b'F', b'F', _, _, _, _, b'W', b'E', b'B', b'P', ..] => Some("webp"),
// MP4
Expand Down

0 comments on commit 63ad354

Please sign in to comment.