diff --git a/local/bin/mangahere_rss.py b/local/bin/manga_here_rss.py similarity index 100% rename from local/bin/mangahere_rss.py rename to local/bin/manga_here_rss.py diff --git a/local/bin/manga_maker b/local/bin/manga_maker new file mode 100755 index 0000000..0a32e06 --- /dev/null +++ b/local/bin/manga_maker @@ -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" +