本文整理匯總了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