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