How to modify a specific image from an multipage TIFF image

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
goodoldgames

How to modify a specific image from an multipage TIFF image

Post by goodoldgames »

Hello,

I have a multipage TIFF image consisting of three pages. I would like to rotate only page two and store all three pages into a new TIFF image.

Is their an easier way than the following one ?

convert --rotate 0 input.tif[0] --rotate 180 input.tif[1] --rotate 0 input.tif[2] output.tif

I don't want to specify all pages when the image has 100 pages and I only want to modify one page.

Bye

Claus
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to modify a specific image from an multipage TIFF image

Post by anthony »

Handling multiple image sequences is covered in IM examples under animations which is basically a multi-image sequence!!!

See Frame by Frame - modifying one frame at a time
http://imagemagick.org/Usage/anim_mods/#frame_mod

Specifically, read in the multi-image file, clone the image to be modified into parenthesis. modify it, then replace the original frame with the just modified version.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply