mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Solve mypy warning.
This commit is contained in:
parent
13f0fb8086
commit
a279b21a70
1 changed files with 2 additions and 4 deletions
|
@ -82,11 +82,9 @@ def hide(input_image_file: str,
|
|||
|
||||
# Save the new pixel
|
||||
if img.mode == 'RGBA':
|
||||
updated_pixel = (r, g, b, pixel[3])
|
||||
encoded.putpixel((col, row), (r, g, b, pixel[3]))
|
||||
else:
|
||||
updated_pixel = (r, g, b)
|
||||
|
||||
encoded.putpixel((col, row), updated_pixel)
|
||||
encoded.putpixel((col, row), (r, g, b))
|
||||
|
||||
index += 3
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue