Vote count:
0
So I'm pretty new to Python, and I'm trying to write a script that will convert from raw to png. This is what I have so far:
rawData = open('filename', 'r').read()
imgSize = (515, 515)
img = Image.fromstring(1, imgSize, rawData)
im.save('Test.png')
I keep getting an error message that says "[Errno 2] No such file or directory"
There's gotta be something terribly wrong with my code that I don't see. Anybody?
asked 38 secs ago
Aucun commentaire:
Enregistrer un commentaire