Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in demo #72

Open
jinyu121 opened this issue Nov 11, 2017 · 1 comment
Open

Error in demo #72

jinyu121 opened this issue Nov 11, 2017 · 1 comment

Comments

@jinyu121
Copy link

jinyu121 commented Nov 11, 2017

Hi~
I am running the demo, and error happens:

Demo for data/demo/2008_000533.jpg
forward time 0.203548
Traceback (most recent call last):
  File "./tools/demo.py", line 170, in <module>
    superimpose_image.save(superimpose_name, 'JPEG')
  File "/home/haoyu/py2/local/lib/python2.7/site-packages/PIL/Image.py", line 1928, in save
    save_handler(self, fp, filename)
  File "/home/haoyu/py2/local/lib/python2.7/site-packages/PIL/JpegImagePlugin.py", line 607, in _save
    raise IOError("cannot write mode %s as JPEG" % im.mode)
IOError: cannot write mode RGBA as JPEG

I have tried to add .png , remove JPEG, change JPEG into PNG, not working.

Anyone can tell me how to solve it? THX

@tuchengyuan
Copy link

According this post: python-pillow/Pillow#2724

you can execute:

sudo pip install pillow=4.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants