jliljebl / flowblade

Video Editor for Linux
GNU General Public License v3.0
2.68k stars 181 forks source link

Feature Request: Add webp Support to Flowblade #1163

Open CodeWithMa opened 5 months ago

CodeWithMa commented 5 months ago

I've got some images in webp format and I'm tired of converting them to JPEG or PNG just to use them. It would be a huge time-saver if webp support was added.

jliljebl commented 5 months ago

I did a quick test if to see if adding .webp files to accepted media files list would do the trick, but after successfully loading a .webp graphic it failed to produce any useful image, all I got was full white.

It is probable that making this happen would require making Gdk.Pixbuf (which Flowblade uses to support graphics images) support .webp, and it is almost certain that maintainers of that lib are not willing to do that, there has been even talk of deprecating it.

From this page: https://stackoverflow.com/questions/7704670/what-image-formats-are-supported-by-gdk-pixbuf-gtk-image-by-default I got a list of supported image formats for Gdk.Pixbuf and .webp is not on the list.

ani
bmp
GdkPixdata
gif
icns
ico
jpeg
png
pnm
qtif
svg
tga
tiff
wmf
xbm
xpm

I'll give this one more look later in the cycle, but right now it looks that this can't be done.

Surfoo commented 3 months ago

SO's commentary dates back to 2011.

Here a comment from devs of gdk-pixbuf: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/103