pil bug?
From: John Smith (asdf_at_asdf.com)
Date: 11/30/03
- Next message: Georgy Pruss: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Previous message: Jules Dubois: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Next in thread: Fredrik Lundh: "Re: pil bug?"
- Reply: Fredrik Lundh: "Re: pil bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 03:39:33 -0500
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
- Next message: Georgy Pruss: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Previous message: Jules Dubois: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Next in thread: Fredrik Lundh: "Re: pil bug?"
- Reply: Fredrik Lundh: "Re: pil bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|