Sorry for the late reply. I found it, I got the method from this blog post [1] initally. Also see [2].<p>However, I&#x27;m sad to say that when I tried this again rn, it didn&#x27;t work anymore. (I know for a fact it used to work great because I used to use it.)<p>The funny thing is, ranger&#x27;s image preview still works for me (same terminal and everything), so I guess one could start going through the ranger source code to see how they wrap w3mimagedisplay if they really wanted to.<p>I don&#x27;t really have the motivation for that though because, although I&#x27;m a heavy terminal user (and it would be nice), recently switching to emacs means a lot of my file management can be done with dired (an emacs package). And dired can do image previews quite nicely already [3] (I&#x27;m assuming provided you&#x27;re using GUI emacs^). ^^<p>^Emacs can fire up terminals inside it anyway, so using GUI emacs is not a problem for me, even though I&#x27;m heavily terminal orientated.<p>^^Although I think I prefer sxiv&#x27;s thumbnail mode for <i>browsing</i> directories full of images (as opposed to a few here and there).<p>[1]: <a href="http:&#x2F;&#x2F;blog.z3bra.org&#x2F;2014&#x2F;01&#x2F;images-in-terminal.html" rel="nofollow">http:&#x2F;&#x2F;blog.z3bra.org&#x2F;2014&#x2F;01&#x2F;images-in-terminal.html</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;hut&#x2F;ranger&#x2F;wiki&#x2F;Image-Previews" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hut&#x2F;ranger&#x2F;wiki&#x2F;Image-Previews</a><p>[3]: <a href="https:&#x2F;&#x2F;github.com&#x2F;ralesi&#x2F;ranger#screencast" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ralesi&#x2F;ranger#screencast</a>