tags:

views:

109

answers:

1

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-page TIFF, but nothing about creating them.

Libraries would hopefully be available on Windows, for Python 2.6.

If there's some freeware out there which will do the trick, I wouldn't mind seeing it, but I was hoping I could accomplish this in Python.

+1  A: 

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: i_view32 /multitif=(c:\test.tif,c:\test1.bmp,c:\dummy.jpg) => Create multipage TIF (test.tif) from 2 other files New command line option: /append=tiffile Example: i_view32 c:\test.jpg /append=c:\test.tif => Open 'c:\test.jpg' and append it as (TIF) page to 'c:\test.tif'

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

Adriaan