phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #01107
[Bug 529544] [NEW] Alpha channel of interlaced PNG's gets lost.
Public bug reported:
PIL 1.1.6 can't read interlaced PNGs:
In [1]: import Image
In [2]: apple = Image.open('ap
apple.png apply
In [2]: apple = Image.open('apple.png')
In [3]: apple.load()
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
/home/stani/Downloads/actionlist/<ipython console> in <module>()
/usr/lib/python2.6/dist-packages/PIL/ImageFile.pyc in load(self)
153 self.map = None
154
--> 155 self.load_prepare()
156
157 # look for read/seek overrides
/usr/lib/python2.6/dist-packages/PIL/PngImagePlugin.pyc in load_prepare(self)
335
336 if self.info.get("interlace"):
--> 337 raise IOError("cannot read interlaced PNG files")
338
339 ImageFile.ImageFile.load_prepare(self)
IOError: cannot read interlaced PNG files
Therefore we use Imagemagick. Unfortunately the transparency or alpha
channel gets lost. We should try to fix this.
** Affects: phatch
Importance: Medium
Status: Confirmed
** Tags: imagemagick
--
Alpha channel of interlaced PNG's gets lost.
https://bugs.launchpad.net/bugs/529544
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.
Status in Phatch = Photo & Batch!: Confirmed
Bug description:
PIL 1.1.6 can't read interlaced PNGs:
In [1]: import Image
In [2]: apple = Image.open('ap
apple.png apply
In [2]: apple = Image.open('apple.png')
In [3]: apple.load()
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
/home/stani/Downloads/actionlist/<ipython console> in <module>()
/usr/lib/python2.6/dist-packages/PIL/ImageFile.pyc in load(self)
153 self.map = None
154
--> 155 self.load_prepare()
156
157 # look for read/seek overrides
/usr/lib/python2.6/dist-packages/PIL/PngImagePlugin.pyc in load_prepare(self)
335
336 if self.info.get("interlace"):
--> 337 raise IOError("cannot read interlaced PNG files")
338
339 ImageFile.ImageFile.load_prepare(self)
IOError: cannot read interlaced PNG files
Therefore we use Imagemagick. Unfortunately the transparency or alpha channel gets lost. We should try to fix this.
Follow ups
References