webp support for viewnior

Post links to your 64bit module repos here. Repo maintainers are responsible for resolving any issues caused by their xzm's.
Post Reply
User avatar
Rava
Contributor
Contributor
Posts: 2672
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 5.0rc1 x86-64 XFCe
Location: Forests of Germany

webp support for viewnior

Post#1 by Rava » 02 Apr 2020, 13:25

I try to get webp support for my favourite image viewer viewnior.

I learned that it relies on gdk-pixbuf. That can be upgraded by installing webp-pixbuf-loader-20191003.fb04954-x86_64-1_slonly.txz

So I created the module webp-pixbuf-loader-20191003.fb04954-x86_64-1_slonly.xzm and activated it. Still, no support for webp.

On https://github.com/hellosiyan/Viewnior/ ... -607806767 I got the info that

Code: Select all

gdk-pixbuf-query-loaders --update-cache
needs to be run as root.
I checked the module, and the script it had inside that should get executed had this code:

Code: Select all

if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
  /usr/bin/update-gdk-pixbuf-loaders >/dev/null 2>&1
fi
which I changed into this:

Code: Select all

if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
  /usr/bin/update-gdk-pixbuf-loaders --update-cache >/dev/null 2>&1
fi
hoping that by doing so I would not need a manual

Code: Select all

gdk-pixbuf-query-loaders --update-cache
Still, activating my tweaked module the result was still lacking:

Code: Select all

root@porteus:/# cat /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache | grep webp
root@porteus:/#
Only after I manually ran the cache-update manually (like I had with the original non-tweaked module) it was okay:

Code: Select all

root@porteus:/# gdk-pixbuf-query-loaders --update-cache
root@porteus:/# cat /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache | grep webp
"/usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-webp.so"
"webp" 5 "gdk-pixbuf" "The WebP image format" "LGPL"
"image/webp" "audio/x-riff" ""
"webp" ""
Can anyone enlighten me why that is?

Is /var/lib/pkgtools/scripts/webp-pixbuf-loader-20191003.fb04954-x86_64-1_slonly not executed when the module got activated?
And if it is, why does the cache-update not work?

P.S.
In case a moderator might wonder: I plan on uploading the module as soon as the issue with the cache update is fixed. So this post is in the correct sub-forum. The module just needs some fine tuning. :)
Cheers!
Yours Rava

Post Reply