hehe correct cords, works but no time yet
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					prayer_added.png
 | 
				
			||||||
							
								
								
									
										48
									
								
								namaadhuvaguthu.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										48
									
								
								namaadhuvaguthu.sh
									
									
									
									
									
										Executable 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
									
								
							
							
						
						
									
										
											BIN
										
									
								
								prayer.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 108 KiB  | 
		Reference in New Issue
	
	Block a user