mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Removed useless write functions.
This commit is contained in:
parent
39855a2008
commit
c0669e0f7a
3 changed files with 0 additions and 25 deletions
|
@ -125,11 +125,3 @@ def reveal(input_image_file):
|
|||
return "".join(bitab)[len(str(limit))+1:]
|
||||
img.close()
|
||||
return ""
|
||||
|
||||
def write(image, output_image_file):
|
||||
try:
|
||||
image.save(output_image_file)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
finally:
|
||||
image.close()
|
||||
|
|
|
@ -120,9 +120,3 @@ def reveal(input_image_file, generator):
|
|||
return "".join(bitab)[len(str(limit))+1:]
|
||||
|
||||
return ""
|
||||
|
||||
def write(image, output_image_file):
|
||||
try:
|
||||
image.save(output_image_file)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
|
|
@ -84,14 +84,3 @@ def reveal(input_image_file):
|
|||
index += 1
|
||||
img.close()
|
||||
return message
|
||||
|
||||
def write(image, output_image_file):
|
||||
"""
|
||||
"""
|
||||
try:
|
||||
image.save(output_image_file)
|
||||
except Exception as e:
|
||||
# If hide() returns an error (Too long message).
|
||||
print(e)
|
||||
finally:
|
||||
image.close()
|
||||
|
|
Loading…
Add table
Reference in a new issue