mirror of
https://github.com/RekuNote/Hatenatools3.git
synced 2026-10-30 00:09:13 +00:00
Switched to frombytes rather than fromstring because fromstring is no longer supported.
This commit is contained in:
1 parent
6b4c402e8d
commit
f25b0730e9
1 file changed
+1
-1
@@ -583,7 +583,7 @@ def WriteImage(image, outputPath):
|
||||
# for x in xrange(len(image)):
|
||||
# out.append(DecAsc(image[x][y], 4))
|
||||
|
||||
out = Image.fromstring("RGBA", (len(image), len(image[0])), out)
|
||||
out = Image.frombytes("RGBA", (len(image), len(image[0])), out)
|
||||
|
||||
filetype = outputPath[outputPath.rfind(".")+1:]
|
||||
out.save(outputPath, filetype)
|
||||
|
||||
Reference in new issue
Block a user
