eclipse.platform.swt icon indicating copy to clipboard operation
eclipse.platform.swt copied to clipboard

Support for webp image format

Open tmssngr opened this issue 2 months ago • 2 comments

Is your feature request related to a problem? Please describe. Allow to load webp image format(s).

Describe the solution you'd like Just like support for png, jpeg, gif, bmp.

tmssngr avatar Nov 05 '25 09:11 tmssngr

I would assume you want webp (https://en.wikipedia.org/wiki/WebP) as webm is container format for various audio/video codecs thus totally out of scope for SWT.

With the previous said - SWT on Gtk can load it just fine already

Image

due to the fact that it relies on the system codecs for loading images. I don't see anyone implementing webp codec in swt , like it was done for other formats back in the day and codecs are stuck there. So best path forward would be for Windows and MacOS ports to add image support based on native codecs.

akurtakov avatar Nov 05 '25 10:11 akurtakov

I added some experiment here, but the format is not trivial:

  • https://github.com/laeubi/eclipse.platform.swt/pull/15

so if one wants to go that way it could be used as a skeleton and then further investigate how to implement the different decoders.

So the main question for e would be the usecase, if you just want to display some of them using the embedded browser might give good enough results.

laeubi avatar Nov 05 '25 14:11 laeubi