Comments (26)
There's an out-of-tree WebP backend for GdkPixbuf:
https://github.com/aruiz/webp-pixbuf-loader
Installing it should unlock WebP support.
from viewnior.
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. There are tutorials out there how to get the system to support webp - not only will viewnior then support webp, the file browser (e.g. thunar in XFCE) also will support webp as in: it will create the file icon preview images for all webp files. If you want changes in that, ask the people who maintain your flavour of Linux to have it support webp out of the box via GDK Pixbuf. That is not a job for Viewnior to do when viewnior is set up to load and save any kind of image formats via GDK Pixbuf.
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.
from viewnior.
In Arch:
yay -S webp-pixbuf-loader
And restart Viewnior and done.
from viewnior.
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).
from viewnior.
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:
https://caniuse.com/webp
WEBP Info:
https://developers.google.com/speed/webp
from 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.
Would you demand viewnior handles jpeg and png and gif as if it was not supported by the GDK Pixbuf system as well? Viewnior only supports these image formats because the system supports them via GDK Pixbuf . When you demand viewnior should bring its own support for webp, you either demand it brings the system support with it (even when the system already has webp support), or you demand the way viewnior handles all images (supporting all image formats supported by systemwide GDK Pixbuf ) to change to handle all that no longer via GDK Pixbuf but to program that from scratch then you demand they create a whole new program just so that people do not need to get the systemwide support for webp.
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.
from viewnior.
It definitely should start supporting .webp images out of the box.
from viewnior.
Yes, that was it. Thanks.
from viewnior.
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 gdk-pixbuf-query-loaders --update-cache
et voilà:
# 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" ""
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.
from viewnior.
Update
Checked the module. The script that got executed has this in it:
if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
/usr/bin/update-gdk-pixbuf-loaders >/dev/null 2>&1
fi
Obviously, that is incorrect and needs to be changed into this:
if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
/usr/bin/update-gdk-pixbuf-loaders --update-cache >/dev/null 2>&1
fi
or maybe even into this:
if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
/usr/bin/update-gdk-pixbuf-loaders >/dev/null 2>&1
/usr/bin/update-gdk-pixbuf-loaders --update-cache >/dev/null 2>&1
fi
from viewnior.
There's an out-of-tree WebP backend for GdkPixbuf:
https://github.com/aruiz/webp-pixbuf-loaderInstalling it should unlock WebP support.
Works for me! Thanks!
from viewnior.
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
from viewnior.
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.
There are tutorials out there how to get the system to support webp - not only will viewnior then support webp, the file browser (e.g. thunar in XFCE) also will support webp as in: it will create the file icon preview images for all webp files.
If you want changes in that, ask the people who maintain your flavour of Linux to have it support webp out of the box via GDK Pixbuf. That is not a job for Viewnior to do when viewnior is set up to load and save any kind of image formats via GDK Pixbuf.
from viewnior.
Viewnior uses gdk-pixbuf under the hood, which does not support WebP.
from viewnior.
Yeap.. it will be a very nice to have an update for some new versions of the image formats.
Viewnior is super but lot's of images recently are simply not recognizable by the app.
from viewnior.
@debarshiray Yes.. I know about it, but sadly, for me don't works.
I am using now on my Arch viewer from the XnViewMP package and it works ootb with all fileformats I need without any issues.
from viewnior.
@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. :)
from viewnior.
@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.
I am not entirely sure if it was only through (because) the add-on or also through some error in the system. After I migrated to Arch there is no issue at all anymore and the add-on preserve original fileformat by saving as it should be.
I think (for 80% of certainty) that this was a system related problem. But I did not have much free time those days to digg this issue a bit deeper. You know.. work and other my duties.
Sadly, that Mint is no longer as stable and unproblematic as it was before v18 and v19.
from viewnior.
Weirdly, viewnior can open webps on one of my computers but not the other. Both running gentoo. I can't figure it out.
from viewnior.
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.
from viewnior.
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 Couldn't recognise the image file format for file 'file.webp'
Could it be that I need to restart the system because even after installing webp-pixbuf-loader viewnior still uses the old gdk-pixbuf?
from viewnior.
I don't remember restarting.
from viewnior.
I don't remember restarting.
Then what could be the reason it is not working in my case? Any ideas?
from viewnior.
@Rava77 You installed it with sudo ninja -C builddir install
, right? That meson build script should have run sudo gdk-pixbuf-query-loaders --update-cache
to update /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
.
I guess you could check if it did by doing cat /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache | grep webp
, if it returns nothing, try running sudo gdk-pixbuf-query-loaders --update-cache
manually.
If it still doesn't work you have to check if the library is even installed, do a ls /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/
and make sure libpixbufloader-webp.so
is there.
Edit: the paths might be slighly different on Slackware.
from viewnior.
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.
from viewnior.
On Ubuntu 22 you can try the following:
add the PPA:
sudo add-apt-repository ppa:helkaluin/webp-pixbuf-loader
install the library:
sudo apt install webp-pixbuf-loader
from viewnior.
Related Issues (20)
- show full /path/to/file in titlebar instead of basename - how to? HOT 1
- show good part of truncated image file like feh does HOT 1
- [Solved] Just quit after del last image in folder
- Feature Request: /path/filename of current image to stdout HOT 3
- 'open image..' dialog, if selecting multiple images HOT 1
- [Feature request] Allow to set custom classes on windows spawned by viewnior HOT 1
- Meaning of "nior" ? HOT 2
- How to set an application for the "File/Edit With" menu? HOT 1
- Please Fix The File Permissions
- Question: Open New Image In Fullscreen? HOT 1
- Taking Screenshots - Images Viewed Are Blurry With Viewnior 1.8 HOT 2
- Use symbolic icons in toolbar
- Multi-touch trackpad support?
- Thank You for giving option Scrollbar!
- Document keyboard commands
- Can't click on link in About HOT 15
- Save as, again
- Viewnior doesn't work in a bash script HOT 1
- viewnior: error while loading shared libraries HOT 8
- Untranslated strings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viewnior.