Last active
October 31, 2021 10:05
-
-
Save nottux/a2ce62547cf61080ac307625b01bdacd to your computer and use it in GitHub Desktop.
tachiyomi pdf creator in bash (beta)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo run me in manga root folder \(folder with the manga name\) to create a pdf where landscape images are rotated 90 degrees. Uncomment line 3 to not do any rotation. This script omits .gif files | |
for file in */*; do if [ $(identify -format '%[fx:(w/h>1)?1:0]' "$file") = 1 ];then mogrify -rotate 90 "$file";fi;done | |
## this one liner rotates landscape images 90 degrees so that I don't have to rotate my e-reader | |
eval convert $(ls */*.{jpg,png}|sed 's/Ch./Ch.\//'|sort -g -t / -k 2|sed 's/Ch.\//Ch./ ; s/.*/ '\''&'\''/') manga.pdf | |
## finally a sane way. took me hours | |
## Ditshick Translations_Ch.47 - Insistence food | |
..::::... | |
.-=++***##########****+=-:. | |
.-+#%%#**++===--:::::-----=++*****+=:. | |
:+#%#*+--:::::::::---------::::::---==+**+=-: | |
.+##+-::::---------------------------::::--=++++-: | |
-*#+-:---------=---------------------------:::--=+=-: | |
.+##=---------------------------==---------------:--===-. | |
:*#*--------------------------------------------------===-: | |
.=##+-----------------------------------------------------==-: | |
-*#*=-------------------------------------------------------==-: | |
:+*+-:--------------------------------------------------------=-:. | |
:=++-:-------------------------==------------------------------=-:. | |
.-=+--------------------------------------------------------------:: | |
.-=+------------=-------------------------------------------------:: | |
:=+=---------==--------------------------===----==---------------=-:. | |
.-=+=--------------------------------------======--------------==----:. | |
.-=+------------------=-----------=====-------==-------=----====-----:. | |
:=+=-----------------=--------=+*******###*+=--==+===---==---::::----:. | |
-=+=----------------------------------===++*****+======+*++==+***+=--:: | |
-=+=--------------=---------------==++=========--=====--=+*###**+====:. | |
:===-----------------------------===========+++==--------==++*##*+===:. | |
:=+=----------------------------======---====++=---------==+*#%#*+=---:. | |
.-=+=---------------------------============+++=----------==++++++===--: | |
.-=+=--------------------------==++++===+++**+=---------=+****+++====-: | |
-=+=-------------------------====+++++**+==----------===-----==++===:. | |
:-=+-----------------------===---==++++=--::---------====------=====:: | |
-=+=-------------===-----==------=++=----===---------==++++++++++==:. | |
:-=+=-----------=++=----=------=++=---==++=-------------=++=-=+*+=-: | |
.=++=----------===----------=============++=----------=++-:=#%*+-:. | |
.-=++--------====-------===+***++=-----====----=----=+=--*@@%*+-: | |
.-=++--------+++=-----==+*%@@@%#*++++====----===--=+++#%@@@#*-: | |
.-=+=--------===------=+*%@@@@@@%#=-:--====+***+-:-+%@@@@%#+:. | |
:==+--------===-------=+****#@@@@%#+-:..-==-. .=#@@@@@@#*-:. | |
.-=+--------=++=------==+=---+#@@@@@@%%%#*=--=*%@@@@@@@%#+:. | |
.-==---------=++=-------=+=---+%@@@@@@@@@@@@@@@@@@@@@@%#*=:. | |
.-==----------++++=------=+=---=**%@@@@@@@@@@@@@@@#=:-=++-: | |
:-==--------=====++++====-==---::..-=*#%@@@@@@%#+:..-=++=: | |
:-==---------==----=*###*+==+===::. .--=-.. .-+##***=: | |
:-==---------==-------=**#*+==-==--:....--::.-+*#*==++-. | |
-===--------===------:--=+***+===**###*#####***+==+*=: | |
.-=+---------===---------:-=+*#*+=---====++++===++*=. | |
:=+=--------==---------------=+*##*+=----===+*#*+-. | |
:=+=-----------------------------=++**********+-. | |
.-=+----------------------------------------:--:. .:-====-:. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment