How can I preview image data urls in linux (e.g. data:image/png;base64, <data>)?
0
votes
2
answers
449
views
I opened some json-based configuration file and I see that there is a
favicon
key whose value is a [data url](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs#datatextplainbase64sgvsbg8sifdvcmxkiq) representing a png
:
"favicon": "data:image/png;base64,iVBORw...
I am looking for a way to preview this data url using command-line, e.g. by opening in [feh](https://feh.finalrewind.org/)
Is there an image viewer that supports this out of the box? Otherwise how should I pre-process image urls so that I can preview the corresponding images?
Ideally I want to have a command preview-image-url
to which I can pass an image urls via stdin or at least as a file argument.
Asked by Marinos An
(889 rep)
Oct 26, 2023, 07:43 AM
Last activity: Oct 26, 2023, 09:27 AM
Last activity: Oct 26, 2023, 09:27 AM