nemethviktor/GeoTagNinja

HEIC files cannot be previewed

Closed this issue · 9 comments

Describe the bug
Whenever a HEIC file is selected, the UI will show "Could not retrieve/generate image preview"

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to any folder containing a HEIC file
  2. Click the HEIC file
  3. Now the UI should show "Could not retrieve/generate image preview"

Expected behavior
An image preview should be shown

Screenshots
Unavngivet

Desktop (please complete the following information):

  • OS: Windows 10
  • Language/Culture: da-DK
  • Full Path of Picture: C:\Users\treel\OneDrive\Kamerarulle\Annas billeder - HEIC\20230630_120919.heic

Additional context
None

Hey, thanks for the feedback. Indeed now that I have had a look at it exifTool doesn't support that particular image type. --> https://exiftool.org/forum/index.php?topic=12597.0#:~:text=There%20is%20no%20stand%2Dalone,heic%20container%20to%20be%20viewable.

There is however another open-source C# library that does the job, I've patched that in.

Anyway, you're in for a treat (?) of sorts because I have done a bit of work recently on the app but not managed to test it out properly so you'll be the guinea pig I'm afraid (stuff should work tho') -- give it a whirl pls.
https://drive.google.com/open?id=18iI77SIdrIv-joOtyT0-MzqOVtB5OgM0&usp=drive_fs

I'll have a look at the numeric formatting issue. The problem is that there are so many different "cultures" (ie. Windows's definition of how various countries format things like numbers) and while I have tested w/ Finnish [English], DK hasn't come up as an issue so far.
Alas I've found an unrelated bug already that will be fixed.
Re: HEIC generation being slow: yeah, not much I can do about it I'm afraid. HEIC doesn't have a preview built into it so it needs to be converted to JPG - the library used only allows to extract either the thumbnail (very small) or the whole image. Particularly if your files are big (in terms of megapixels), that will take a while.

I found a set of old photos to work on today, coming off of an Apple iPhone 11 (Thereby testing another source of HEICs).
So far, everything is working great for my purposes, but I did find another minor issue:
The HEIC preview does not take into account rotation, meaning images are sometimes lying down, or even upside down.
When displaying the same images in the built in Windows image viewer, the images are shown with the correct rotation.

None of this stops me from working on the images though.

image

Getting there....AI can do wonders.
Also will be patching (already have, it's just not uploaded yet) the normal RAW/preview creation.
Will look at the numbers issue now.

Okay, try the link from before (updated).

Hi there. Sorry for the late reply.

Tested again tonight, and the new release is a massive improvement.
Not only did you fix the rotation - Somehow, you also made the previews load MUCH faster.
This definitely eases the work of tagging each picture.

On the downside, the culture issue still persists. This is not a priority for me, but might be nice for you to know.