-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[request] Webp support #20
Comments
Viewnior uses gdk-pixbuf under the hood, which does not support WebP. |
Yeap.. it will be a very nice to have an update for some new versions of the image formats. |
There's an out-of-tree WebP backend for GdkPixbuf: Installing it should unlock WebP support. |
@debarshiray Yes.. I know about it, but sadly, for me don't works. |
@Martina-Neumayer That's sad to hear. If you still have a WebP file which it failed to decode, then it might be worth filing a bug. I don't use WebP much myself, but I know the author of that decoder. :) |
@debarshiray Nope, I don't have any. The entire issue was "caused" by the add-on in the Chrome/Chromium browser which enable to save some pictures, gfx etc even if they are let's say.. not mentioned to save ootb ;) I mean by Image Toolbar add-on. And there was somehow a glitch manifested itself by saving jpg files as a webp. Strange, but it was so. |
Weirdly, viewnior can open webps on one of my computers but not the other. Both running gentoo. I can't figure it out. |
Pretty sure you've installed webp-pixbuf-loader on one and not the other. There's literally no other way for it to work. |
Yes, that was it. Thanks. |
I use viewnior 1.4-2 on a Slackware based system. I installed webp-pixbuf-loader-20191003.fb04954-x86_64-1_slonly - that is the most recent package to be found. Still viewnior insists on |
I don't remember restarting. |
Then what could be the reason it is not working in my case? Any ideas? |
@Rava77 You installed it with I guess you could check if it did by doing If it still doesn't work you have to check if the library is even installed, do a Edit: the paths might be slighly different on Slackware. |
Indeed one is: it is /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache The initial cat & grep gave no result. So I ran
And now viewnior accepts each and every webp as a valid image file and displays them all. <B And I use a live system, so I just activated a module I created out of the slackware package. I have to look into the module to see if the gdk-pixbuf-query-loaders --update-cache is put in there somewhere (as it should), and if so, determine why that was not executed. Thanks a lot, for now I have to manually run the gdk-pixbuf-query-loaders --update-cache , but I am working of fixing the module so that does the gdk-pixbuf-query-loaders call automatically. |
Update
Obviously, that is incorrect and needs to be changed into this:
or maybe even into this:
|
Works for me! Thanks! |
In Arch: yay -S webp-pixbuf-loader And restart Viewnior and done. |
This issue should not be closed until Viewnior opens webp images by default. If another package is required to accomplish this, then it should be a dependency that gets installed upon installing Viewnior. Just because there is a work-around doesn't mean this issue should be closed. Viewnior should at least aspire to support all image types that web browsers do (BY DEFAULT). Browser Support of WEBP images: WEBP Info: |
It's not a workaround, Viewnior uses GDK Pixbuf to load images. GDK Pixbuf requires loaders (in this case webp-pixbuf-loader) to load certain images. |
Until Viewnior can view webp images (in the same way it views jpg, png, and gif) this issue should remain open (GDK Pixbuf needs to know that downstream projects have open tickets that depend on them). |
It's not Viewnior's problem. Dependencies are handled by your package manager. If you'd like to let upstream know, take it to here: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/103 |
It definitely should start supporting .webp images out of the box. |
Like @Necklaces wrote: Viewnior uses GDK Pixbuf to load images. When the system is set up to support webp via GDK Pixbuf then viewnior supports webp just like it supports jpeg or png. |
To be fair, I'm not interested in all these technical details. I know that I've installed feh (which was quite a small package, by the way) and it shows webp no problem. That's what I expect from great software like Viewnior. |
@minemax-ua My viewnior also supports webp after I added the system webp support via GDK Pixbuf . No need to change anything in viewnior itself. I am quite sure the developers of viewnior have better things to do than basically re-write the whole way viewnior handles images. Like I already wrote: if you want changes, demand them from the people who setup and maintain your flavour of Linux, it is up to them to get the system ready for webp via GDK Pixbuf, that is not the job of the viewnior developers. |
On Ubuntu 22 you can try the following: add the PPA: install the library: |
Could you please add .webp format support to Viewnior?
The text was updated successfully, but these errors were encountered: