A bash script using ImageMagick to add a logo to an image.
Find a file
2026-05-24 13:03:22 +00:00
LICENSE Initial commit 2026-05-24 12:32:53 +00:00
README.md README.md aktualisiert 2026-05-24 13:03:22 +00:00

addLogo

A bash script using ImageMagick to add a logo to an image. The logo position is percentage-based and resolution independent. So even if your images got different resolutions, the logo should be roughly in the same position keeping the same size. Extreme aspect ratios may lead to non-optimal placement.

Dependencies

Usage

Execute this script like this:
addlogo /path/to/image /path/to/logo resolution_in_pixels orientation
Example:
addlogo ./backdrop.jpg ~/images/logo.png 3840 bottom-left

Good to know:

  • The third argument resizes the main image to fit in a box of named pixels. But only if the image is larger than your argument, otherwise it will keep your current resolution and won't resize your image at all
  • The fourth argument overwrites the default orientation defined in the script itself
  • Edit this script with nano or a text editor of your choice to define the logo size, logo distance to the edges, compression settings and more
  • So addlogo ./backdrop.jpg ~/images/logo.png would work to if you don't want to resize your image