<commit_before>
apng2webp
=============
[![Build Status](https://img.shields.io/travis/Benny-/apng2webp/master.svg)](https://travis-ci.org/Benny-/apng2webp)

Convert your animated png files to animated webp files.

## Usage

```
usage: apng2webp.py [-h] [-l [LOOP]] [-bg [BGCOLOR]] [-tmp [TMPDIR]]
                    input [output]

Convert animated png files (apng) to animated webp files.

positional arguments:
  input                 Input path. Must be a .png file.
  output                Output path. If output file already exist it will be
                        overwritten.

optional arguments:
  -h, --help            show this help message and exit
  -l [LOOP], --loop [LOOP]
                        Passed to webpmux. The amount of times the animation
                        should loop. 0 to 65535. Zero indicates to loop
                        forever.
  -bg [BGCOLOR], --bgcolor [BGCOLOR]
                        Passed to webpmux. The background color as a A,R,G,B
                        tuple. Example: 255,255,255,255
  -tmp [TMPDIR], --tmpdir [TMPDIR]
                        A temp directory (it may already exist) to save the
                        temp files during converting, including the extracted
                        PNG images, the metadata and the converted WebP static
                        images for each frame. If not provided, it will use
                        the system temp path and remove temp images after
                        executing.
```

## Examples

```bash
apng2webp ./input.png
apng2webp ./input.png ./output.webp
apng2webp -loop 3 -bgcolor 255,255,255,255 -tmpdir ./ ./input.png ./output.webp
```

## Dependencies

- python (python 2 or 3 can be used)
- cmake
- libpng
- zlib
- jsoncpp
- pip (a python package used during installation)
- The `cwebp` program must be in your path
- The `webpmux` program must be in your path

## Release

If you prefer to use the precompiled binary but not build from source, go to the [release page](https://github.com/Benny-/apng2webp/releases) and download `apng2webp_dependencies` for your platform. Then add the extracted binaries to your PATH.

You also need `cwebp`, `webpmux` from [webp](https://developers.google.com/speed/webp/docs/precompiled) being in your path. Then check the [installation](https://github.com/Benny-/apng2webp#installation) part to install.

## Build Setup

### macOS
<commit_msg>Update reamde tutorial for precompiled release<commit_after>
apng2webp
=============
[![Build Status](https://img.shields.io/travis/Benny-/apng2webp/master.svg)](https://travis-ci.org/Benny-/apng2webp)

Convert your animated png files to animated webp files.

## Usage

```
usage: apng2webp.py [-h] [-l [LOOP]] [-bg [BGCOLOR]] [-tmp [TMPDIR]]
                    input [output]

Convert animated png files (apng) to animated webp files.

positional arguments:
  input                 Input path. Must be a .png file.
  output                Output path. If output file already exist it will be
                        overwritten.

optional arguments:
  -h, --help            show this help message and exit
  -l [LOOP], --loop [LOOP]
                        Passed to webpmux. The amount of times the animation
                        should loop. 0 to 65535. Zero indicates to loop
                        forever.
  -bg [BGCOLOR], --bgcolor [BGCOLOR]
                        Passed to webpmux. The background color as a A,R,G,B
                        tuple. Example: 255,255,255,255
  -tmp [TMPDIR], --tmpdir [TMPDIR]
                        A temp directory (it may already exist) to save the
                        temp files during converting, including the extracted
                        PNG images, the metadata and the converted WebP static
                        images for each frame. If not provided, it will use
                        the system temp path and remove temp images after
                        executing.
```

## Examples

```bash
apng2webp ./input.png
apng2webp ./input.png ./output.webp
apng2webp -loop 3 -bgcolor 255,255,255,255 -tmpdir ./ ./input.png ./output.webp
```

## Dependencies

- python (python 2 or 3 can be used)
- cmake
- libpng
- zlib
- jsoncpp
- pip (a python package used during installation)
- The `cwebp` program must be in your PATH
- The `webpmux` program must be in your PATH

## Release

If you prefer to use the precompiled binary but not build from source, go to the [release page](https://github.com/Benny-/apng2webp/releases) and download `apng2webp_dependencies` for your platform. Then add the extracted binaries to your PATH.

You also need `python` and `pip` installed, make sure `cwebp` and `webpmux` from [webp](https://developers.google.com/speed/webp/docs/precompiled) to be in your PATH. Then check the [installation](https://github.com/Benny-/apng2webp#installation) part to install.

## Build Setup

### macOS

{'fraction_non_alphanumeric': 0.09807928075194115, 'fraction_numerical': 0.017572537801389457, 'mean_word_length': 2.1993464052287583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1474755', 'n_tokens_mistral': 1497, 'n_tokens_neox': 1389, 'n_words': 533}