ImageMagick - Add logo to image

By xngo on June 9, 2019

Using ImageMagick to add a logo to a picture is a matter of adding an overlay to the original picture. Here is the command to add Youtube play button at the bottom right corner of the image.

magick convert INPUT.jpg  play-btn-logo.png -gravity southeast -geometry +10+10 -composite OUTPUT.jpg
  • -gravity southeast tells it to place the overlay(play-btn-logo.png) in the bottom right corner.
  • -geometry +10+10 tells it to move the overlay(play-btn-logo.png) up from the bottom and over from the right by 10 pixels in each direction.

Output

Youtube play button at the bottom right corner

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.