Halt processing when any ambiguous-transparency colors exist (#2093)

This commit is contained in:
Rangi
2026-09-16 04:03:56 +02:00
committed by GitHub
parent f4c6221eb1
commit 004749ea75
4 changed files with 18 additions and 4 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
error: Color #ff800080 is neither transparent (alpha < 16) nor opaque (alpha >= 240) (first seen at (0, 8))
Conversion aborted after 1 error
FATAL: Image contains 1 ambiguous color (neither transparent nor opaque)
Conversion aborted after 2 errors
+4
View File
@@ -0,0 +1,4 @@
error: Color #ff000080 is neither transparent (alpha < 16) nor opaque (alpha >= 240) (first seen at (0, 0))
error: Color #0000ff80 is neither transparent (alpha < 16) nor opaque (alpha >= 240) (first seen at (0, 4))
FATAL: Image contains 2 ambiguous colors (neither transparent nor opaque)
Conversion aborted after 3 errors
Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B