Updated to Pillow 2.3.0
This commit is contained in:
1 parent
6bdb0ab942
commit
8fbe558f65
4 files changed
+30
-18
No files matched your search
@@ -24,7 +24,6 @@ You can find the latest released binary at the following links:
|
|||||||
- **Windows:** [http://kcc.vulturis.eu/Windows/](http://kcc.vulturis.eu/Windows/)
|
- **Windows:** [http://kcc.vulturis.eu/Windows/](http://kcc.vulturis.eu/Windows/)
|
||||||
- **Linux:** [http://kcc.vulturis.eu/Linux/](http://kcc.vulturis.eu/Linux/)
|
- **Linux:** [http://kcc.vulturis.eu/Linux/](http://kcc.vulturis.eu/Linux/)
|
||||||
- **OS X (10.8 or later):** [http://kcc.vulturis.eu/OSX/](http://kcc.vulturis.eu/OSX/)
|
- **OS X (10.8 or later):** [http://kcc.vulturis.eu/OSX/](http://kcc.vulturis.eu/OSX/)
|
||||||
- **OS X (10.7 or earlier):** Soon™
|
|
||||||
|
|
||||||
## INPUT FORMATS
|
## INPUT FORMATS
|
||||||
**KCC** can understand and convert, at the moment, the following input types:
|
**KCC** can understand and convert, at the moment, the following input types:
|
||||||
@@ -43,7 +42,7 @@ You can find the latest released binary at the following links:
|
|||||||
### For compiling/running from source:
|
### For compiling/running from source:
|
||||||
- Python 2.7 - Included in MacOS and Linux, follow the [official documentation](http://www.python.org/getit/windows/) to install on Windows.
|
- Python 2.7 - Included in MacOS and Linux, follow the [official documentation](http://www.python.org/getit/windows/) to install on Windows.
|
||||||
- [PyQt4](http://www.riverbankcomputing.co.uk/software/pyqt/download) - Please refer to official documentation for installing into your system.
|
- [PyQt4](http://www.riverbankcomputing.co.uk/software/pyqt/download) - Please refer to official documentation for installing into your system.
|
||||||
- [Pillow](http://pypi.python.org/pypi/Pillow/) 2.2.1+ - For comic optimizations. Please refer to official documentation for installing into your system.
|
- [Pillow](http://pypi.python.org/pypi/Pillow/) 2.3.0+ - For comic optimizations. Please refer to official documentation for installing into your system.
|
||||||
- [Psutil](https://code.google.com/p/psutil/) - Please refer to official documentation for installing into your system.
|
- [Psutil](https://code.google.com/p/psutil/) - Please refer to official documentation for installing into your system.
|
||||||
- **To build OS X release you need a modified QT:** [patch](https://github.com/ciromattia/kcc/blob/master/other/QT-4.8.5-QListWidget.patch)
|
- **To build OS X release you need a modified QT:** [patch](https://github.com/ciromattia/kcc/blob/master/other/QT-4.8.5-QListWidget.patch)
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,27 @@ from optparse import OptionParser, OptionGroup
|
|||||||
from multiprocessing import Pool, freeze_support
|
from multiprocessing import Pool, freeze_support
|
||||||
from xml.dom.minidom import parse
|
from xml.dom.minidom import parse
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
try:
|
||||||
|
# noinspection PyUnresolvedReferences
|
||||||
|
from PIL import Image
|
||||||
|
if tuple(map(int, ('2.3.0'.split(".")))) > tuple(map(int, (Image.PILLOW_VERSION.split(".")))):
|
||||||
|
print "ERROR: Pillow 2.3.0 or newer is required!"
|
||||||
|
if sys.platform.startswith('linux'):
|
||||||
|
import Tkinter
|
||||||
|
import tkMessageBox
|
||||||
|
importRoot = Tkinter.Tk()
|
||||||
|
importRoot.withdraw()
|
||||||
|
tkMessageBox.showerror("KCC - Error", "Pillow 2.3.0 or newer is required!")
|
||||||
|
exit(1)
|
||||||
|
except ImportError:
|
||||||
|
print "ERROR: Pillow is not installed!"
|
||||||
|
if sys.platform.startswith('linux'):
|
||||||
|
import Tkinter
|
||||||
|
import tkMessageBox
|
||||||
|
importRoot = Tkinter.Tk()
|
||||||
|
importRoot.withdraw()
|
||||||
|
tkMessageBox.showerror("KCC - Error", "Pillow 2.3.0 or newer is required!")
|
||||||
|
exit(1)
|
||||||
try:
|
try:
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|||||||
+4
-8
@@ -31,27 +31,23 @@ from multiprocessing import Pool, freeze_support
|
|||||||
try:
|
try:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
from PIL import Image, ImageStat
|
from PIL import Image, ImageStat
|
||||||
if tuple(map(int, ('2.2.1'.split(".")))) > tuple(map(int, (Image.PILLOW_VERSION.split(".")))):
|
if tuple(map(int, ('2.3.0'.split(".")))) > tuple(map(int, (Image.PILLOW_VERSION.split(".")))):
|
||||||
print "ERROR: Pillow 2.2.1 or newer is required!"
|
print "ERROR: Pillow 2.3.0 or newer is required!"
|
||||||
if sys.platform.startswith('linux'):
|
if sys.platform.startswith('linux'):
|
||||||
#noinspection PyUnresolvedReferences
|
|
||||||
import Tkinter
|
import Tkinter
|
||||||
#noinspection PyUnresolvedReferences
|
|
||||||
import tkMessageBox
|
import tkMessageBox
|
||||||
importRoot = Tkinter.Tk()
|
importRoot = Tkinter.Tk()
|
||||||
importRoot.withdraw()
|
importRoot.withdraw()
|
||||||
tkMessageBox.showerror("KCC - Error", "Pillow 2.2.1 or newer is required!")
|
tkMessageBox.showerror("KCC - Error", "Pillow 2.3.0 or newer is required!")
|
||||||
exit(1)
|
exit(1)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "ERROR: Pillow is not installed!"
|
print "ERROR: Pillow is not installed!"
|
||||||
if sys.platform.startswith('linux'):
|
if sys.platform.startswith('linux'):
|
||||||
#noinspection PyUnresolvedReferences
|
|
||||||
import Tkinter
|
import Tkinter
|
||||||
#noinspection PyUnresolvedReferences
|
|
||||||
import tkMessageBox
|
import tkMessageBox
|
||||||
importRoot = Tkinter.Tk()
|
importRoot = Tkinter.Tk()
|
||||||
importRoot.withdraw()
|
importRoot.withdraw()
|
||||||
tkMessageBox.showerror("KCC - Error", "Pillow 2.2.1 or newer is required!")
|
tkMessageBox.showerror("KCC - Error", "Pillow 2.3.0 or newer is required!")
|
||||||
exit(1)
|
exit(1)
|
||||||
try:
|
try:
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
|||||||
+4
-8
@@ -25,27 +25,23 @@ from sys import platform
|
|||||||
try:
|
try:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
from PIL import Image, ImageOps, ImageStat, ImageChops
|
from PIL import Image, ImageOps, ImageStat, ImageChops
|
||||||
if tuple(map(int, ('2.2.1'.split(".")))) > tuple(map(int, (Image.PILLOW_VERSION.split(".")))):
|
if tuple(map(int, ('2.3.0'.split(".")))) > tuple(map(int, (Image.PILLOW_VERSION.split(".")))):
|
||||||
print "ERROR: Pillow 2.2.1 or newer is required!"
|
print "ERROR: Pillow 2.3.0 or newer is required!"
|
||||||
if platform.startswith('linux'):
|
if platform.startswith('linux'):
|
||||||
#noinspection PyUnresolvedReferences
|
|
||||||
import Tkinter
|
import Tkinter
|
||||||
#noinspection PyUnresolvedReferences
|
|
||||||
import tkMessageBox
|
import tkMessageBox
|
||||||
importRoot = Tkinter.Tk()
|
importRoot = Tkinter.Tk()
|
||||||
importRoot.withdraw()
|
importRoot.withdraw()
|
||||||
tkMessageBox.showerror("KCC - Error", "Pillow 2.2.1 or newer is required!")
|
tkMessageBox.showerror("KCC - Error", "Pillow 2.3.0 or newer is required!")
|
||||||
exit(1)
|
exit(1)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "ERROR: Pillow is not installed!"
|
print "ERROR: Pillow is not installed!"
|
||||||
if platform.startswith('linux'):
|
if platform.startswith('linux'):
|
||||||
#noinspection PyUnresolvedReferences
|
|
||||||
import Tkinter
|
import Tkinter
|
||||||
#noinspection PyUnresolvedReferences
|
|
||||||
import tkMessageBox
|
import tkMessageBox
|
||||||
importRoot = Tkinter.Tk()
|
importRoot = Tkinter.Tk()
|
||||||
importRoot.withdraw()
|
importRoot.withdraw()
|
||||||
tkMessageBox.showerror("KCC - Error", "Pillow 2.2.1 or newer is required!")
|
tkMessageBox.showerror("KCC - Error", "Pillow 2.3.0 or newer is required!")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user