GithubHelp home page GithubHelp logo

mangaconv's Introduction

CI

mangaconv

mangaconv is a portable cli tool to convert comic and manga files/folders for reading on e-ink devices.

Currently supported input formats are zip/cbz or a folder of images. Output is a cbz archive.

This project is heavily inspired by KCC. Unlike KCC, it does not require any runtime dependencies and does not attempt to make any internet connections.

Usage

Simple usage:

mangaconv path/to/my/manga.zip another/path/to/my/manga/dir

Configure with flags:

mangaconv -height 1080 -width 1920 path/to/my/manga.zip another/path/to/my/manga/dir

To learn about provided flags:

mangaconv -help

TODOS

This project is still a work in progress.

Notable missing features include:

  • epub input / output support
  • pdf input support
  • memory usage optimization

License

MIT. See LICENSE.

Wikipe-tan image used for testing by Kasuga~enwiki, borrowed from wikimedia under CC BY-SA 3.0.

mangaconv's People

Contributors

naisuuuu avatar

Stargazers

 avatar Daniel avatar

Watchers

 avatar

mangaconv's Issues

Reduce memory usage

Current implementation of the imgutil library copies images with each modification applied. This seems to bloat the memory usage to many times the input size for each image.
I have yet to profile this conclusively, but I suspect modifying the imgutil library to instead operate on images in-place whenever possible should reduce the memory usage significantly.

Epub output

Epub files are a bit larger than corresponding cbz archives, but they provide more functionality. The main feature of epub files I would greatly appreciate is their ability to hold metadata, such as the author, date of release etc.

Don't import images in tests

While it makes sense in benchmarks, this is probably not a very good approach:

{
"YCbCr",
mustReadImg("testdata/wikipe-tan-YCbCr.jpg"),
},

We should inline sufficiently complex input and output images using their appropriate *image.Types.
This is more of a nice-to-have than a functional requirement, so I'm leaving this issue as a reminder for the future.

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.