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

Identify file using magic bytes instead of file extension #2010

Open
mwestphal opened this issue Feb 22, 2025 · 0 comments
Open

Identify file using magic bytes instead of file extension #2010

mwestphal opened this issue Feb 22, 2025 · 0 comments
Labels
help wanted Please help with this issue!

Comments

@mwestphal
Copy link
Contributor

Is your feature request related to a problem? Please describe.
F3D is able to read many file formats and rely on the extension to identify which reader/plugin to use.
That works well however it has strong limitations:

  1. How to discriminates between similar extensions
  2. How to pick right reader when reading file from stream (Let F3D take as input a model via streaming rather than filename #1100)

Lets use magic byte logic to identify file format as well

Describe the solution you'd like
Use libmagic to identify files and check if a reader can read a file or not.
This may need some changes in VTK (CanReadFile) or may be a F3D only solution.

@mwestphal mwestphal added the help wanted Please help with this issue! label Feb 22, 2025
@mwestphal mwestphal added this to F3D Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Please help with this issue!
Projects
Status: No status
Development

No branches or pull requests

1 participant