pil bug?

John Smith asdf at asdf.com
Sun Nov 30 03:39:33 EST 2003


Hello, I don't know if this is a bug or not, but when you convert an image
from one mode to another, the object's filename gets lost in the conversion
process.

for example:

>>import Image
>>im = Image.open('someRGB.bmp')
>>im.filename
'someRGB.bmp'
>>im = im.convert('L')
>>im.filename

error: no attribute called filename

is this a bug?

The simple solution is to assign a new attribute called filename to the
newly converted object, but it seems like filenames should probably be
kept??

opinions?  suggestions?

thanks in advance






More information about the Python-list mailing list