Metadata-Version: 2.1
Name: anki-compressor
Version: 0.0.7
Summary: Compress Anki deck .apkg file size
Home-page: https://github.com/pjsier/anki-compressor
Author: Patrick Sier
License: MIT
Project-URL: Bug Reports, https://github.com/pjsier/anki-compressor/issues
Project-URL: Source, https://github.com/pjsier/anki-compressor
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
Requires-Dist: Pillow
Requires-Dist: pydub
Requires-Dist: tqdm

# Anki Compressor

Compresses images and audio in [Anki](https://apps.ankiweb.net/) .apkg files to reduce the overall file size.

## Installation

`anki-compressor` can be installed with Pip, but it requires [Pydub](http://pydub.com/) and [Pillow](https://pillow.readthedocs.io/en/latest/) which have native dependencies that need to be installed. You'll need to include support for `libvorbis` in the audio library, since all audio is converted to `ogg` and all images are converted to `jpg`.

Once you've installed those dependencies, run `pip install anki-compressor` to install the command line script.

## Usage

```bash
anki-compressor -i input.apkg -o output.apkg -q 50 -b 64k
```

### Arguments

* `-i`: Specifies the input file and is required
* `-o`: Output file name, defaults to `MIN_<INPUT>`
* `-q`: Image quality on a scale of 1-100 supplied to Pillow's image processing, defaults to 50
* `-b`: Bitrate for audio output, defaults to '48k'


