Skip to content

Commit

Permalink
data/convert-icon: Support Pillow in addition to PIL
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Apr 24, 2017
1 parent fb7a43c commit 429fa57
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions data/convert-icon
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ import re
try:
import Image
except ImportError:
print("WARNING: Could not update %s. Please install the Python Imaging library." % sys.argv[2])
sys.exit(0)
try:
from PIL import Image
except ImportError:
print("WARNING: Could not update %s. "
"Please install the Python Imaging library or Pillow."
% sys.argv[2])
sys.exit(0)


def convert_image(filename, output_filename):
Expand Down

0 comments on commit 429fa57

Please sign in to comment.