mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 03:06:14 +02:00
Fixed steganalysis parity to be compatible with RGBA images
This commit is contained in:
parent
064456e2a3
commit
2d74094dc3
3 changed files with 10 additions and 1 deletions
|
@ -31,7 +31,7 @@ def steganalyse(img: Image.Image) -> Image.Image:
|
|||
"""
|
||||
Steganlysis of the LSB technique.
|
||||
"""
|
||||
encoded: Image.Image = img.copy()
|
||||
encoded = Image.new(img.mode, (img.size))
|
||||
width, height = img.size
|
||||
for row in range(height):
|
||||
for col in range(width):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue