Image Overlay

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
mdt06042
Posts: 2
Joined: 2015-01-19T14:29:28-07:00
Authentication code: 6789

Image Overlay

Post by mdt06042 »

I have two tif images that I would like to merge together but I haven't been able to figure exactly how to do this. Both images are scanned images of 8.5x11 pages(2550x3300 pixels). One sheet has pre-printed text and boxes on a form and the other sheet just has the completed text. I would like to super impose the answers onto the pre-printed sheet. Does anyone know if this is possible? Thank you in advance for any help you can provide.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image Overlay

Post by fmw42 »

Is it black text on perfectly white background?

try something like (unix syntax)

Code: Select all

convert boxes_image.tif \( text_image.tif -fuzz XX% -transparent white \) -compose over -composite resultimage.jpg
Adjust the XX% as needed up from 0 to ensure you get all the white background as transparent, but not so much that the text gets affected.

If on windows leave off the \ before the parens.

Please always provide your version of IM and platform when asking questions.
mdt06042
Posts: 2
Joined: 2015-01-19T14:29:28-07:00
Authentication code: 6789

Re: Image Overlay

Post by mdt06042 »

Sorry about not including all the information. I am using Windows 7 and IM 6.9.0. It worked perfect! Thank you very much for such a quick reply.
Post Reply