mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Revert "Fix saving images with added transparency"
This reverts commit cc439099c1
.
This commit is contained in:
parent
c6b484affa
commit
cb4f0f2b3c
|
@ -364,11 +364,6 @@ def getheader(im, palette=None, info=None):
|
||||||
for i in range(maxcolor):
|
for i in range(maxcolor):
|
||||||
s.append(o8(i) * 3)
|
s.append(o8(i) * 3)
|
||||||
|
|
||||||
if im.info.has_key('transparency'):
|
|
||||||
transparentIndex = im.info['transparency']
|
|
||||||
s.append('!' + o8(0xf9) + o8(4) + o8(1) + o8(0) + o8(0) +
|
|
||||||
o8(transparentIndex) + o8(0))
|
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def getdata(im, offset = (0, 0), **params):
|
def getdata(im, offset = (0, 0), **params):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user