Getting Started First, create a config file for Ranger in ~/.config/ranger called rc.conf cd ~/.config/ranger && touch rc.config Open the config file and add the following lines to it: set preview_images true set preview_images_method kitty Install the Pillow library using pip (Python’s package installer) pip install Pillow The image preview feature should be working now. If you’re getting an error, try following the steps below. ERROR: Image previews in kitty require PIL (pillow) First, check where Python is located on your computer using the which command.