View previous topic :: View next topic |
Author |
Message |
bmichaelsen Veteran
Joined: 17 Nov 2002 Posts: 1277 Location: Hamburg, Germany
|
Posted: Thu Nov 30, 2006 11:06 am Post subject: imagemagick and multipage tiffs |
|
|
Hi guys,
Im using imagemagick to merge a logo onto a tiff-file. Im using the compose command of imagemagick and it works fine for singlepage tiff files. However, on a multipage tiff there is a sideeffect: The pages are all merged ontop of each other. This is obviously not what I want. Is there a way to put a image on a single page of a multipage tiff, keeping it multipage?
Any help is greatly appreciated.
Yours, Björn
P.S.: Right now, Im using:
Code: | composite -compose multiply 1.tiff 2.tiff output.tiff |
|
|
Back to top |
|
|
gustafson Guru
Joined: 12 Aug 2004 Posts: 430
|
Posted: Thu Nov 30, 2006 2:38 pm Post subject: |
|
|
Why not split out the tiff pages into separate images, operate on the page of interest, and the append the pages back into a multi page tiff?
Try tiffsplit to split them, then convert --append to reassemble |
|
Back to top |
|
|
bmichaelsen Veteran
Joined: 17 Nov 2002 Posts: 1277 Location: Hamburg, Germany
|
Posted: Thu Nov 30, 2006 4:26 pm Post subject: |
|
|
Well, this also needs to work on win32 in an automated process. Adding libtiff and a multistep operation makes logging etc. much more complex.
Besides: Im pretty sure this is possible somehow directly with imagemagick .... |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1557 Location: Adelaide/Australia
|
Posted: Thu May 30, 2013 1:31 am Post subject: |
|
|
To manipulate a multi-page TIF image, for example, to delete a single page from a multi-page TIF.
Install ImageMagick (command line tools) and libtiff (also command line tools).
The following works on Windows as well as linux (gentoo packages are media-gfx/imagemagick and media-libs/tiff)
Execute the following Steps
- mkdir <uniqueDirectoryName>
- mv savedTiffImate.tiff <uniqueDirctoryName>\
- cd <uniqueDirectoryName>
- tiffsplit savedTiffImate.tiff # tiffsplit is a part of the media-libs/tiff package
- del xa?.tif where xa?.tif is the image that requires deletion
- convert -adjoin xa*.tif NewTifFilename.tif # convert is a part of ImageMagick)
- Use the NewTifFilename.tif as appropriate
_________________ ...Lyall |
|
Back to top |
|
|
|