some cords fix

This commit is contained in:
Shihaam Abdul Rahman 2022-09-13 19:28:19 +05:00
parent 8fd076b9e0
commit bc40f56198
Signed by: shihaam
GPG Key ID: 3B007D22E5584980
2 changed files with 16 additions and 8 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
INPUT=PrayerFinal.png
INPUT=prayer.png
OUTPUT=prayer_added.png
PRAYERTIMES_CSV="male.csv"
DAY_OF_YEAR=$(($(date -d "@$(date +%s)" +%j) - 1))
@ -26,36 +26,44 @@ PRAYER=$2
case $PRAYER in
fathis)
POSITION='+685+430'
COLOR=white
;;
iruaraa)
POSITION='+440+430'
POSITION='+450+430'
COLOR=white
;;
mendhuru)
POSITION='+220+430'
POSITION='+215+430'
COLOR=white
;;
asr)
POSITION='+685+768'
COLOR=white
;;
magrib)
POSITION='+440+768'
POSITION='+450+768'
COLOR=white
;;
isha)
POSITION='+220+768'
POSITION='+215+768'
COLOR=white
;;
date)
POSITION='+430+130'
TIME=$(date +'%d-%M-%Y')
POSITION='+375+190'
TIME=$(date +'%d-%m-%Y')
COLOR='#AC5757'
esac
if [ -f $OUTPUT ]
then
INPUT=$OUTPUT
fi
echo Prayer=$PRAYER DayOfYear=$DAY_OF_YEAR Time=$TIME File=$INPUT Colour=$COLOR
convert $INPUT \
-font $PWD/CourierPrime.ttf \
-pointsize 48 \
-fill white \
-fill $COLOR \
-annotate $POSITION $TIME \
$OUTPUT
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB