2012-10-16 00:26:38 +04:00
|
|
|
from PIL import Image
|
|
|
|
|
2014-08-28 15:44:19 +04:00
|
|
|
|
2012-10-16 00:26:38 +04:00
|
|
|
def version(module, version):
|
|
|
|
v = getattr(module.core, version + "_version", None)
|
|
|
|
if v:
|
|
|
|
print(version, v)
|
|
|
|
|
2018-03-03 12:54:00 +03:00
|
|
|
|
2012-10-16 00:26:38 +04:00
|
|
|
version(Image, "jpeglib")
|
|
|
|
version(Image, "zlib")
|
2018-10-25 11:36:49 +03:00
|
|
|
version(Image, "libtiff")
|
2012-10-16 00:26:38 +04:00
|
|
|
|
|
|
|
try:
|
|
|
|
from PIL import ImageFont
|
|
|
|
except ImportError:
|
|
|
|
pass
|
|
|
|
else:
|
|
|
|
version(ImageFont, "freetype2")
|
|
|
|
|
|
|
|
try:
|
|
|
|
from PIL import ImageCms
|
|
|
|
except ImportError:
|
|
|
|
pass
|
|
|
|
else:
|
|
|
|
version(ImageCms, "littlecms")
|