remove blank page inside a multitiff

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
User avatar
magick
Site Admin
Posts: 11041
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-07-19T20:08:36-07:00

You can remove pages from a multipage TIFF if you know the relative page position. For example, assume a 5 page multipage TIFF image and the black page at position 2:
  • convert 'image.tif[0-1,3-4]' subset.tif

User avatar
magick
Site Admin
Posts: 11041
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-07-20T07:37:12-07:00

From the API you could use GetNumberColors() and if the number of colors is 1 you can assume a blank page.

Post Reply