Can JavaFX WebView show webp images?

5 days ago 7
ARTICLE AD BOX

I use JavaFX 26-ea+6 on Ubuntu 20.04 and it seems that WebView can't show webp images. This is my code:

public class TestFx extends Application { @Override public void start(Stage primaryStage) { WebView webView = new WebView(); webView.getEngine().load("https://www.bbc.com"); Scene scene = new Scene(webView, 800, 600); primaryStage.setTitle("BBC Browser"); primaryStage.setScene(scene); primaryStage.show(); } public static void main(String[] args) { launch(args); } }

And this is the result:

enter image description here


but generally images are shown as expected, for example youtube:

enter image description here

Is this a bug or WebView can't show webp images?

Read Entire Article