如何在Raspberry PI支持webp图像上制作Web浏览器或webview? [英] How to make the web browser or webview on a Raspberry PI support webp images?

查看:93
本文介绍了如何在Raspberry PI支持webp图像上制作Web浏览器或webview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调查是否使用树莓派来驱动包含网页的多个显示器。网页上的图像使用srcset来支持不同大小的屏幕,并同时具有webp和jpg图像。在我的桌面计算机上,
应用程序正常运行并显示页面正常。但是在树莓派中,没有显示图像。做一些调试表明正在下载webp版本,但没有显示。

I'm currently investigating whether or not to use a raspberry pi to drive a number of displays containing a web page. The images on the web pages use srcset to support different sized screens, and have both webp and jpg images. On my desktop machine, the app works ok and displays the page fine. However on the raspberry pi, no images are displayed. Doing some debugging shows that the webp versions are being downloaded, but not displayed.

如果我手动编辑html以删除webp版本,图像显示正常。

If I manually edit the html to remove the webp versions, the images display ok.

为了支持webp图像,我需要做些什么吗?

Is there something I need to do in order to support webp images?

推荐答案

Hello Nick,

Hello Nick,

Windows IoT Core似乎不支持WebP图像格式。目前,您可以将图像转换为png,jpg / jpeg,svg或其他支持的格式,然后使用  CSS媒体将视图更改为变通方法。

It seems that Windows IoT Core does not support WebP image format. At the moment, you can convert the image to png,jpg/jpeg,svg or other supported format, and then use  CSS media to change the view as a workaround.

最好的问候,

Micahel


这篇关于如何在Raspberry PI支持webp图像上制作Web浏览器或webview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆