jliljebl / flowblade

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

Feature Request: Add webp Support to Flowblade #1163

Open CodeWithMa opened 2 weeks ago

CodeWithMa commented 2 weeks 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 2 weeks 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.