Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert image format/postprocessing #124

Open
Efreak opened this issue Nov 4, 2018 · 1 comment
Open

Convert image format/postprocessing #124

Efreak opened this issue Nov 4, 2018 · 1 comment

Comments

@Efreak
Copy link

Efreak commented Nov 4, 2018

A large number of older webcomics have large png and jpg files (some nicely optimized, some not). It would be nice to have an alternative for long-term archiving, to save space, such as converting files to webp automatically, as they're downloaded. Currently I'm using cbxconverter, but that's a windows only gui program that (at least on my laptop) takes longer to process each image than it takes to download it and can only be run after the comic has been zipped, not while it downloads.

@Efreak
Copy link
Author

Efreak commented Nov 4, 2018

If this is an unwanted feature, it would also be nice to have a more general post-processing function to run a custom command/script on each downloaded file, and another on each directory after any given comic is complete

For individual post-processing, it would allow

  • convert image to webp
    • convert -trim $image $image.webp && rm $image
  • reduce image quality
    • convert -quality=75 $image.jpg.

For post-processing on directories, this would allow

  • creating customized cbz files
    • for a in 01 02 03 do; zip -m -0 $(dirname $PWD)_20$a.cbz 20$a*; done
  • exporting files
    • calibredb -add $filename.cbz -series '$ComicName'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants