A Python desktop application for grayscale image conversion, batch processing, preview, and export. The interface is built with CustomTkinter and supports drag-and-drop and clipboard image input.
- Seven selectable grayscale modes: Rec. 601, Rec. 709, Rec. 2100, Gamma-corrected Rec. 709, CIE Lab* L*, HSL Lightness, and HSV Value.
- Single-image and batch processing.
- 8-bit and 16-bit grayscale output.
- PNG, TIFF, JPEG, WEBP, BMP, and optional HEIC/HEIF support.
- Transparency handling for supported output formats.
- Export controls for format, bit depth, DPI, and metadata options.
- Before/after preview, drag-and-drop, and clipboard input.
- Python 3.8 or newer
- Dependencies listed in
requirements.txt - Windows is the currently documented/tested desktop environment.
- HEIC/HEIF support requires
pillow-heifand compatible codec support.
git clone https://github.com/jayeshmepani/PrecisionGrayscaleConverter.git
cd PrecisionGrayscaleConverter
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
python main.pyThe repository includes PyInstaller build files under build_scripts/.
cd build_scripts
.\build.batThe manual build path is also available:
pip install pyinstaller
pyinstaller --onefile --windowed --name PrecisionGrayscaleConverter --icon=icon.ico main.pyThe generated executable is placed in PyInstaller's dist/ directory.
- HEIC/HEIF support is optional.
- 16-bit PNG with alpha is not supported by the documented desktop export path; alpha is discarded in that case.
- ICC-profile discovery uses the Windows system color-profile directory when available.
- Different grayscale modes implement different colour transforms and should not be described as numerically equivalent.
MIT. See LICENSE.