Convert Multipage TIFF to Individual Single Pages with BigTIFF output allowed.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
murbano1
Posts: 1
Joined: 2015-12-16T15:09:18-07:00
Authentication code: 1151

Convert Multipage TIFF to Individual Single Pages with BigTIFF output allowed.

Post by murbano1 »

Dear Community,

I am working with histology TIFFs. Sometimes they are as big as 3 GBs. They are multipage tiffs (12 pages). My platform is Xubuntu with ImageMagick installed and up-to-date. I need to convert the multipage tiffs to single tiff files. I do, like this:

Code: Select all

sudo convert multipageimage.tif single%d.tif
It works. (input) multipageimage.tif --> (output) single0.tif, single1.tif,single2.tif, single3.tif... etc.

PROBLEM: during the process of extracting each page, an error is thrown: "TIFFAppendToStrip:Maximum TIFF file size exceeded," and this is because single2.tif has a total size that is greater than 3.99 GB, so it cannot be contained within the regular tiff file format. Unfortunately, single2.tif contains important information at high-resolution that is necessary when I move into a later image pyrimiding step in my workflow.

QUESTION: how do I convert multipageimage.tif into individual pages but tell ImageMagick that, when necessary, create a BigTiff file to accommodate.

I very much appreciate any help. Thank you very much for considering.

Sincerely,

mike
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert Multipage TIFF to Individual Single Pages with BigTIFF output allowed.

Post by fmw42 »

I am not an expert on BigTiff, but I suspect if you have installed the libtiff compatible with BigTiff (http://bigtiff.org/), it might happen automatically.
Post Reply