some cords fix
This commit is contained in:
parent
8fd076b9e0
commit
bc40f56198
@ -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
|
||||
}
|
||||
|
BIN
prayer.png
BIN
prayer.png
Binary file not shown.
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Loading…
x
Reference in New Issue
Block a user