Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't detect .pam files #20

Open
CheerfulPianissimo opened this issue Mar 24, 2024 · 0 comments
Open

Doesn't detect .pam files #20

CheerfulPianissimo opened this issue Mar 24, 2024 · 0 comments

Comments

@CheerfulPianissimo
Copy link

Here are a few sample files: https://filesamples.com/formats/pam

The file utility gives "Netpbm PAM image file, size = 640 x 426" and xdg-mime give "image/x-portable-arbitrarymap" but tree_magic_mini gives "application/octet-stream".

Sample code used:

let input: &[u8] = include_bytes!("../sample.pam");
dbg!(tree_magic_mini::from_u8(input));

Found in the context of waycrate/wayshot#107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant