idealo / imagededup

😎 Finding duplicate images made easy!
https://idealo.github.io/imagededup/
Apache License 2.0
5.16k stars 456 forks source link

HEIF format support (fixes #207) #215

Open ink-splatters opened 7 months ago

ink-splatters commented 7 months ago

HEIF Support

This is attempt to support HEIF format, ubiquitous on Apple devices, using Pillow-Heif

See below why using libheif directly might be better option.

Licensing

This PR uses pi-heif - the light version of Pillow-Heif which only links against LGPL-licensed libheif, evading harsher GPL restrictions of the full version (see LICENSES_bundled.txt)

libheif is built and packaged for the wide range of platforms and leaves only small amount of platforms to follow LGPL-restrictive path.

However, Pillow-Heif, including pi-heif variant, provides wheels only for:

which is more narrow platform support than one of libheif.

Therefore, direct usage of libheif is advised, however it's out of scope of this PR.

If the author chooses to merge this PR, I suggest creating LICENSES_bundled.txt following Pillow-Heif approach which seems pretty neat.

This PR fixes #207