unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Re: Ristretto not using libheif to open heic images?
@ 2024-11-11  1:06 wakyct
  0 siblings, 0 replies; 4+ messages in thread
From: wakyct @ 2024-11-11  1:06 UTC (permalink / raw)
  To: help-guix

It appears that, while I have libheif installed, gdk-pixbuf isn't loading the file libpixbufloader-heif.so located at 
/gnu/store/wvz8dzjnvgalhh74ayss6j0n1fn20ffy-libheif-1.17.6/lib/gdk-pixbuf-2.0/2.10.0/loaders/ on my system.

I checked this looking at the default output of gdk-pixbuf-query-loaders. However if I manually create a loaders file, like

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$

I can open the heic file. 

So I'm not sure where the loading process is going astray but this seems to be the issue. 

Is this a bug against the packaging of libheif maybe?


George


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Ristretto not using libheif to open heic images?
@ 2024-11-02 18:58 wakyct
  2024-11-05 15:31 ` Felix Lechner via
  0 siblings, 1 reply; 4+ messages in thread
From: wakyct @ 2024-11-02 18:58 UTC (permalink / raw)
  To: help-guix

hello all, 

While trying to open a heic image with Ristretto (using xfce as my DE) I installed libheif. Now I can see heic thumbnails in 
Thunar, and use heif-convert from the terminal successfully, but Ristretto says "Unsupported mime type".

Any idea what the issue could be? Is there anyone using Ristretto that could check on their end for me? You can find sample 
heic files at https://filesamples.com/formats/heif.

It looks like libheif was linked correctly:

george@dunstan ~/.guix-profile/lib$ ls -l libheif*
lrwxrwxrwx 1 root root 70 Dec 31  1969 libheif -> /gnu/store/wvz8dzjnvgalhh74ayss6j0n1fn20ffy-libheif-1.17.6/lib/libheif
lrwxrwxrwx 1 root root 73 Dec 31  1969 libheif.so -> /gnu/store/wvz8dzjnvgalhh74ayss6j0n1fn20ffy-libheif-1.17.6/lib/libheif.so
lrwxrwxrwx 1 root root 75 Dec 31  1969 libheif.so.1 -> /gnu/store/wvz8dzjnvgalhh74ayss6j0n1fn20ffy-libheif-1.17.6/lib/libheif.so.1
lrwxrwxrwx 1 root root 80 Dec 31  1969 libheif.so.1.17.6 -> /gnu/store/wvz8dzjnvgalhh74ayss6j0n1fn20ffy-libheif-1.17.6/lib/libheif.so.1.17.6

AFAIK Ristretto should be able to work with libheif according to its doc page:

"The image types supported by Ristretto are those supported by the gdk-pixbuf library. This library itself supports a number of 
basic image types (JPEG, PNG, TIFF, etc.), but then relies on optional libraries to extend the range of supported image types. 
This means that you will have to install these libraries yourself to extend the range of image types supported by Ristretto. 
Examples: libwmf, libopenraw, libavif, libheif, libjxl, librsvg, webp-pixbuf-loader."


thanks, George


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-11  1:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11  1:06 Ristretto not using libheif to open heic images? wakyct
  -- strict thread matches above, loose matches on Subject: below --
2024-11-02 18:58 wakyct
2024-11-05 15:31 ` Felix Lechner via
2024-11-06  6:04   ` wakyct

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).