本文整理汇总了Python中PIL.Image.VERSION属性的典型用法代码示例。如果您正苦于以下问题:Python Image.VERSION属性的具体用法?Python Image.VERSION怎么用?Python Image.VERSION使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类PIL.Image
的用法示例。
在下文中一共展示了Image.VERSION属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: pillow_version
# 需要导入模块: from PIL import Image [as 别名]
# 或者: from PIL.Image import VERSION [as 别名]
def pillow_version():
from PIL import Image
import PIL
pil_path = PIL.__path__
if len(PIL.__path__) > 1:
print('WARNING!!! THERE ARE MULTIPLE PILS! %r ' % PIL.__path__)
return module_stdinfo_dict(
Image, versionattr='PILLOW_VERSION', image_version=Image.VERSION, pil_path=pil_path)
#@checkinfo('1.3.1')
示例2: versions
# 需要导入模块: from PIL import Image [as 别名]
# 或者: from PIL.Image import VERSION [as 别名]
def versions():
"""
(pyCMS) Fetches versions.
"""
return (
VERSION, core.littlecms_version,
sys.version.split()[0], Image.VERSION
)
示例3: versions
# 需要导入模块: from PIL import Image [as 别名]
# 或者: from PIL.Image import VERSION [as 别名]
def versions():
"""
(pyCMS) Fetches versions.
"""
return (
VERSION, core.littlecms_version,
sys.version.split()[0], Image.VERSION
)
# --------------------------------------------------------------------
示例4: system
# 需要导入模块: from PIL import Image [as 别名]
# 或者: from PIL.Image import VERSION [as 别名]
def system():
"""
**SUMMARY**
Output of this function includes various informations related to system and library.
Main purpose:
- While submiting a bug, report the output of this function
- Checking the current version and later upgrading the library based on the output
**RETURNS**
None
**EXAMPLE**
>>> import SimpleCV
>>> SimpleCV.system()
"""
try :
import platform
print "System : ", platform.system()
print "OS version : ", platform.version()
print "Python version :", platform.python_version()
try :
from cv2 import __version__
print "Open CV version : " + __version__
except ImportError :
print "Open CV2 version : " + "2.1"
if (PIL_ENABLED) :
print "PIL version : ", pil.VERSION
else :
print "PIL module not installed"
if (ORANGE_ENABLED) :
print "Orange Version : " + orange.version
else :
print "Orange module not installed"
try :
import pygame as pg
print "PyGame Version : " + pg.__version__
except ImportError:
print "PyGame module not installed"
try :
import pickle
print "Pickle Version : " + pickle.__version__
except :
print "Pickle module not installed"
except ImportError :
print "You need to install Platform to use this function"
print "to install you can use:"
print "easy_install platform"
return