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

check for filetype using file #28

Open
bglnelissen opened this issue Dec 21, 2016 · 0 comments
Open

check for filetype using file #28

bglnelissen opened this issue Dec 21, 2016 · 0 comments

Comments

@bglnelissen
Copy link
Owner

the file function should be used for checking filetypes. Now we 'just' check the extension, but using file is the better way to do this. Example, now slide2Tiles did not work on .ndpi files because we allowed .tif and .svs, and did not allow .ndpi.

However:

$ file slide2.ndpi 
slide2.ndpi: TIFF image data, little-endian
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