Commit f749dbd
Billy DeFrain
fix in Ascii.terminal_artify() for PNGs with a transparent layer
getpixel() returns an int, intead of a tuple of ints, when the from_file
is a PNG with a transparency layer. This fix creates a tuple in that case,
so terminal_artify() can handle PNGs with a transparent layer.1 parent 0a36faa commit f749dbd
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
0 commit comments