saving file permission denied on windows

zombek at zombek at
Mon May 15 17:59:57 CEST 2006

I'm making a small program which takes a folder with images and
generates optimized normal-sized images and thumbnails using Python
Imaging Lbrary (PIL). The problem is here:
img =,file))
img = img.resize(self.imgSize)
# and here comes the error, "JPEG", optimize=1)

IOError: [Errno 13] Permission Denied

I don't know what's going on, I didn't have any problems with it in the
past. I tried to save it to a pre-made directory but the effect is the
same, so I don't think it's connected with os.mkdir.

More information about the Python-list mailing list