This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user