Page 2 of 2

Re: Some HEIC images on Linux work, some don't

Posted: Sat Feb 11, 2023 6:59 pm
by winnylinny
avmaksimov wrote: Sat Feb 11, 2023 2:40 pm Hello to all! I've just installed XNView MP 1.4.2 on my Ubuntu 22.10 via deb packet. And it can't open HEIC file.
Do you have the package libheif1 installed?

Re: Some HEIC images on Linux work, some don't

Posted: Sat Feb 11, 2023 7:45 pm
by avmaksimov
winnylinny wrote: Sat Feb 11, 2023 6:59 pm
avmaksimov wrote: Sat Feb 11, 2023 2:40 pm Hello to all! I've just installed XNView MP 1.4.2 on my Ubuntu 22.10 via deb packet. And it can't open HEIC file.
Do you have the package libheif1 installed?
Thank you for your answer. Yes: ver. 1.13.0-1.

Re: Some HEIC images on Linux work, some don't

Posted: Sat Feb 11, 2023 7:51 pm
by winnylinny
Is it for all HEIC/HEIF files, or only specific ones?

Do you see HEIF under Help > About > Formats?

Re: Some HEIC images on Linux work, some don't

Posted: Sat Feb 11, 2023 8:08 pm
by avmaksimov
winnylinny wrote: Sat Feb 11, 2023 7:51 pm Is it for all HEIC/HEIF files, or only specific ones?

Do you see HEIF under Help > About > Formats?
I think for all. No, I don't see HEIF.
Image

Re: Some HEIC images on Linux work, some don't

Posted: Sun Feb 12, 2023 3:58 am
by winnylinny
What is the output for:

Code: Select all

ls -l /usr/lib/ | grep heif

Re: Some HEIC images on Linux work, some don't

Posted: Sun Feb 12, 2023 6:18 am
by avmaksimov
winnylinny wrote: Sun Feb 12, 2023 3:58 am What is the output for:

Code: Select all

ls -l /usr/lib/ | grep heif
nothing (

Re: Some HEIC images on Linux work, some don't

Posted: Sun Feb 12, 2023 1:21 pm
by winnylinny
Try these two commands, and then re-launch XnViewMP:

Code: Select all

sudo ln -s /usr/lib/x86_64-linux-gnu/libheif.so.1 /usr/lib/libheif.so.1
sudo ln -s /usr/lib/x86_64-linux-gnu/libheif.so.1 /usr/lib/libheif.so
You're using the .deb package for XnViewMP, correct? Not the AppImage or Flatpak?

Re: Some HEIC images on Linux work, some don't

Posted: Sun Feb 12, 2023 2:11 pm
by avmaksimov
winnylinny wrote: Sun Feb 12, 2023 1:21 pm Try these two commands, and then re-launch XnViewMP:

Code: Select all

sudo ln -s /usr/lib/x86_64-linux-gnu/libheif.so.1 /usr/lib/libheif.so.1
sudo ln -s /usr/lib/x86_64-linux-gnu/libheif.so.1 /usr/lib/libheif.so
You're using the .deb package for XnViewMP, correct? Not the AppImage or Flatpak?
Thank you! After this command all works fine! I installed deb package of course.

Re: Some HEIC images on Linux work, some don't

Posted: Sun Feb 12, 2023 3:13 pm
by winnylinny
avmaksimov wrote: Sun Feb 12, 2023 2:11 pm Thank you! After this command all works fine! I installed deb package of course.
Glad it works!

Unfortunately, this is an issue of some distros (such as Ubuntu) offering "multiarch" libraries. They do not use the standard /usr/lib/ directory, but rather split them into /usr/lib/x86_64-linux-gnu/ and /usr/lib/i386-linux-gnu/ directories.

Applications that use system libraries expect the library files to be located under /usr/lib/

The symlinks you created should keep working, even throughout updates to your Ubuntu system. :)

In my opinion, distros need to move away from offering 32-bit anything, anymore. (Except maybe gaming-related libraries.)

We live in a pure 64-bit OS world at this point.

Re: Some HEIC images on Linux work, some don't

Posted: Sun Feb 12, 2023 3:45 pm
by avmaksimov
winnylinny wrote: Sun Feb 12, 2023 3:13 pm
avmaksimov wrote: Sun Feb 12, 2023 2:11 pm Thank you! After this command all works fine! I installed deb package of course.
Glad it works!

Unfortunately, this is an issue of some distros (such as Ubuntu) offering "multiarch" libraries. They do not use the standard /usr/lib/ directory, but rather split them into /usr/lib/x86_64-linux-gnu/ and /usr/lib/i386-linux-gnu/ directories.

Applications that use system libraries expect the library files to be located under /usr/lib/

The symlinks you created should keep working, even throughout updates to your Ubuntu system. :)

In my opinion, distros need to move away from offering 32-bit anything, anymore. (Except maybe gaming-related libraries.)

We live in a pure 64-bit OS world at this point.
Unfortenetuly there are many computer with 32-bit yet. But may be better the app search for this lib not only in /usr/lib/ but also in /usr/lib/x86_64-linux-gnu/ ? I think is simplier then expecting some changes from Ubuntu).
And BTW Ubuntu is one of the popular distros in the world. So I think it's more rightful to keep in my mind about library path.

Re: Some HEIC images on Linux work, some don't

Posted: Sun Feb 12, 2023 5:34 pm
by winnylinny
avmaksimov wrote: Sun Feb 12, 2023 3:45 pmBut may be better the app search for this lib not only in /usr/lib/ but also in /usr/lib/x86_64-linux-gnu/ ?

I created a feature request! :mrgreen:

viewtopic.php?f=60&t=44798

8)

Re: Some HEIC images on Linux work, some don't

Posted: Mon Jul 24, 2023 7:13 pm
by Kef
I'm having an issue with some HEIC files. I'm attaching one sample file.

This file can't be viewed in XnView. It shows up in the browser and has a thumbnail but can't be opened. It also does not show the 'date taken' timestamp in the browser, and can't be sorted by 'date taken'. But XnView sees the 'date taken' just fine and shows it in the 'Properties' section.

Re: Some HEIC images on Linux work, some don't

Posted: Tue Jul 25, 2023 6:39 am
by xnview
Kef wrote: Mon Jul 24, 2023 7:13 pm I'm having an issue with some HEIC files. I'm attaching one sample file.

This file can't be viewed in XnView. It shows up in the browser and has a thumbnail but can't be opened. It also does not show the 'date taken' timestamp in the browser, and can't be sorted by 'date taken'. But XnView sees the 'date taken' just fine and shows it in the 'Properties' section.
No problem to view this file on linux, do you have tried 'update catalog from file'?

Re: Some HEIC images on Linux work, some don't

Posted: Tue Jul 25, 2023 6:43 am
by winnylinny
Works fine for me too.

Did you try the above workarounds? (In reference to the "library" paths.)

Re: Some HEIC images on Linux work, some don't

Posted: Tue Jul 25, 2023 6:10 pm
by Kef
winnylinny wrote: Tue Jul 25, 2023 6:43 am Did you try the above workarounds? (In reference to the "library" paths.)
The paths are good since half of my HEIC images work just fine in all ways.
xnview wrote: Tue Jul 25, 2023 6:39 am No problem to view this file on linux, do you have tried 'update catalog from file'?
That's the first thing I did to try to fix it before posting here. It didn't help.

But after your comment I moved a HEIC file somewhere else on my file system and went to look at it with XnView, and everything looked fine with it.

So I went into Settings and deleted the catalog for that directory. After that it started working. 👍