Code Monkey home page Code Monkey logo

optibook's Introduction

optibook — An ePub and comic book archive optimizer

optibook is a Bash script that will try to optimize the size of ePub files (.epub) and comic book archives (.cbz, .cbr).

It combines several optimizations to help reduce the size of eBook files:

  • Lossless optimization of JPEG, PNG and SVG images
  • Minification of CSS and HTML files
  • Embedded font optimization by subsetting the glyphs to the characters used in the eBook
  • Better overall compression by taking advantage of 7-Zip more efficient Zip implementation to recompress the files
  • Optional JPEG artifact reduction using the Waifu2x algorithm and lossy recompression of images from comic book archives to the more efficient WebP and AVIF formats

It can typically reduce the size of eBooks by up to 40% depending on the source.

Usage

To losslessly optimize comic book archives or books:

./optibook.sh FILE1 [FILE2 ...]

To recompress comic book archives to WebP while applying while applying light denoising to reduce JPEG artifacts:

./optibook.sh -r webp -n 1 FILE1 [FILE2 ...]

Same thing using the AVIF file format:

./optibook.sh -r avif -n 1 FILE1 [FILE2 ...]

Complete syntax can be obtained by running optibook without argument.

Required Dependencies

Optional Dependencies

optibook's People

Contributors

fleger avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.