dupeguru icon indicating copy to clipboard operation
dupeguru copied to clipboard

HEIC file type not supported in Picture Mode

Open effndc opened this issue 6 years ago • 16 comments

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?

effndc avatar Nov 07 '17 17:11 effndc

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.

ghost avatar Nov 07 '17 17:11 ghost

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?

mmoldrup avatar Sep 22 '19 07:09 mmoldrup

Still the only feature I'm missing.

Amar0ks avatar Oct 05 '20 20:10 Amar0ks

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

  • Compiled the qt-heif-image-plugin for Qt 5.12
  • Verified the plugin is correctly working for a sample app provided heif.dll, libde265.dll and libx265.dll are placed together with the binary and qheif.dll is located in the imageformats directory
  • Compiled dupeGuru, added the qheif plugin and dependencies and added heic extension support

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.

kleuter avatar Mar 25 '21 00:03 kleuter

Also missing this feature.

roboes avatar Apr 03 '21 13:04 roboes

@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.

mlindgren avatar Apr 26 '21 06:04 mlindgren

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

timqzm avatar Nov 02 '21 09:11 timqzm

Has anyone had success getting heic support on Linux?

mike-lloyd03 avatar Dec 15 '21 06:12 mike-lloyd03

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.

chbndrhnns avatar Sep 04 '22 20:09 chbndrhnns

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

Dobatymo avatar Oct 18 '22 04:10 Dobatymo

Looking for this to be officially added.

jacklollz2 avatar Nov 27 '22 22:11 jacklollz2

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 avatar Nov 27 '22 22:11 Simon-List

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.

Simon-List avatar Feb 04 '23 09:02 Simon-List

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?

Dobatymo avatar Feb 05 '23 02:02 Dobatymo

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.

Simon-List avatar Feb 05 '23 07:02 Simon-List

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.

roboes avatar Feb 08 '23 14:02 roboes