mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 03:06:14 +02:00
chg: [RELEASE] Updated documentation, updated dependencies, and bumped version number.
This commit is contained in:
parent
ac66655ad8
commit
7ba387ecdc
6 changed files with 117 additions and 108 deletions
|
@ -34,7 +34,10 @@ def steganalyse(img: Image.Image) -> Image.Image:
|
|||
width, height = img.size
|
||||
for row in range(height):
|
||||
for col in range(width):
|
||||
r, g, b = img.getpixel((col, row))[0:3]
|
||||
if pixel := img.getpixel((col, row)):
|
||||
r, g, b = pixel[0:3]
|
||||
else:
|
||||
raise Exception("Error during steganlysis.")
|
||||
if r % 2 == 0:
|
||||
r = 0
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue