Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
imagemagick and multipage tiffs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1276
Location: Hamburg, Germany

PostPosted: Thu Nov 30, 2006 11:06 am    Post subject: imagemagick and multipage tiffs Reply with quote

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

_________________
etc-proposals, your friendly config file updater!
Back to top
View user's profile Send private message
gustafson
Guru
Guru


Joined: 12 Aug 2004
Posts: 408

PostPosted: Thu Nov 30, 2006 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1276
Location: Hamburg, Germany

PostPosted: Thu Nov 30, 2006 4:26 pm    Post subject: Reply with quote

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 ....
_________________
etc-proposals, your friendly config file updater!
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1248
Location: Adelaide/Australia

PostPosted: Thu May 30, 2013 1:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum