Could consider using https://github.com/google/magika instead of magic (libmagic).
Could consider using https://github.com/google/magika instead of magic (libmagic).