Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.heic / .heif pictures shot by Sony A7SIII and A1 are not shown on Geeqie 1.7.2 under Ubuntu 22.04 #1100

Closed
MarkusHB1 opened this issue Jun 7, 2023 · 13 comments

Comments

@MarkusHB1
Copy link

ISSUE TYPE

  • Bug Report

GEEQIE VERSION

Geeqie 1.7.2 GTK3
Download readymade by Ubuntu 22.04

OS / DISTRIBUTION

SUMMARY

STEPS TO REPRODUCE

@MarkusHB1
Copy link
Author

Somehow all writing and attachments got lost. Here they come again.
Bildschirmfoto_2023-06-07_18-54-30

A7S05598.HEIC.zip

I

@caclark
Copy link
Collaborator

caclark commented Jun 7, 2023

If I open the attached image with ghex, I see that the signature is ftypheix.

(The problem is that the code looks for ftypheic)

Is the code ftypheix used for images from both cameras?

@MarkusHB1
Copy link
Author

Thanks for the superfast reply Colin!
I have no idea, it is done by sony, but I enclosed one by the A1.
SA107719.HEIC.zip

@mowgli mowgli closed this as completed in 268d91a Jun 8, 2023
@caclark
Copy link
Collaborator

caclark commented Jun 8, 2023

Until the next release of Geeqie, there is a workaround but it requires ImageMagick or similar command line image converter to be installed.

Go to Edit/Preferences/Advanced/External Preview Extraction

Create two shell scripts:
sony-identify.sh
#!/bin/sh
if head -c 12 "$1" | grep -q ftypheix
then
exit 0
else
exit 1
fi

sony-decode.sh
#! /bin/sh
tmpfile=$(mktemp --tmpdir= geeqie_tmp_XXXXXX.jpg)
convert "$1" "$tmpfile"
mv "$tmpfile" "$2"

Don't forget to chmod +x the shell scripts.

This is slow. Loading SA107719 is really slow.

@MarkusHB1
Copy link
Author

Thanks Colin & Klaus!
Will there be an update for Ubuntu 22.04?
If Yes, any idea when it will come? I have 7448 pics from my last travel, which I would prefer not to convert :-)

@caclark
Copy link
Collaborator

caclark commented Jun 9, 2023

The latest version of Geeqie is v2.0.1, but it does not solve your problem as it was released some time ago.
There will be a new version of Geeqie (including this bug fix) in the next few weeks - when a bug or two gets fixed.

There is no need to convert your images if you follow the instructions above. Using this procedure, when you open one of these images Geeqie loads your image file into /tmp, converts it into a .jpg format file, loads that file into the pixbuf that Geeqie uses internally and then deletes the /tmp files.

The extra conversions take a bit of extra time each time you want to look at a file of this type.

[Another method of trying a new version of Geeqie is to use an AppImage. This is a single large file that does not need installation - you just download it and run it. You can get these via geeqie.org. Sometime in the next day or so I will upload a new AppImage that contains this bug fix.]

@MarkusHB1
Copy link
Author

MarkusHB1 commented Jun 14, 2023 via email

@caclark
Copy link
Collaborator

caclark commented Jun 15, 2023

I am waiting for a fix for an exiv2 related bug:
Exiv2/exiv2#2638

I think that the problem lies with exiv2 code and not with Geeqie.

At some point I guess I will just make a Geeqie release with the 0.28.0 version of exiv2 excluded from the build.

@caclark
Copy link
Collaborator

caclark commented Jun 17, 2023 via email

@SimonDedman
Copy link

Hi Colin sorry to bother you. Is there a trick to getting HEIC to work on Geeqie? I have the latest version (2.2+git20240127-aa162d41, git pulled a second ago) and HEIC images all have the broken image icon. Converting to jpg with this, they work fine. HEIC is ticked as a viewable format in the settings. Any idea what I could be missing? Thanks!

@caclark
Copy link
Collaborator

caclark commented Jan 28, 2024

My standard xubuntu installation does not show these file. The installed version of libheif is 1.16.2-2

The Geeqie AppImages show these files - but they are compiled on GitHub, which uses libheif 1.12.0

I compiled and installed the latest version of libheif - 1.17.6 - and the files are displayed.

Therefore I assume the problem is in libheif, and it is now fixed.

If you want to mess around with your installation by compiling and installing libheif, that is up to you. I would not recommand that unless you are confident with this kind of thing.

The AppImage is a short-term possibility until things get straightened out - the README shows how to negate the load time problem with these files.

Another possibility is to use the Edit/Preferences/Advanced/External Preview feature - see the Help file.

@SimonDedman
Copy link

Cheers mate. Looks like 1.17.6 is bundled into ubuntu 24.04 so I might just wait a few months for it to make itself available to me with minimal faff! Appreciate the quick response, hope you had a good weekend.

@SimonDedman
Copy link

I waited an extended period of time, upgraded to 24.04 (very late) and installed the latest Geeqie from the script and it works on heic, again confirming that Colin Clark is the messiah that the scriptures foretold.

Cheers geezer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants