<commit_before>imgautopt
==============

**A command line to automate resize and compress images at once for the Mac. **

Imgautopt is a shell script which uses the following external commands and sips command included in the MacOS. 
Binaries of the following commands (i.e. binaries provided by this repository) are same as the commands found 
in ImageOptim.app/Contents/MacOS/

* pngquant http://pngquant.org/
* jpegoptim http://www.kokkonen.net/tjko/projects.html

##Supported Format
* JPEG
* PNG

## Usage

Imgautopt resizes and compresses images in current directory based on specified resampling width.

    $ imgautopt <resampling width>

The script outputs resized and compressed images to "./output" directory
 
## Log

The script outputs a log to "./log" directory, and the log describes image original size, resized size and compressed size, 
and also saved size and its percentage.

	2013-04-25 04:29:04 [INFO] imageopt.sh [START SCRIPT]
	2013-04-25 04:29:04 [INFO] imageopt.sh [RESIZE] 2013-04-21_2155.png 170.646kb 65.850kb -104.796kb -62.00%
	2013-04-25 04:29:04 [INFO] imageopt.sh [RESIZE] 2013-04-21_2157.png 117.056kb 68.757kb -48.299kb -42.00%
	2013-04-25 04:29:09 [INFO] imageopt.sh [COMPRESS] 2013-04-21_2155.png 65.850kb 20.706kb -45.144kb -69.00%<commit_msg>- Modify README.md<commit_after>imgautopt
==============

**A command line to automate resize and compress images at once for the Mac. **

Imgautopt is a shell script which uses the following external commands and sips command included in the MacOS. 
Binaries of the following commands (i.e. binaries provided by this repository) are same as the commands found 
in ImageOptim.app/Contents/MacOS/

* pngquant http://pngquant.org/
* jpegoptim http://www.kokkonen.net/tjko/projects.html

##Supported Format
* JPEG
* PNG

## Usage

First, download all files and deploy the files to your chosen direcotry, 
and add the full path to your environment variable (i.e. $PATH).

The following is a example to add the script directory to the environment variable.

	export PATH=${PATH}:<FULL PATH OF YOUR CHOSEN DIRECTORY>

Imgautopt resizes and compresses images in current directory based on specified resampling width.

    $ imgautopt <resampling width>

The script outputs resized and compressed images to "./output" directory
 
## Log

The script outputs a log to "./log" directory, and the log describes image original size, resized size and compressed size, 
and also saved size and its percentage.

	2013-04-25 04:29:04 [INFO] imageopt.sh [START SCRIPT]
	2013-04-25 04:29:04 [INFO] imageopt.sh [RESIZE] 2013-04-21_2155.png 170.646kb 65.850kb -104.796kb -62.00%
	2013-04-25 04:29:04 [INFO] imageopt.sh [RESIZE] 2013-04-21_2157.png 117.056kb 68.757kb -48.299kb -42.00%
	2013-04-25 04:29:09 [INFO] imageopt.sh [COMPRESS] 2013-04-21_2155.png 65.850kb 20.706kb -45.144kb -69.00%
{'fraction_non_alphanumeric': 0.10171869519466854, 'fraction_numerical': 0.10662925289372151, 'mean_word_length': 4.1854545454545455, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2157433', 'n_tokens_mistral': 1146, 'n_tokens_neox': 907, 'n_words': 347}