You are not logged in.
hello, I'm a new user of xfce. Recently I had to open a heic image, so I installed libheif (I'm on the Guix distro). Now I have an odd issue where I can see heic thumbnails in Thunar, and Thunar lists those images as of type 'HEIF image' correctly, but when I try to open them with Ristretto 0.13.2 I get:
$ ristretto TWNBAY_Eb.heic
** Message: 10:57:55.091: Could not open file 'file:///home/george/Downloads/TWNBAY_Eb.heic': Unsupported mime type
Also I should mention that heif-convert does work in the terminal.
Anyone have an idea of what the issue might be? Does Ristretto need to be compiled with some heic flag switched on?
Thanks, George
Last edited by wakyct (2024-11-11 00:54:12)
Offline
Hello and welcome.
You need to make sure you have the correct heif libraries. See: https://gitlab.xfce.org/apps/ristretto/-/issues/109 and https://gitlab.xfce.org/apps/ristretto/-/issues/90.
Do you have a libpixbufloader-heif.so file in the gdk-pixbuf loaders directory? Not sure where that would be in your system, but in Arch it is located at: /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks for linking those issues, especially the first one sounds like what I'm working on.
Here is output of searching for that .so file on my system,
george@dunstan ~/Downloads$ guix locate libpixbufloader-heif.so
guix locate: indexing files from /gnu/store...
guix locate: traversing local profile manifests...
indexing 698 packages
libheif@1.17.6 /gnu/store/wvz8dzjnvgalhh74ayss6j0n1fn20ffy-libheif-1.17.6/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-heif.so
So it is in a /loaders directory under libheif. I wonder if Ristretto expects it to be in a different path?
EDIT:
Yes, I have the file but it's not being loaded (or it's not loaded as Ristretto expects).
I confirmed this by manually creating a loaders file:
george@dunstan ~/Downloads$ gdk-pixbuf-query-loaders /gnu/store/wvz8dzjnvgalhh74ayss6j0n1fn20ffy-libheif-1.17.6/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-heif.so >> my-pixbuf-loaders && gdk-pixbuf-query-loaders >> my-pixbuf-loaders
george@dunstan ~/Downloads$ export GDK_PIXBUF_MODULE_FILE=my-pixbuf-loaders
george@dunstan ~/Downloads$ ristretto TWNBAY_Eb
george@dunstan ~/Downloads$
Thanks for the clue ToZ, I probably have to sort this out with my distro.
Last edited by wakyct (2024-11-11 00:53:38)
Offline
[ Generated in 0.011 seconds, 9 queries executed - Memory usage: 530.33 KiB (Peak: 531.61 KiB) ]