Splitting 8-page Tiff into 7-Page

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
agnotorious
Posts: 2
Joined: 2017-07-19T11:58:54-07:00
Authentication code: 1151

Splitting 8-page Tiff into 7-Page

Post by agnotorious »

Hi all,

I have been searching through these forums but have yet to be able to find a solution to my issue.
I have multipage tiffs (8 pages) and I want to rewrite them into a 7 page tiff by extracting the last page and retaining the original file name. Is there a quick command I can use that would help with this? Much thanks,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Splitting 8-page Tiff into 7-Page

Post by fmw42 »

Code: Select all

convert image.tiff[0-6] newimage.tiff
This will keep the first 7 pages (numbers 0 to 6) and remove the last one and save the first 7 pages to the new image.
agnotorious
Posts: 2
Joined: 2017-07-19T11:58:54-07:00
Authentication code: 1151

Re: Splitting 8-page Tiff into 7-Page

Post by agnotorious »

That's amazing. I had no clue you could do it that simply. Thanks!
Post Reply