如何将TIF图像加载到Flutter Web中?
如何将.tif映像读取为图像小部件的颤音中的图像?
由于默认情况下不支持TIF,因此有任何可以加载和解码TIF图像的软件包或方法?
How can i read a .tif image as a Image widget in flutter?
Since tif is not supported by default in flutter, there is any package or method that can load and decode a tif image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一段时间以前看到了这种问题...
您可以解码图像并将其编码为PNG,
然后像您可以在图像中显示PNG一样。
干杯!!
Saw this kind of question some time ago...
You can decode the image and encode it as png like
You can then display the png in Image.
Cheers!!
如果响应数据是字符串,则此代码段适合我
If the response data is String, this code snippet work for me
您可以使用图像包进行。
但是,当我使用上述方法时,它不断提及不存在文件路径。因此,我更改了一些方法,并使用了以下方法。
我必须使用root Bundle读取文件,将其转换为UINT8LIST,因为DECODE函数仅读取UINT8LIST,然后用函数解码读取它。
希望它有帮助。
You can use the image package to do it.
But when I used the above method, it keep mentioning that the file path does not exist. So, I changed a bit and used the following method.
I have to read the file using root bundle, converting it to Uint8List as decode function only read Uint8List, then read it with the function decodeTiff.
Hope it helps.