<commit_before>imgutil
=======

Image operation utility

Installation
------------

Installation using pip::

    pip install imgutil

Prerequesite
------------

- jpegtran
- pngcrush

Command line utilities
----------------------

### imgoptimize
- Optimize image to reduce file size.
- Usage:
    - `-o`: Specifiy the output image.
    - `src_img`: Specify the input image.

```
imgoptimize [-h] [-o OUTPUT] src_img
```


Usage
-----

### imgoptimize
- `imgoptimize(input_filename, output_filename=None)`
- It reduces jpeg/png file size.
- It converts CMYK to RGB.

**quick example**
<commit_msg>Update API document<commit_after>imgutil
=======

Image operation utility

Installation
------------

Installation using pip::

    pip install imgutil

Prerequesite
------------

- jpegtran
- pngcrush

Command line utilities
----------------------

### imgoptimize
```
imgoptimize [-h] [-o OUTPUT] src_img
```
- Optimize image to reduce file size.
- Usage:
    - `-o`: Specifiy the output image.
    - `src_img`: Specify the input image.


Usage
-----

### imgoptimize
- `imgoptimize(input_filename, output_filename=None)`
- It reduces jpeg/png file size.
- It converts CMYK to RGB.

**quick example**

{'fraction_non_alphanumeric': 0.18984179850124897, 'fraction_numerical': 0.0, 'mean_word_length': 2.5562130177514795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4381385', 'n_tokens_mistral': 402, 'n_tokens_neox': 377, 'n_words': 114}