added font, corrected some cords
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								CourierPrime.ttf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								CourierPrime.ttf
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -2,8 +2,9 @@ | |||||||
|  |  | ||||||
| INPUT=prayer.png | INPUT=prayer.png | ||||||
| OUTPUT=prayer_added.png | OUTPUT=prayer_added.png | ||||||
|  |  | ||||||
| DATE=$1 | DATE=$1 | ||||||
|  | ISLAND=$2 | ||||||
|  | rm $OUTPUT > /dev/null | ||||||
|  |  | ||||||
| imagemagick(){ | imagemagick(){ | ||||||
| TIME=$1 | TIME=$1 | ||||||
| @@ -11,22 +12,22 @@ PRAYER=$2 | |||||||
|  |  | ||||||
| case $PRAYER in | case $PRAYER in | ||||||
| fathis) | fathis) | ||||||
| POSITION='+667+430' | POSITION='+685+430' | ||||||
| ;; | ;; | ||||||
| iruaraa) | iruaraa) | ||||||
| POSITION='+429+430' | POSITION='+440+430' | ||||||
| ;; | ;; | ||||||
| mendhuru) | mendhuru) | ||||||
| POSITION='+193+430' | POSITION='+220+430' | ||||||
| ;; | ;; | ||||||
| asr) | asr) | ||||||
| POSITION='+667+768' | POSITION='+685+768' | ||||||
| ;; | ;; | ||||||
| magrib) | magrib) | ||||||
| POSITION='+429+768' | POSITION='+440+768' | ||||||
| ;; | ;; | ||||||
| isha) | isha) | ||||||
| POSITION='+193+768' | POSITION='+220+768' | ||||||
| esac | esac | ||||||
|  |  | ||||||
| if [ -f $OUTPUT ] | if [ -f $OUTPUT ] | ||||||
| @@ -34,11 +35,14 @@ then | |||||||
| 	INPUT=$OUTPUT | 	INPUT=$OUTPUT | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  | echo Island=$ISLAND Prayer=$PRAYER Date=$DATE File=$OUTPUT | ||||||
| convert $INPUT \ | convert $INPUT \ | ||||||
|  | 	-font $PWD/CourierPrime.ttf \ | ||||||
|  | 	-pointsize 48 \ | ||||||
|  | 	-fill white \ | ||||||
| 	-annotate $POSITION $TIME \ | 	-annotate $POSITION $TIME \ | ||||||
| 	$OUTPUT | 	$OUTPUT | ||||||
| } | } | ||||||
| rm $OUTPUT |  | ||||||
|  |  | ||||||
| imagemagick $DATE fathis | imagemagick $DATE fathis | ||||||
| imagemagick $DATE iruaraa | imagemagick $DATE iruaraa | ||||||
| @@ -46,3 +50,5 @@ imagemagick $DATE mendhuru | |||||||
| imagemagick $DATE asr | imagemagick $DATE asr | ||||||
| imagemagick $DATE magrib | imagemagick $DATE magrib | ||||||
| imagemagick $DATE isha | imagemagick $DATE isha | ||||||
|  |  | ||||||
|  | feh $OUTPUT | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user