codecamp

Pillow 仅识别格式

BUFR

1.1.3 新版功能。

Pillow为BUFR文件提供了一个存根驱动程序。

要向应用程序添加读或写支持,请使用​ PIL.BufrStubImagePlugin.register_handler() ​。

FITS

1.1.5 新版功能。

Pillow为FITS文件提供了一个存根驱动程序。

要向应用程序添加读或写支持,请使用​ PIL.FitsStubImagePlugin.register_handler()​ 。

GRIB

1.1.5 新版功能。

Pillow为GRIB文件提供了一个存根驱动程序。

驱动程序要求文件以GRIB头开始。如果您有嵌入GRIB数据的文件,或者有多个GRIB字段的文件,那么您的应用程序必须在将文件句柄传递到Pillow之前找到头部。

要向应用程序添加读或写支持,请使用 ​PIL.GribStubImagePlugin.register_handler()​ 。

HDF5

1.1.5 新版功能。

Pillow为HDF5文件提供了一个存根驱动程序。

要向应用程序添加读或写支持,请使用​ PIL.Hdf5StubImagePlugin.register_handler()​。

MPEG

Pillow可以识别MPEG文件。


Pillow 只写格式
Pillow 文本锚点
温馨提示
下载编程狮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; }