mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor update to bring up a legacy script to modern spec...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
7d85cfb0e0
commit
fe5db799d7
@ -2,7 +2,7 @@
|
||||
#=======================================================================
|
||||
|
||||
__version__ = '''0.0.01'''
|
||||
__sub_version__ = '''20140814025456'''
|
||||
__sub_version__ = '''20190322031416'''
|
||||
__copyright__ = '''(c) Alex A. Naanou 2011'''
|
||||
|
||||
|
||||
@ -205,7 +205,7 @@ def hash_gid(img, force=False):
|
||||
'''
|
||||
if type(img) in (str, unicode):
|
||||
img = Image.open(img)
|
||||
return sha.sha(img.tostring()).hexdigest()
|
||||
return sha.sha(img.tobytes()).hexdigest()
|
||||
|
||||
|
||||
#-----------------------------------------------------report_progress---
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user