codecamp

Pillow ExifTags模块

这个 ​ExifTags ​模块公开了两个字典,为各种众所周知的exif标签提供常量和明文名称。

PIL.ExifTags.TAGS: dict

TAG 字典将16位整数 EXIF 标记枚举映射到描述性字符串名称。例如:

>>> from PIL.ExifTags import TAGS
>>> TAGS[0x010e]
'ImageDescription'
PIL.ExifTags.GPSTAGS: dict

GPSTAGS 字典将8位整数 EXIF gps 枚举映射到描述性字符串名称,例如:

>>> from PIL.ExifTags import GPSTAGS
>>> GPSTAGS[20]
'GPSDestLatitude'


Pillow ImageWin模块(仅限Windows)
Pillow TiffTags模块
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

Pillow 参考

Pillow ImageChops模块

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }