<commit_before># ma-image-resize-tool

A generic image resizing tool based on node.js optimzed for making mobile app screenshots and icons. It´s supposed to make screenshot and icon generation easy and flexible (future proof).

### Setup
1. Install ImageMagic binaries from http://www.imagemagick.org/script/binary-releases.php

   Make sure to tick the box "Install legacy utilities (e.g. convert)" during installation on windows.

2. `npm install https://github.com/moderna/ma-image-resize-tool.git`

### Use as Commandline tool (that´s the tools primary purpose)

The tool uses a config file in JSON format. Here is the simplest setup you can make:

1. Create a "config.json" in your image source folder.
    ```javascript
    {
        "images":
        [
            { "sourcePath" : "./_screens/16to10/image.jpg", "targetPath" : "./someTargetDirectory/image.jpg", "resolution":"100x100" }
        ]
    }
    ```<commit_msg>readme update 9<commit_after># ma-image-resize-tool

A generic image resizing tool based on node.js optimized for making mobile app screenshots and icons. It´s supposed to make screenshot and icon generation easy and flexible (future proof).

### Setup
1. Install ImageMagic binaries from http://www.imagemagick.org/script/binary-releases.php

   Make sure to tick the box "Install legacy utilities (e.g. convert)" during installation on windows.

2. `npm install https://github.com/moderna/ma-image-resize-tool.git`

### Use as Commandline tool (that´s the tools primary purpose)

The tool uses a config file in JSON format. Here is the simplest setup you can make:

1. Create a "config.json" in your image source folder.
    ```javascript
    {
        "images":
        [
            { "sourcePath" : "./_screens/16to10/image.jpg", "targetPath" : "./someTargetDirectory/image.jpg", "resolution":"100x100" }
        ]
    }
    ```
{'fraction_non_alphanumeric': 0.10735373054213634, 'fraction_numerical': 0.014492753623188406, 'mean_word_length': 3.3653395784543325, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1131530', 'n_tokens_mistral': 559, 'n_tokens_neox': 520, 'n_words': 200}