Image Watermark With Linux Mint TUT Example
Page 1 of 1
Image Watermark With Linux Mint TUT Example
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"
Re: Image Watermark With Linux Mint TUT Example
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"
Similar topics
» create an image of a usb device to image file using dd on linux
» Auto Change Background Image On Mint OS
» how to upgrade linux mint
» KDE 5 for Linux Mint 17 and other linux distros like open suse
» How To Use Linux Mint Extensions in any linux distro
» Auto Change Background Image On Mint OS
» how to upgrade linux mint
» KDE 5 for Linux Mint 17 and other linux distros like open suse
» How To Use Linux Mint Extensions in any linux distro
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|