Imagemagick Command to Add Watermark Image & Text as Overlay and Composite or Annotate on Images in
53 views
Jun 3, 2025
magick 1.jpg -font Arial-Bold -pointsize 100 -gravity center -fill white -annotate 45 "SAMPLE TEXT" output.jpg magick input.jpg watermark.png -gravity southeast -geometry +10+10 -composite output.jpg
View Video Transcript
0:00
uh hello guys welcome to this video So
0:02
in this video I will show you how to
0:04
overlay or composite or add text
0:08
watermark or image watermark on top of
0:10
your images right in the terminal itself
0:12
using an open-source package which is
0:14
image magic So as you can see we have a
0:17
image and we are actually adding this
0:19
watermark text rotated in the center of
0:22
the screen I will show this command to
0:24
you and also I have this logo present
0:27
logo.png png I will also be composing or
0:31
adding or annotating this text or image
0:34
on top of the image So there is this
0:37
open-source package here If you go to
0:39
Google and just type here image magic
0:42
the very first result which comes right
0:44
here you'll see that
0:47
uh it's a open-source library It's
0:49
completely free and you can simply
0:51
download this inside your Windows
0:53
machine I've already done that and it's
0:56
available for Linux Mac each operating
1:00
system So once you actually install this
1:03
it's available inside your command line
1:07
So let me first of all show you how to
1:11
add this watermark logo.png image on top
1:14
of my input image which is this one So
1:17
it's 1 JPG I will simply add this in the
1:21
center of the screen So just open your
1:23
terminal and just execute this command
1:27
Uh we simply access image magic by magic
1:32
1.jpg which is a file name So we simply
1:35
write like this After that we simply
1:37
specify the font So we will be using
1:40
this aerial bold
1:42
font And
1:47
then for watermark image we first of all
1:50
provide the logo png So here we are
1:53
specifying this image right here which
1:55
we need to add
1:57
logo.png After that we specify the
1:59
position here So
2:02
gravity
2:03
southeast
2:06
geometry So we specify the coordinates
2:08
here 10 + 10
2:11
And then we composite
2:14
dash composite output dot jpg So this
2:19
commands here basically adds this
2:21
watermark if you see watermark
2:25
image in the bottom of the screen here
2:28
If you
2:30
see So basically in this way you can add
2:33
your watermark
2:37
image like
2:39
this And uh now if you want to add this
2:42
on
2:45
the let's suppose you want to add
2:52
this in the center of the screen You can
2:55
execute this command which will actually
2:57
add this
3:00
watermark at the center of the
3:05
image So you can see that So this is
3:08
essentially this command here Uh magic
3:11
1.jpg logo png background none rotate 45
3:17
gravity center composite So we added
3:20
this watermark image right in the center
3:22
itself And then we also can add a
3:25
watermark text instead of a image We can
3:29
execute this
3:35
command
3:38
So this will add this You'll see
3:43
that instead of image it will add this
3:46
sample text You can change all these
3:49
options right here phone size color of
3:51
the text So let me change this from
3:56
black color to yellow color and uh
4:00
change the text here Sample text free
4:04
media
4:11
tools So in this easy way guys you can
4:14
annotate your images with text images as
4:16
watermark in image magic very simply
4:20
install this library and
4:23
uh I have given both these commands in
4:26
the description of this video So you can
4:28
actually copy these commands to play
4:30
with this and also check out my website
4:33
freemediatools.com
4:35
uh which contains thousands of tools
#Multimedia Software
#Skins
# Themes & Wallpapers
#Software