From 2a51c8bdaa75d15b1642fc58da34317778c7d70f Mon Sep 17 00:00:00 2001 From: lancegin Date: Wed, 19 Jul 2017 17:31:45 +0800 Subject: [PATCH] fix: new version to fix https error --- TODO.md | 2 +- haishoku/__init__.py | 2 +- haishoku/haillow.py | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index 40b8f0c..bdcac46 100644 --- a/TODO.md +++ b/TODO.md @@ -24,4 +24,4 @@ 13. show the percentage information with the palette. ( √ ) -14. load image instance from a remote url. \ No newline at end of file +14. load image instance from a remote url. (√) \ No newline at end of file diff --git a/haishoku/__init__.py b/haishoku/__init__.py index 31d035e..881580a 100644 --- a/haishoku/__init__.py +++ b/haishoku/__init__.py @@ -1,3 +1,3 @@ # haishoki means blendent in Japanese, it will return the design works' palette. -__version__ = "1.1.4" \ No newline at end of file +__version__ = "1.1.5" \ No newline at end of file diff --git a/haishoku/haillow.py b/haishoku/haillow.py index 9051f22..319f325 100644 --- a/haishoku/haillow.py +++ b/haishoku/haillow.py @@ -10,7 +10,7 @@ def get_image(image_path): # if the image_path is a remote url, read the image at first - if image_path.startswith("http://"): + if image_path.startswith("http://") || image_path.startswith("https://"): image_path = io.BytesIO(urllib.request.urlopen(image_path).read()) image = Image.open(image_path) diff --git a/setup.py b/setup.py index 434eb05..28cf448 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='1.1.4', + version='1.1.5', description='A development tool for grabbing the dominant color or representative color palette from an image.', long_description='Haishoku is a development tool for grabbing the dominant color or representative color palette from an image, it depends on Python3 and Pillow.',