Switched to frombytes rather than fromstring because fromstring is no longer supported.

This commit is contained in:
WORD559 committed 2018-05-30 11:00:49 +01:00
1 parent 6b4c402e8d
commit f25b0730e9
1 file changed
+1 -1
+1 -1
View File
@@ -583,7 +583,7 @@ def WriteImage(image, outputPath):
# for x in xrange(len(image)): # for x in xrange(len(image)):
# out.append(DecAsc(image[x][y], 4)) # 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:] filetype = outputPath[outputPath.rfind(".")+1:]
out.save(outputPath, filetype) out.save(outputPath, filetype)