add manga_make to dotfiles
This commit is contained in:
		
							parent
							
								
									bc5e28723b
								
							
						
					
					
						commit
						163d60cca2
					
				
					 2 changed files with 16 additions and 0 deletions
				
			
		
							
								
								
									
										16
									
								
								local/bin/manga_maker
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										16
									
								
								local/bin/manga_maker
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| #!/bin/bash | ||||
| # turn cbz files created by manga_downloader.py into scrollable pdf's | ||||
| 
 | ||||
| input="$1" | ||||
| output="${input%.cbz}.pdf" | ||||
| 
 | ||||
| # unzipping the cbz | ||||
| image_files="$(mktemp)" | ||||
| unzip "$input" | sed -n 's/.*extracting: \(.*\)/\1/p' > "$image_files" | ||||
| 
 | ||||
| # makeing them pdf's | ||||
| cat "$image_files" <(echo "-compress jpeg") <(echo "$output") | xargs convert | ||||
| 
 | ||||
| cat "$image_files" | xargs rm | ||||
| rm "$image_files" | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Felix Van der Jeugt
						Felix Van der Jeugt