TiffImagePlugin.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:ascii-art-py 作者: blinglnav 项目源码 文件源码
def _save_all(im, fp, filename):
    if not hasattr(im, "n_frames"):
        return _save(im, fp, filename)

    cur_idx = im.tell()
    try:
        with AppendingTiffWriter(fp) as tf:
            for idx in range(im.n_frames):
                im.seek(idx)
                im.load()
                _save(im, tf, filename)
                tf.newFrame()
    finally:
        im.seek(cur_idx)

#
# --------------------------------------------------------------------
# Register
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号