t
All checks were successful
Deploy WebSocket Server / deploy (push) Successful in 18s

This commit is contained in:
jeremygan2021
2026-03-05 21:27:12 +08:00
parent 1b2c55afc7
commit b79d45cf34
3 changed files with 12 additions and 3 deletions

View File

@@ -59,7 +59,10 @@ def image_to_tspl_commands(image_path):
# 白色像素(255) -> 不打印(0)
should_print = False
if pixel == 0: # Black
# 修正: 用户反馈打印颜色相反
# 原逻辑: pixel==0(黑) -> 1. 结果: 黑底白猫 (反色)
# 新逻辑: pixel!=0(白) -> 1.
if pixel != 0:
should_print = True
if should_print: