mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Ignore the alpha component when revealing a message.
This commit is contained in:
parent
3b6be169b2
commit
0e18b2f95a
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ def reveal(
|
|||
while True:
|
||||
generated_number = next(generator)
|
||||
# color = [r, g, b]
|
||||
for color in img_list[generated_number][0:3]:
|
||||
for color in img_list[generated_number][:3]: # ignore the alpha
|
||||
buff += (color & 1) << (tools.ENCODINGS[encoding] - 1 - count)
|
||||
count += 1
|
||||
if count == tools.ENCODINGS[encoding]:
|
||||
|
|
Loading…
Add table
Reference in a new issue