This Python script automatically extracts the largest possible image from .rtti
binary files. It reads potential image dimensions, tries to extract corresponding image data, and saves the largest image it can find as a PNG file.
The script scans the binary contents of all .rtti
files for potential image dimension data. It attempts to read the image data based on these dimensions and, if successful, saves the largest valid image as a PNG file.
RawTherapee stores its thumbnails in a cache directory. The location of this cache directory differs between Windows and Linux.
C:\Users[YourUserName]\AppData\Local\RawTherapee\cache\
/home/[YourUserName]/.cache/RawTherapee/
Before running the script, you must have Python installed on your system along with the following libraries:
Pillow
for image handling.numpy
for efficient array operations.
These can be installed via pip with the following command:
pip install Pillow numpy
To use the script:
- Place the
thumb.py
script in the directory that contains your.rtti
files. - Open your command-line interface (CLI) and navigate to the directory where the script is located.
- Run the script with the following command:
python thumb.py