✨ Add a watermark with title and copyright
This commit is contained in:
parent
f411f2cc92
commit
51bf0700cf
1 changed files with 2 additions and 0 deletions
2
bing-download.sh
Normal file → Executable file
2
bing-download.sh
Normal file → Executable file
|
@ -13,3 +13,5 @@ latest_image_copyright=$(echo $images | jq '.[0].copyright' | tr -d '"')
|
||||||
# Get the image and write it to the defined folder
|
# Get the image and write it to the defined folder
|
||||||
wget $latest_image_url -O $1/defaultWithoutText.jpg
|
wget $latest_image_url -O $1/defaultWithoutText.jpg
|
||||||
|
|
||||||
|
# Add watermark to the image and save as new image in the defined folder
|
||||||
|
convert -pointsize 40 -stroke black -strokewidth 1 -fill white -gravity center -draw "text 0,1000 '$latest_image_title ($latest_image_copyright)'" "$1/defaultWithoutText.jpg" "$1/default.jpg";
|
||||||
|
|
Loading…
Reference in a new issue