I'm making desktop application with NW.js(node-webkit)
Based on this topic google chrome console, print image, print image I am trying to display image to console.
As suggested on the topic above, command below works nicely:
console.log('%c ', 'font-size:400px; background:url(https://pics.me.me/codeit-google-until-youfinda-stackoverflow-answerwith-code-to-copy-paste-34126823.png) no-repeat;');
The problem is, when I try exact same thing with local file url, such as
console.log('%c ', 'font-size:400px; background:url(./res/hoge.png) no-repeat;');
console.log('%c ', 'font-size:400px; background:url(file:///C:/Users/hoge/Pictures/hoge.png) no-repeat;');
console displays nothing.
I found similar question How to display local image to console? seems it has not been solved yet.
I tested with Base64 encoding and it worked for me: