Skip to content

Fix CR3 detection #310

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

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Fix CR3 detection #310

merged 1 commit into from
Jun 19, 2024

Conversation

qbnu
Copy link
Contributor

@qbnu qbnu commented Jun 6, 2024

#261 broke CR3 detection. CR3 uses the HEIF container, so it gets detected as a HEIF before checking the file extension.

I added a check for the "crx " major brand and moved the unspecified encoding fallback after the file extension check. I moved TIFF detection here as well, which currently won't really do anything since it just goes to GDI+ anyway. I also added the .HIF extension used by newer Canon cameras (https://github.com/lclevy/canon_cr3/blob/master/heif.md)

@sylikc sylikc added the format support Related to add/remove/change of a specific format support. label Jun 19, 2024
@sylikc
Copy link
Owner

sylikc commented Jun 19, 2024

hmm, i wonder if this is what has caused problems when i'm opening CR3 files...

@sylikc sylikc merged commit dc058fa into sylikc:master Jun 19, 2024
4 checks passed
@sylikc sylikc added the bug Something isn't working label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working format support Related to add/remove/change of a specific format support.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants