How Can I Programmatically Build a Multi-Page TIFF out of Many Single Page TIFFs, Using Python?

后端 未结 3 649
囚心锁ツ
囚心锁ツ 2021-01-18 05:27

I\'ve found, via Google, numerous people asking the same question, but no solutions. The Python Image Library (PIL) has tools for stepping through an already existing multi

3条回答
  •  独厮守ぢ
    2021-01-18 06:04

    A freeware option: Irfanview can do it, even via the command line; this allows you to call it from Python.

    From changes version 3.90:

    New command line option:

    /multitif=(tifname,file1,...,fileN) 
    

    Example to create multipage TIF test.tif from 2 other files:

    i_view32 /multitif=(c:\test.tif,c:\test1.bmp,c:\dummy.jpg) 
    

    New command line option:

    /append=tiffile 
    

    Example to open c:\test.jpg and append it as (TIF) page to c:\test.tif

    i_view32 c:\test.jpg /append=c:\test.tif 
    

    I have used it once and know it works, though limitation on command line length apply.

提交回复
热议问题