Renders fine outside of tmux, but both image (jpg) and pdfs fail to render (after measuring has successfully occured). Example below is for the start of a pdf file:

Forcing -kitty rendering results in the following:

However, running terminal_dimensions returns the correct values.
As an aside, very cool tool! To get it working on Ubuntu 16.04, I had to take a couple of extra steps to get it to play nice with some PDF files (which may or may not be worth mentioning in the readme; happy to do a PR). It seems ubuntu's ghostscript package doesn't link with freetype anymore, so I had to download the latest ghostscript and replace my gs file in /usr/bin with the downloaded file.
Renders fine outside of tmux, but both image (jpg) and pdfs fail to render (after measuring has successfully occured). Example below is for the start of a pdf file:

Forcing -kitty rendering results in the following:

However, running terminal_dimensions returns the correct values.
As an aside, very cool tool! To get it working on Ubuntu 16.04, I had to take a couple of extra steps to get it to play nice with some PDF files (which may or may not be worth mentioning in the readme; happy to do a PR). It seems ubuntu's ghostscript package doesn't link with freetype anymore, so I had to download the latest ghostscript and replace my
gsfile in/usr/binwith the downloaded file.