Skip to content

How to zip downloaded gallery as it is finished? #7039

Closed Answered by mikf
gphg asked this question in Q&A
Discussion options

You must be logged in to vote

--cbz on command-line or
"postprocessors": [{"name": "zip", "extension": "cbz"}] in a config file.

The images saved as webp instead of png is a problem. Most cbz or pdf viewer software are unable to view it.

Newer galleries on nhentai are all .webp. Convert and zip them yourself, or run a script with an exec post processor.

#!/bin/bash

for file in "$1"/*.webp; do
    magick "$file" "${file%.*}.png"
done

zip -0 "$(dirname "$1")"/"$(basename "$1")".cbz "$1"/*.png
rm -r -- "$1"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gphg
Comment options

@mikf
Comment options

mikf Feb 21, 2025
Maintainer

Answer selected by gphg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants