mbrubeck / tree_magic

Determines the MIME type of a file by traversing a filetype tree.
MIT License
34 stars 9 forks source link

missing support for image/heif if feature `with-gpl-data` is used #26

Closed braeutigamj closed 3 days ago

braeutigamj commented 4 days ago

I created a a small test at a fork: https://github.com/mbrubeck/tree_magic/commit/a27b46a3c43d22ad2d9bd8903def56cb06ed5906

$ cargo test works fine $ cargo test -F with-gpl-data fails:

---- from_u8::image_heic stdout ----
thread 'from_u8::image_heic' panicked at tests/from_u8.rs:13:9:
assertion `left == right` failed
  left: "application/octet-stream"
 right: "image/heif"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Do you have to update magic_db? How is it possible?

Thanks in advance

Best regards Jonas

mbrubeck commented 3 days ago

Thanks for the report and test case! Fixed in tree_magic_db version 3.0.1 by updating the XDG mime data files.