1
使用PIL:im.save(filepath, save_all=True)
可以将多页面tiff保存到文件中。我的问题是如何将numpy数组列表转换为由PIL识别的im对象。 im = PIL.Image.fromarray()
不接受列表。使用PIL保存多页面tiff
使用PIL:im.save(filepath, save_all=True)
可以将多页面tiff保存到文件中。我的问题是如何将numpy数组列表转换为由PIL识别的im对象。 im = PIL.Image.fromarray()
不接受列表。使用PIL保存多页面tiff
此功能只是加枕头v.4.1.0.dev0 https://github.com/python-pillow/Pillow/pull/2406
还有其他一些库其他解决方案。例如。与tifffile How to create a multiple frame image using Python PIL
一些其他的解决方案: [通过GIF(https://github.com/python-pillow/Pillow/issues/2401#issuecomment-280095355)。 [With tiffimageplugin](https://github.com/python-pillow/Pillow/issues/2191#issuecomment-274285059)。 – savfod