tedshepherd[dot]net

Combine Images

Published:

I came across a need to combine two images together when I made a post about the Eegee’s Flavor of the month in July (watermelon).

When Eegees sends out the email announcing the flavor, it’s two images stacked and the lower one is a hyperlink to the app to order food. You’d think that the marketing team would use image mapping to make part of the image a hyperlink, but they made it two images and sit on top of one another.

That being said, I looked for a way to recombine the two images without have to re-encode it and I found that ImageMagick and do that with the ‘convert’ command.

1
2
# stack input1.jpg on top of input2.jpg and output to output.jpg
convert -append input1.jpg input2.jpg output.jpg

Luckily this did exactly what I needed it to do and stack the images one on top of the other.

: