GithubHelp home page GithubHelp logo

rs_comic_shrinker's Introduction

rs_comic_shrinker

The main objective of this code is to reduce heavily the size of your comic/manga collection. You can divide its size up to 10 times ! The application itself should not weight more than few MegaBytes and use much of you CPU.

Another benefit would be to convert your files to open-source format (CBR files uses winrar which is proprietary code).

This code is fairly simple and is fair enough for me. Feel free to use it as you wish and do not be afraid to improve it (please share your improvements here too).

Get it

You should have the rust language and cargo (rust dependancy manager) installed. Get both here.

# Git clone this depot or download the code directly.
git clone https://github.com/racine-p-a/rs_comic_shrinker.git
# Move to its main folder
cd rs_comic_shrinker
# Get rust dependencies and compile it !
cargo build --release
# Once the code compiled, you'll find the executable in the target/debug folder. Now, you can use it as you want.
./target/release/rs_comic_shrinker comic.cbz reduced_comic.cbz webp 1

# BONUS
# LINUX ONLY : You can move directly your compiled comic shrinker to your path
sudo cp ./target/release/rs_comic_shrinker /bin
# You can now invoke it from any point of you computer
cd ~ # Go to your home folder or any other location
rs_comic_shrinker comic.cbz reduced_comic.cbz webp 1 # It is accessible here

Important notes

accepted input extensions accepted output extensions image compression
cbr, cbz cbz webp

Ideally, I would like to add cb7, cba and cbt as input files. And cb7 and cbt as output format would be useful as well.

rs_comic_shrinker's People

Contributors

racine-p-a avatar

Watchers

James Cloos avatar  avatar

rs_comic_shrinker's Issues

Archive always present in cwd

The archive is always created in the current working directory.

-> Must respect the path given in the command line

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.