Skip to content

Commit

Permalink
Fix bug where mode optional argument did not function properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqcurate committed May 14, 2018
1 parent 3e1c7a7 commit 92a2aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steglsb.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, cover, secret, bits, outfile, mode=None):
self.outfile = outfile
self.cover = self._get_image(cover, 'cover')
if mode != None:
self.cover.convert(mode)
self.cover = self.cover.convert(mode.upper())
print('[*] Converted cover image mode to {}.'.format(self.cover.mode))
self.secret = self._get_image(secret, 'secret').convert(self.cover.mode)
print('[*] Converted secret image mode to {}.'.format(self.cover.mode))
Expand Down

0 comments on commit 92a2aa4

Please sign in to comment.