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

Added support for webp image files.#348

Open
alexdw-mgzi wants to merge 1 commit into
xyb3rt:masterfrom
alexdw-mgzi:master
Open

Added support for webp image files.#348
alexdw-mgzi wants to merge 1 commit into
xyb3rt:masterfrom
alexdw-mgzi:master

Conversation

@alexdw-mgzi

Copy link
Copy Markdown

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

ropery commented Mar 10, 2019

Copy link
Copy Markdown

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

@xyb3rt

xyb3rt commented Mar 15, 2019

Copy link
Copy Markdown
Owner

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
Copy Markdown

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

@idnsunset

idnsunset commented Jul 5, 2020

Copy link
Copy Markdown

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

idnsunset commented Nov 29, 2020 via email

Copy link
Copy Markdown

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 <nrk@disroot.org>
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 <nrk@disroot.org>
Closes: #22282
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
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