pil bug?

From: John Smith (asdf_at_asdf.com)
Date: 11/30/03


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



Relevant Pages

  • Re: code within libraries vs code within same project
    ... Is this a bug in System.Diagnostics.StackTrace? ... //the .dll do not appear to have all the info, particularly filename. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Common dialog control returns wrong filename
    ... It is caused by the listview generating a CDN_SELCHANGE: message when the listview area is clicked. ... This is not a bug per: se, but rather the way a listview works. ... : Remember too that Word and Excel do not use the Windows common dialogs, so: their custom implementation to duplicate the functionality of the real: common dialogs may circumvent the problem. ... sometimes:: returns a different filename from the name that is displayed on the ...
    (microsoft.public.vb.bugs)
  • Re: Tilde expansion on (Windows)files?
    ... that a tilde in a filename makes problems: ... internal representation of the string makes a difference is a bug. ... perhaps tried to cover too many points at once in the bug report. ... tilde is another issue altogether. ...
    (comp.lang.tcl)
  • Re: Guarantee Critical Regions in Portable code. Portable Semaphores?
    ... Parsing the filename is the last resort if your MP3 file is missing ... inherent FS bug. ... Observe that an Explorer window does not show the 8.3 ... on a FAT volume also suppresses these 8.3 orphans. ...
    (comp.arch.embedded)
  • Re: Portability issues with filenames provided by tkdnd
    ... a kubuntu bug since the output from ls also doubles the percent signs ... ls outputs a single percent sign in the filename ... I therefore suspect a bug in Kubuntu 8.04. ... so far I could find only one platform that doubles the percent sign in the filename, and this looks pretty much like a bug of this platform. ...
    (comp.lang.tcl)