jurplel / qView

Practical and minimal image viewer
https://interversehq.com/qview/
GNU General Public License v3.0
2.04k stars 120 forks source link

Add additional file extensions for HEIC/HEIF #723

Closed jdpurcell closed 4 weeks ago

jdpurcell commented 1 month ago

Fixes #702. Added .hif extension which is non-standard but used by Canon cameras. I found a sample image here and was able to load it.

Also added .heics/.heifs which are "sequence" variants (i.e. animated); we can at least display them as stills but the decoders don't support animation. I found some sample .heics files which the iPhone apparently produces for its "Live Stickers" feature.

jdpurcell commented 1 month ago

I did some code cleanup as well, and the #ifdef is related to https://github.com/qt/qtbase/commit/44a17e9a36d534245d95dd8b2b7449ed6e2d4724.