detect and use frame disposal method

closes #2037
This commit is contained in:
Akshay Arora 2014-07-13 01:37:24 +05:30
parent 9872fe3b30
commit b026afc125
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ class ImageLoaderPIL(ImageLoaderBase):
while True:
img_tmp = im
img_tmp = self._img_correct(img_tmp)
if img_ol:
bg = im.info.get('background', 0) == 0
if bg and img_ol:
# paste new frame over old so as to handle
# transparency properly
img_ol.paste(img_tmp, (0, 0), img_tmp)