Skip to content

Instantly share code, notes, and snippets.

@quark-zju
quark-zju / epd-dither-resize-spectra6.py
Last active April 16, 2026 13:06
Process image for spectra 6 color e-ink display (Waveshare ESP32-S3 PhotoPainter) use-cases
#!/usr/bin/env python3
"""
Script to generate BMP images used by waveshare's ESP32-S3-PhotoPainter
ESP32-S3-PhotoPainter: https://www.waveshare.com/wiki/ESP32-S3-PhotoPainter
Forked from waveshare's color tool: https://files.waveshare.com/wiki/common/ConverTo6c_bmp-7.3.zip
with changes:
- Rotate automatically.
- Adopted epdoptimize's real-world colors: https://github.com/Utzel-Butzel/epdoptimize