Converting png P with alpha -> RGB -> RGBA crashes #514

e98cuenc opened this Issue Feb 4, 2014 · 2 comments

3 participants


If file is the name of a png paletted image with transparency (for example, this code crashes:'RGB').convert('RGBA')

with the error:

Traceback (most recent call last):
  File "./", line 6, in <module>
    im ='RGB').convert('RGBA')
  File "/home/vagrant/pillow/Pillow/PIL/", line 745, in convert
    return self._new(,['transparency']))
TypeError: an integer is required
Pillow member

I'm pretty sure that the root cause is the same as #510, first bullet point in this response: #510 (comment) .

Pillow member

Duplicate of #510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment