Files
ComfyUI/tests-unit
Glary-Bot 7c3bca4258 Fix Draw Text Overlay on images with an alpha channel
The composite added a 3 channel overlay to the full input tensor, so a 4
channel image raised a RuntimeError.

Composite RGBA input with premultiplied source over, matching SRC_OVER in
porter_duff_composite. Text drawn over a transparent region now gains its
own coverage instead of vanishing, and the undefined colour under a
transparent pixel no longer darkens antialiased glyph edges. The 3 channel
path is unchanged.

CORE-393
2026-08-15 00:35:34 +00:00
..

Pytest Unit Tests

Install test dependencies

pip install -r tests-unit/requirements.txt

Run tests

pytest tests-unit/