【问题标题】:Saving a multipage tiff using PIL使用 PIL 保存多页 tiff
【发布时间】:2016-11-15 00:37:16
【问题描述】:

可以使用 PIL 将多页 tiff 保存到文件中:im.save(filepath, save_all=True)。我的问题是如何将 numpy 数组列表转换为 PIL 识别的 im 对象。 im = PIL.Image.fromarray() 不接受列表。

【问题讨论】:

    标签: python numpy python-imaging-library tiff


    【解决方案1】:

    此功能刚刚添加到 Pillow v.4.1.0.dev0 https://github.com/python-pillow/Pillow/pull/2406

    还有一些其他库的其他解决方案。例如。带有 tifffile How to create a multiple frame image using Python PIL

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多