<commit_before># image-batch-resizer

CLI script for asynchronous batch image resizing.

## Description:

This script asynchronously resizes image files, recursively searching for images in selected directory.

It relies on ImageMagick's ``convert`` functionality.

## Install:

    npm install image-batch-resizer -g

Before using ``image-batch-resizer`` you MUST install the ImageMagick suite and have the ``convert`` binary present!


For Mac OS X with installed ``brew`` 

    brew install imagemagick
    
For any other distrubution: Install ImageMagick according to your system's package management guidelines.

## Usage:

    $ image-batch-resizer -d ./image_dir

![](http://github.com/Meettya/image-batch-resizer/raw/master/screenshot.png) 

Calling without any arguments will show usage information

    $ image-batch-resizer 

    Image batch resizer v.0.5.9

    Convert image files, recursing walking deeply from selected directory.
    Usage: image-batch-resizer -d [start directory]

    Options:
      -d, --dir, --directory      Directory to start recursing walking             [required]
      -p, --prefix                Prefix for resized images                        [default: "res_"]
      -R, --remove-original-file  Remove original file after convert ("yes"|"no")  [default: "no"]
      -s, --size                  Size for image resizing                          [default: "1920x1080"]
      -w, --workers               Workers number(parallel jobs)                    [default: "2"]


<commit_msg>Reworded usage text in README, script itself will follow shortly.<commit_after># image-batch-resizer

CLI script for asynchronous batch image resizing.

## Description:

This script asynchronously resizes image files, recursively searching for images in selected directory.

It relies on ImageMagick's ``convert`` functionality.

## Install:

    npm install image-batch-resizer -g

Before using ``image-batch-resizer`` you MUST install the ImageMagick suite and have the ``convert`` binary present!


For Mac OS X with installed ``brew`` 

    brew install imagemagick
    
For any other distrubution: Install ImageMagick according to your system's package management guidelines.

## Usage:

    $ image-batch-resizer -d ./image_dir

![](http://github.com/Meettya/image-batch-resizer/raw/master/screenshot.png) 

Calling without any arguments will show usage information

    $ image-batch-resizer 

    Image batch resizer v.0.5.9

    This script asynchronously resizes image files, recursively searching for images in selected directory.
    Usage: image-batch-resizer -d [start directory]

    Options:
      -d, --dir, --directory      Directory to start recursive search                 [required]
      -p, --prefix                Prefix for resized images                           [default: "res_"]
      -R, --remove-original-file  Remove original file after conversion ("yes"|"no")  [default: "no"]
      -s, --size                  New image size                                      [default: "1920x1080"]
      -w, --workers               Number of workers (parallel jobs)                   [default: "2"]



{'fraction_non_alphanumeric': 0.08900190718372536, 'fraction_numerical': 0.007628734901462174, 'mean_word_length': 2.5280269058295963, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '848190', 'n_tokens_mistral': 877, 'n_tokens_neox': 796, 'n_words': 308}