From 51bf0700cfe4d20b8739fd3d4c88b98939a82a38 Mon Sep 17 00:00:00 2001 From: "Simon V. Lejel" Date: Mon, 18 Sep 2023 17:43:20 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20a=20watermark=20with=20title?= =?UTF-8?q?=20and=20copyright?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bing-download.sh | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 bing-download.sh diff --git a/bing-download.sh b/bing-download.sh old mode 100644 new mode 100755 index 20c7c84..bc089a5 --- a/bing-download.sh +++ b/bing-download.sh @@ -13,3 +13,5 @@ latest_image_copyright=$(echo $images | jq '.[0].copyright' | tr -d '"') # Get the image and write it to the defined folder 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";