Skip to content
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

Support webp? #23

Closed
abcfy2 opened this issue Dec 26, 2016 · 34 comments
Closed

Support webp? #23

abcfy2 opened this issue Dec 26, 2016 · 34 comments

Comments

@abcfy2
Copy link

abcfy2 commented Dec 26, 2016

Will xviewer plan to support webp image?

@artik
Copy link

artik commented Mar 5, 2019

Any news about support of webp format?

@swiftech
Copy link

+1

@HotElectron
Copy link

bump

@josinaldobarbosa
Copy link

:/ not yet

@HoffmannP
Copy link

+1

@svastian99
Copy link

svastian99 commented Jan 8, 2020

Please! add the support for Webp files {as gThumb that apparently uses 'libwebp' librarie}

@navin09
Copy link

navin09 commented Feb 25, 2020

+1 Pretty please? With sugar on top?

@raniesantos
Copy link

The use of webp is slowly spreading, it would be good to have this feature now.

@thunderamur
Copy link

thunderamur commented May 5, 2020

I need this feature. Vote for this feature request!

@Arinelle
Copy link

Arinelle commented May 7, 2020

Yes please, this is becoming very handicapping!

@cptX
Copy link

cptX commented Sep 22, 2020

4 years since the first request? Are you planning to implement this soon? Webp format is used more and more nowadays!

@craigs100
Copy link

Please get webp sorted. There are web developers needing this. webp is now supported by the majority of browsers.

@mbnoimi
Copy link

mbnoimi commented Oct 15, 2020

+1

@iSWORD
Copy link

iSWORD commented Feb 3, 2021

I just built from source and installed libwebp6 and it seems to be working.. 🤔

@cptX
Copy link

cptX commented Feb 3, 2021

Have you build xviewer from source you mean? When is this going to be streamed to the repositories?

@iSWORD
Copy link

iSWORD commented Feb 3, 2021

Yeah I built xviewer from source then installed libwebp from repos.

It seems the support for webp is really basic though. Navigating with left and right keys doesn't show any other images than the one you opened initially and some webp images still fail to load.

I then updated to 20.1 and realized it is in the repos, but then I uninstalled xviewer and started using gthumb instead :(

@picarica
Copy link

is it supported? i am using newest 20.1 focal and yet i cant open .webp images even with libwebp6 installed

@craigs100
Copy link

I've given up and just use gThumb for svg's

@clefebvre
Copy link
Member

clefebvre commented May 14, 2021

This is upstream from us, it's not something we can fix in xviewer itself. The picture isn't loaded by xviewer directly but by GdkPixbufLoader.

See:

Once this is fixed upstream xviewer will be able to load webp pictures without any code changes. What we'll need to do though, when that happens, and depending on how it's done, is make xviewer accept the mimetype (that's really easy though) so that you can double-click the file to open xviewer.

In the meantime you can associate pix to webp images, it supports it well.

@iSWORD if you can shed more light on how you got this to work... I've got libweb 0.6.1-2 here and xviewer still fails to load that format, recompiling it doesn't help.

@iSWORD
Copy link

iSWORD commented May 16, 2021

@clefebvre I have no idea how I got it to work. I've been trying to reproduce it in a VM for two hours to no avail.

I still have my installation that got it to work, I'm not sure what to dump to help. My package list is HUGE and I have no clue what to leave out.

image

@cptX
Copy link

cptX commented May 17, 2021

Mine is version 2.4.3 and doesn't open it
image

Which linux version do you have?

@Hordeking
Copy link

I'm on Mint 20.1, xviewer 2.8.3. libwebp6 is installed, I'm getting nothing. Is this an issue with the package maintainer not building against the libwebp library possibly? I don't know who that is or I would ping them to loop them in.

@tudo75
Copy link

tudo75 commented Jul 11, 2021

This is upstream from us, it's not something we can fix in xviewer itself. The picture isn't loaded by xviewer directly but by GdkPixbufLoader.

See:

* https://bugzilla.gnome.org/show_bug.cgi?id=700751

* [/usr/bin/gdk-pixbuf-query-loaders is no more available in debian and ubuntu aruiz/webp-pixbuf-loader#9](https://github.com/aruiz/webp-pixbuf-loader/issues/9)

* https://bugs.launchpad.net/ubuntu/+source/gdk-pixbuf/+bug/1864215

* https://gitlab.gnome.org/GNOME/eog/-/issues/45

Once this is fixed upstream xviewer will be able to load webp pictures without any code changes. What we'll need to do though, when that happens, and depending on how it's done, is make xviewer accept the mimetype (that's really easy though) so that you can double-click the file to open xviewer.

In the meantime you can associate pix to webp images, it supports it well.

@iSWORD if you can shed more light on how you got this to work... I've got libweb 0.6.1-2 here and xviewer still fails to load that format, recompiling it doesn't help.

pqiv https://github.com/phillipberndt/pqiv seems to use gtk3 and gdk-pixbuf and is able to display webp images (with libwep installed). May they have found a working solution?

@tudo75
Copy link

tudo75 commented Jul 11, 2021

I tried this and seems to work
https://github.com/aruiz/webp-pixbuf-loader

iS8tZCw

@joka42
Copy link

joka42 commented Jul 28, 2021

@tudo75 what do you have to do in order to get it to work? (after building and installing as said in the readme?)

@tudo75
Copy link

tudo75 commented Jul 28, 2021

@joka42 I followed the build instruction for ubuntu (I'm on linux mint 20.2 xfce) and installed. you can check after install if file exist
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-webp.so
and
there are these lines

"/usr/lib/x86_64-linux-gnu/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" ""
"RIFFsizeWEBP" "    xxxx    " 100

in
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache

PS: I also compiled it under MSYS2 on windows without any problem

@joka42
Copy link

joka42 commented Jul 28, 2021

@tudo75 I am in Manjaro (Cinnamon) and I could find the libs in /usr/lib/gdk-pixbuf-2.0/... also the loaders.cache files contained the lines you mentioned, but still get the following error in xviewer:
image

Edit:
(also after a reboot)
Edit 2:
Ok, I got it, it only works with non-animated .webp images. That does only solve 5% of my problem. Thanks anyway! :-)

@tudo75
Copy link

tudo75 commented Sep 24, 2021

@joka42
there is a pull request for the webp-pixbuf-loader that add animated webp support
you can find it here
https://github.com/alanhaw/webp-pixbuf-loader
And here, there is the discussion
aruiz/webp-pixbuf-loader#30
I installed and tested it and worked with some animated images found after a rapid search

@haggen88
Copy link

haggen88 commented Nov 26, 2021

@clefebvre @JosephMcc @mtwebster
.
I followed the steps in this guide and webp-pixbuf-loader worked for me (Mint 20.2):

xviewer - webp support

@danielp96
Copy link

The guide haggen88 mentioned worked for me on Mint 20.3 and xviewer 3.2.4.
Webp files now show thumbnails on nemo and can be viewed on xviewer.

@artik
Copy link

artik commented Jan 11, 2022

It worked for me also, thanks @haggen88
Having it packaged in mint would be a good thing as this format starts to be quite spreaded

@joka42
Copy link

joka42 commented Jan 25, 2022

Thanks @tudo75 I built the repo from source and it works well with animated webp images in mint 20.3.

@joka42
Copy link

joka42 commented Feb 4, 2022

The open MR has been merged to also support animated webp images. Here is the latest release: https://github.com/aruiz/webp-pixbuf-loader/releases/tag/0.0.4

how to

install dependencies:
sudo apt install libwebp-dev libgdk-pixbuf2.0-dev libgtk-3-dev meson build-essential

build from source and install as described in the readme.md.

@haggen88
Copy link

haggen88 commented May 5, 2022

There are good news. It is part of the roadmap:
https://tree.taiga.io/project/linuxmint-linux-mint-21-1/us/216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests