PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Image Watermark With Linux Mint TUT Example

Go down

Image Watermark With Linux Mint TUT Example Empty Image Watermark With Linux Mint TUT Example

Post by jamied_uk 24th April 2018, 17:07

Image Watermark With Linux Mint TUT Example



Code:
#!/bin/bash
# (c) J~Net 2018
#
# jnet.forumotion.com/t1605-image-watermark-with-linux-mint-tut-example#2461
#
# Usage ./wm.sh
#
echo "Input Image File Name"
read infilename
echo "Input Watermark Image File Name"
read wmfilename
# composite -dissolve 30% -gravity south watermark.jpg input-file.jpg output-file.jpg
composite -dissolve 30% -gravity south $wmfilename $infilename output-file.jpg
#
#
echo "File Saved To output-file.jpg"
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Image Watermark With Linux Mint TUT Example Empty Re: Image Watermark With Linux Mint TUT Example

Post by jamied_uk 24th April 2018, 17:42



Change username or add code to auto detect username! (this is easy to do so that can be your homework!


Code:
#!/bin/bash
# (c) J~Net 2018
#
# jnet.forumotion.com/t1605-image-watermark-with-linux-mint-tut-example#2461
#
# Usage ./wm.sh
#
# Setup:
usrname="jay"


# End Of Setup
#
echo "Input Image File Name"
read inimage
#echo "Input Watermark Image File Name"
#read wmfilename
# composite -dissolve 30% -gravity south watermark.jpg input-file.jpg output-file.jpg
# composite -dissolve 30% -gravity south $wmfilename $infilename output-file.jpg
#
# Default US Date Format +%Y-%m-%d %T
# Default UK Date Format +%T/%d/%m/%Y
#
convert -pointsize 20 -fill blue -draw "text 10,240 '$(date '+%T/%d/%m/%Y').jpg' " /home/$usrname/Documents/Scripts/WaterMarks/Images/Text_On_Image/$inimage /home/$usrname/Documents/Scripts/WaterMarks/Images/Text_On_Image/output-file.jpg;
#
echo "File Saved To output-file.jpg"
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum