This article introduces how to create and generate images with watermarks from the command line (CLI) using ImageMagick, a command line tool for processing images from the command line.
convert -size 280x160 xc:none -fill grey \
-pointsize 24 \
-gravity NorthWest -draw "text 10,10 'https://fumiya.org'" \
-gravity SouthEast -draw "text 5,15 'https://fumiya.org'" \
-channel alpha -evaluate multiply 0.30 \
miff:- |\
composite -tile - /mnt/c/_sharex/Screenshots/2019-02/ShareX_ScreenShot_6740af35-df45-4114-84d7-1ce0a124f851.png wmark_text_tiled.png
- Original image
- Image with watermark
-pointsize 24 … Font size
-channel alpha -evaluate multiply 0.30 … opacity
References: