Image Watermark With Linux Mint TUT Example

Go down

Image Watermark With Linux Mint TUT Example

Post by jamied_uk on 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"
avatar
jamied_uk
Admin

Posts : 2439
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Image Watermark With Linux Mint TUT Example

Post by jamied_uk on 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"
avatar
jamied_uk
Admin

Posts : 2439
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Back to top

- Similar topics

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