Sublime Forum

How to view image from html webview?

#1

I was able to view the local image with absolute file path and also able to view the image with base64 format
this is the link of the image
https://i.scdn.co/image/cefc6a83e66f3ff38ecb01c274de558546080ead

How can I open image with such URL in minihtml preview ?

0 Likes

#2

minihtml can only display images from file://, res:// and data: URL’s, so in order to display an image from a URL like that, you’re going to need to first download the image to a local file and then rewrite the URL to point to wherever you put it.

4 Likes