What’s the best way to split a multi-page TIFF with python? PIL doesn’t seem to have support for multi-page images, and I haven’t found an exact port for libtiff for python. Would PyLibTiff be the way to go? Can somebody provide a simple example of how I could parse multiple pages within a TIFF?
Share
I do use ImageMagick as external program to convert multi-page fax into viewable PNGs:
does convert first page to PNG
aaa.tiff[1] would be second page, and so on.
Or to extract all images, do:
So, to just split one multi-page TIFF into many-page TIFF you would have to execute:
and then work with temporary files: /tmp/out-12345-*.tiff
However ImageMagick can do a lot of processing, so you can probably achieve your desired result in one command.