From f25b0730e9467b1100c1fa3e35301173032bf967 Mon Sep 17 00:00:00 2001 From: WORD559 Date: Wed, 30 May 2018 11:00:49 +0100 Subject: [PATCH] Switched to frombytes rather than fromstring because fromstring is no longer supported. --- PPM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PPM.py b/PPM.py index 2042e69..e56f436 100755 --- a/PPM.py +++ b/PPM.py @@ -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)