A modern desktop application for advanced grayscale image conversion, batch processing, and export, supporting high bit-depth, color profiles, and multiple formats.
- Single Image & Batch Processing: Convert one or many images at once.
- Multiple Grayscale Modes: BT.709, L*a*b* (L*), HSL (Lightness), HSV (Value), BT.601, BT.2100, Gamma.
- High Bit-Depth Support: 8-bit and 16-bit grayscale output.
- Alpha Channel Handling: Preserve transparency for supported formats.
- Advanced Export Options: Choose format, bit depth, color profile, DPI, and metadata handling.
- Drag & Drop: Quickly add files for batch processing.
- Clipboard Support: Load images directly from the clipboard.
- Modern UI: Built with CustomTkinter.
- PNG (8/16-bit, with/without alpha)
- TIFF (8/16-bit, with/without alpha)
- JPEG
- WEBP
- BMP
- HEIC/HEIF (if
pillow-heifis installed)
- Python 3.8+
- Windows OS (tested)
- CustomTkinter
- Pillow
- numpy
- tifffile
- imageio
- opencv-python-headless
- pillow-heif (optional, for HEIC/HEIF)
- tkinterdnd2
Install all dependencies:
pip install -r requirements.txtcustomtkinter
Pillow
numpy
tifffile
imageio
opencv-python-headless
pillow-heif
tkinterdnd2
- Run the application:
python main.py
- Use the UI to load images, select conversion mode, and export.
- For batch processing, add files and select an output folder.
You can generate a standalone Windows executable using PyInstaller. A build script and a spec file are provided.
Run the provided batch script from the build_scripts folder:
cd build_scripts
./build.batThis will install dependencies, build the executable, and place it in the main directory.
Alternatively, you can build manually with PyInstaller:
pip install -r requirements.txt
pip install pyinstaller
pyinstaller --onefile --windowed --name "PrecisionGrayscaleConverter" --icon=icon.ico main.pyThe executable will be found in the dist folder.
An NSIS installer script is provided in build_scripts/installer.nsi. After building the executable, use NSIS to generate an installer:
- Download and install NSIS.
- Open
installer.nsiin the NSIS compiler. - Compile to create a Windows installer
.exe.
- 16-bit PNG with alpha is not supported (alpha will be discarded).
- For HEIC/HEIF support, install
pillow-heif. - ICC profiles are loaded from the Windows system color folder if available.
MIT License
Enhanced Precision Grayscale Converter — by [Jayesh]