This tool converts standard images into a format compatible with cheap thermal paper cameras that save/print photos.
These cameras are very picky with file specs, so this script automatically adjusts external images to be accepted and shown in the camera.
- Converts any
.jpg,.jpeg,.png,.bmpto the exact specs required by the camera:- Resolution: 2048×1152 pixels
- Format: JPEG (RGB, 24 bits, no EXIF metadata)
- Naming: sequential
PHO00000.JPG,PHO00001.JPG, ...
- Auto-rotation for portrait images to better fit landscape format.
- Resizes and adds white padding when needed, to avoid stretching.
- Works with upscale too (small images are enlarged).
- Input folder:
originals/ - Output: files are placed directly in the root folder (e.g.,
D:\PHOTO) ready for the camera SD card.
📁 PHOTO
- FormatConverter.py
- 📁 originals # put your source images here
- PHO00000.JPG # converted files, ready for the camera
- PHO00001.JPG
- ...
-
Place the script (FormatConverter.py) inside your PHOTO folder (same root used by the camera).
-
Create a subfolder called originals/ and put your images there.
-
Run the script: python FormatConverter.py
📌 Notes
The camera usually refuses files that:
- Have EXIF metadata
- Don’t match the expected resolution
- Use a different naming scheme
- This script ensures all requirements are met.
- Default background color is white, but you can change it to black (line 6 of the script).
📜 License
This project is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0)