arsenetar / dupeguru

Find duplicate files
https://dupeguru.voltaicideas.net
GNU General Public License v3.0
5.42k stars 415 forks source link

HEIC file type not supported in Picture Mode #455

Open effndc opened 7 years ago

effndc commented 7 years ago

HEIC is the new default used by all iOS devices, unfortunately dupeGuru doesn't attempt to search for duplicates for these files. Is there a timeline for adding HEIC support? Currently I am only able to match using {'png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff', 'tif'}. Is it possible that it would be as simple as adding heic to the array?

ghost commented 7 years ago

I have no idea, but the mac version of dupeguru use native libraries to read images, so it's possible that it would automagically work.

mmoldrup commented 5 years ago

Hi, This issue is still not resolved on Windows 10. heic-format is installed and working. Can anyone verify that this works on MAC?

Tried to recompile, adding {..,'heic'} to the array in photo.py, but it didn't have any effect.

Does anyone know, what needs to be done to get heic working in dupeguru for Windows?

Amar0ks commented 4 years ago

Still the only feature I'm missing.

kleuter commented 3 years ago

Well, that's what I tried but failed on Windows

Result: the app works, all dlls are loaded, the app actually reads those HEIC files but VEEEEEERY SLOOOOWLY and what is worse it never finds any duplicates.

roboes commented 3 years ago

Also missing this feature.

mlindgren commented 3 years ago

@kleuter do you have a branch with the changes you tried? I might try to look at this issue as well, and if you have a branch with existing changes that would save some time.

timqzm commented 3 years ago

It works automagically on macOS indeed. Just add 'heic'} and do make && make run

mike-lloyd03 commented 2 years ago

Has anyone had success getting heic support on Linux?

chbndrhnns commented 2 years ago

I would also be interested in understanding how to get HEIC support into Docker image provided for dupeguru so that I can run in on a Synology NAS.

Dobatymo commented 2 years ago

Instead of using the Qt image class, it would be easiest to use Pillow and pillow-heif.

jacklollz2 commented 1 year ago

Looking for this to be officially added.

Simon-List commented 1 year ago

Same here. It could be quite useful since Google Photos stores pictures in HEIC format, so when downloading them many duplicates are generated.

Simon-List commented 1 year ago

I found a workaround solution: It seems HEIC files are just "hidden" .jpg. So by just changing the extension to .jpg (or adding it after .heic), dupeguru is able to scan the image exif. Hope it helps some of you.

Dobatymo commented 1 year ago

That doesn't sound right in general. According to https://doc.qt.io/qt-6/qimagereader.html#supportedImageFormats Qt doesn't support heif/heic files. And JPEG files are really different from real HEIC files both in file container and image encoding. Maybe your files are really just JPEG files which were for some reason renamed to HEIC?

Simon-List commented 1 year ago

Maybe, although my heic filles are from a Google Photo data extract, and they are duplicates of original .jpg photos I have on my computer, which are heavier (so not detected as duplicate in "content" scan).

So I'm happy it work, but still interested in an official support of all images files containing exif info for duplicate identification.

roboes commented 1 year ago

I took some .heic files from https://filesamples.com/formats/heic and changed the file extension from .heic to .jpg. Both Windows and iOS recognized/rendered the image properly.

Although changing the extension worked, dupeGuru was not able to recognize duplicated photos that had the file extension changed from .heic to .jpg.