ojii / pymaging

Pure Python imaging library with Python 2.6, 2.7, 3.1+ support

Home Page:http://pymaging.rtfd.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I/O error on quickstart

jgillis opened this issue · comments

When trying to run the quickstart example,

from pymaging import Image

img = Image.open_from_path('myimage.png')
img = img.resize(300, 300)
img.save('resized.png')

the program halts with an I/O operation on closed file error.

It can be circumvented as follows:

Image.open(file('myimage.png','rb'))