hehe correct cords, works but no time yet

This commit is contained in:
Shihaam Abdul Rahman 2022-09-08 22:38:09 +05:00
parent c29d7593d1
commit 946c53e26e
Signed by: shihaam
GPG Key ID: 3B007D22E5584980
3 changed files with 49 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
prayer_added.png

48
namaadhuvaguthu.sh Executable file
View File

@ -0,0 +1,48 @@
#!/bin/bash
INPUT=prayer.png
OUTPUT=prayer_added.png
DATE=$1
imagemagick(){
TIME=$1
PRAYER=$2
case $PRAYER in
fathis)
POSITION='+667+430'
;;
iruaraa)
POSITION='+429+430'
;;
mendhuru)
POSITION='+193+430'
;;
asr)
POSITION='+667+768'
;;
magrib)
POSITION='+429+768'
;;
isha)
POSITION='+193+768'
esac
if [ -f $OUTPUT ]
then
INPUT=$OUTPUT
fi
convert $INPUT \
-annotate $POSITION $TIME \
$OUTPUT
}
rm $OUTPUT
imagemagick $DATE fathis
imagemagick $DATE iruaraa
imagemagick $DATE mendhuru
imagemagick $DATE asr
imagemagick $DATE magrib
imagemagick $DATE isha

BIN
prayer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB