data/convert-icon: Support Pillow in addition to PIL
This commit is contained in:
parent
fb7a43cb4d
commit
429fa571c4
1 changed files with 7 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue