Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Added support for webp image files. #348

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexdw-mgzi
Copy link

I added support for viewing WebP image files using libwebp. Animation is implemented based on the existing GIF support. I have tested this with versions 0.5.2 and 1.0.2 of libwebp (the --enable-libwebpdemux configure option is required if building libwebp from source).

@ropery
Copy link

ropery commented Mar 10, 2019

Why not just install imlib2-webp? It adds WebP support to imlib2 and therefore anything that uses it to display images.

@xyb3rt
Copy link
Owner

xyb3rt commented Mar 15, 2019

This looks promising, but we also have to load the first frame in thumbnail mode. Can you refactor the code so that image and thumb code can use a shared function for the first frame and image mode then loads the rest of them like the gif loader?
@lolilolicon There is no multi-frame support in imlib2, so we need this for webp animations as we do for gif.

@guidocella
Copy link

imlib2 1.6 added webp support, so sxiv can already load webp thumbnails and single-frame images without further changes.

@idnsunset
Copy link

idnsunset commented Jul 5, 2020

imlib2 1.6 added webp support, so sxiv can already load webp thumbnails and single-frame images without further changes.

I still get "Error opening image" with imlib2.1.6+ when opening multi-frame webp images, not as expected that the first frame gets loaded as with imlib2-webp.

@idnsunset
Copy link

idnsunset commented Nov 29, 2020 via email

N-R-K added a commit to N-R-K/gentoo that referenced this pull request Sep 13, 2021
since imlib2 supports webp, sxiv does too.
see: xyb3rt/sxiv#348 (comment)

Signed-off-by: Nickolas Raymond Kaczynski <[email protected]>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Sep 13, 2021
since imlib2 supports webp, sxiv does too.
see: xyb3rt/sxiv#348 (comment)

Signed-off-by: Nickolas Raymond Kaczynski <[email protected]>
Closes: #22282
Signed-off-by: Georgy Yakovlev <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants