Image size in Ranger

16 views
Skip to first unread message

John Kitzmiller

unread,
May 19, 2025, 3:36:30 PMMay 19
to iterm2-discuss
How to control size of image preview in Ranger file manager? Image preview is working but the previews are thumbnail size and fill less than 10% of the right pane. iTerm2 was installed via Homebrew and shows as Build 3.5.14. and Ranger (1.9.4) is also a Homebrew install.

 `imgcat -W 80% -H 80% <some .jpg>` and other imgcat size parameters affect the image size in a plain iTerm2 window. I have tried some changes in the ranger config files (rc.conf, and scope.sh) to no avail. I apologize that this is more a ranger question than iterm2 ( or maybe imgcat?) but I'm casting about. Any redirect appreciated.

John Kitzmiller

unread,
May 28, 2025, 12:27:23 AMMay 28
to iterm2-discuss
The answer hides in plain sight. From rc.conf:

"This feature relies on the dimensions of the terminal's font.  By default, a
#   width of 8 and height of 11 are used.  To use other values, set the options
#   iterm2_font_width and iterm2_font_height to the desired values."

A few lines down one can change the values.

Sorry for the noise.

Reply all
Reply to author
Forward
0 new messages