Do you have the package libheif1 installed?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.
Some HEIC images on Linux work, some don't
Moderators: XnTriq, helmut, xnview
-
- Posts: 167
- Joined: Fri Apr 17, 2020 5:35 pm
Re: Some HEIC images on Linux work, some don't
-
- Posts: 21
- Joined: Sat Feb 11, 2023 2:31 pm
Re: Some HEIC images on Linux work, some don't
Thank you for your answer. Yes: ver. 1.13.0-1.winnylinny wrote: ↑Sat Feb 11, 2023 6:59 pmDo you have the package libheif1 installed?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.
-
- Posts: 167
- Joined: Fri Apr 17, 2020 5:35 pm
Re: Some HEIC images on Linux work, some don't
Is it for all HEIC/HEIF files, or only specific ones?
Do you see HEIF under Help > About > Formats?
Do you see HEIF under Help > About > Formats?
-
- Posts: 21
- Joined: Sat Feb 11, 2023 2:31 pm
Re: Some HEIC images on Linux work, some don't
I think for all. No, I don't see HEIF.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?
-
- Posts: 167
- Joined: Fri Apr 17, 2020 5:35 pm
Re: Some HEIC images on Linux work, some don't
What is the output for:
Code: Select all
ls -l /usr/lib/ | grep heif
-
- Posts: 21
- Joined: Sat Feb 11, 2023 2:31 pm
Re: Some HEIC images on Linux work, some don't
nothing (winnylinny wrote: ↑Sun Feb 12, 2023 3:58 am What is the output for:Code: Select all
ls -l /usr/lib/ | grep heif
-
- Posts: 167
- Joined: Fri Apr 17, 2020 5:35 pm
Re: Some HEIC images on Linux work, some don't
Try these two commands, and then re-launch XnViewMP:
You're using the .deb package for XnViewMP, correct? Not the AppImage or Flatpak?
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
-
- Posts: 21
- Joined: Sat Feb 11, 2023 2:31 pm
Re: Some HEIC images on Linux work, some don't
Thank you! After this command all works fine! I installed deb package of course.winnylinny wrote: ↑Sun Feb 12, 2023 1:21 pm Try these two commands, and then re-launch XnViewMP:
You're using the .deb package for XnViewMP, correct? Not the AppImage or Flatpak?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
-
- Posts: 167
- Joined: Fri Apr 17, 2020 5:35 pm
Re: Some HEIC images on Linux work, some don't
Glad it works!avmaksimov wrote: ↑Sun Feb 12, 2023 2:11 pm Thank you! After this command all works fine! I installed deb package of course.
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.
-
- Posts: 21
- Joined: Sat Feb 11, 2023 2:31 pm
Re: Some HEIC images on Linux work, some don't
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).winnylinny wrote: ↑Sun Feb 12, 2023 3:13 pmGlad it works!avmaksimov wrote: ↑Sun Feb 12, 2023 2:11 pm Thank you! After this command all works fine! I installed deb package of course.
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.
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.
-
- Posts: 167
- Joined: Fri Apr 17, 2020 5:35 pm
Re: Some HEIC images on Linux work, some don't
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!
viewtopic.php?f=60&t=44798
-
- Posts: 11
- Joined: Tue Jan 10, 2023 8:24 pm
Re: Some HEIC images on Linux work, some don't
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.
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.
You do not have the required permissions to view the files attached to this post.
-
- Author of XnView
- Posts: 44883
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Some HEIC images on Linux work, some don't
No problem to view this file on linux, do you have tried 'update catalog from file'?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.
Pierre.
-
- Posts: 167
- Joined: Fri Apr 17, 2020 5:35 pm
Re: Some HEIC images on Linux work, some don't
Works fine for me too.
Did you try the above workarounds? (In reference to the "library" paths.)
Did you try the above workarounds? (In reference to the "library" paths.)
-
- Posts: 11
- Joined: Tue Jan 10, 2023 8:24 pm
Re: Some HEIC images on Linux work, some don't
The paths are good since half of my HEIC images work just fine in all ways.winnylinny wrote: ↑Tue Jul 25, 2023 6:43 am Did you try the above workarounds? (In reference to the "library" paths.)
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.