sylikc / jpegview

Fork of JPEGView by David Kleiner - fast and highly configurable viewer/editor for JPEG, BMP, PNG, WEBP, TGA, GIF and TIFF images with a minimal GUI. Basic on-the-fly image processing is provided - allowing adjusting typical parameters as sharpness, color balance, rotation, perspective, contrast and local under-/overexposure.
Other
2.18k stars 128 forks source link

Fix CR3 detection #310

Closed qbnu closed 5 months ago

qbnu commented 5 months ago

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 commented 5 months ago

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