You need to convert the image to RGB mode.
Image.open('old.jpeg').convert('RGB').save('new.jpeg')
More Related Contents:
- How to install PIL with pip on Mac OS?
- How can I install PIL on mac os x 10.7.2 Lion
- Can’t install PIL after Mac OS X 10.9
- What is the difference between images in ‘P’ and ‘L’ mode in PIL?
- How to convert a PIL Image into a numpy array?
- Working with an Access database in Python on non-Windows platform (Linux or Mac)
- How to set Python’s default version to 3.x on OS X? [duplicate]
- How to install 2 Anacondas (Python 2 and 3) on Mac OS
- bash: pip: command not found
- Convert image from PIL to openCV format
- Too many different Python versions on my system and causing problems
- How to install pip for Python 3 on Mac OS X?
- Broken references in Virtualenvs
- Changing image hue with Python PIL
- Installing MySQL Python on Mac OS X
- How to Install and Use TkDnD with Python Tkinter on OSX?
- ImportError: No module named ‘selenium’
- Handling \r\n vs \n newlines in python on Mac vs Windows
- Image.fromarray just produces black image
- PIL rotate image colors (BGR -> RGB)
- Importing images from a directory (Python) to list or dictionary [closed]
- Multiple versions of Python on OS X Leopard
- Python import MySQLdb error – Mac 10.6
- How do you composite an image onto another image with PIL in Python?
- mysql-python installation problems (on mac os x lion)
- SSL error downloading NLTK data
- “SSL certificate verify failed” using pip to install packages
- Vim failing to compile with python on OS X
- Updating Python on Mac
- How to install NumPy for python 3.3.5 on Mac OSX 10.9