Page 1 of 1

Color Overlay on page 1 of multi page bw tiff

Posted: 2012-09-19T13:41:25-07:00
by HarveyRock
I have a multi-page black & white tiff and I need to add a color overlay image to the first page only. The overlay image resolution and the multi-page image resolution are the same and both art tiffs. Using

convert ( ColorOverlay.tif MultiPageImage.TIF[0] -colors 256 -geometry +000+000 -compose multiply -composite ) result.tif

gives my a color overlay on the first page but no additional pages. If I reverse the overlay and the base image I get a single page black & white image.

As an extra added bonus, I actually need the output as a PDF, but one step at a time.

Thanks for your help

Re: Color Overlay on page 1 of multi page bw tiff

Posted: 2012-09-19T16:23:28-07:00
by fmw42
convert ( ColorOverlay.tif MultiPageImage.TIF[0] -colors 256 -geometry +000+000 -compose multiply -composite ) result.tif
You have selected out only the first frame and discarded all the rest. Try

convert ( ColorOverlay.tif MultiPageImage.TIF[0] -geometry +0+0 -compose multiply -composite -colors 256 ) MultiPageImage.TIF[1--1] result.tif

Or

convert MultiPageImage.TIF ( -clone 0 ColorOverlay.tif -geometry +0+0 -compose multiply -composite -colors 256 ) -swap 0,-1 +delete result.tif

see
http://www.imagemagick.org/Usage/basics/#list_ops
http://www.imagemagick.org/script/comma ... .php#stack (selecting frames)