<commit_before>node-image-resize
================

Node library to re-size and scale images

### USAGE:
If you want to smartResizeDown: (downscale only)

```javascript
var ImageResize = require('node-image-resize'),
    fs = require('fs');

var image = new ImageResize('image.png');
image.loaded.then(function(){
    image.smartResizeDown({
        width: 200,
        height: 200
    }).then(function () {
        image.stream(function (err, stdout, stderr) {
            var writeStream = fs.createWriteStream('/path/to/my/resized.jpg');
            stdout.pipe(writeStream);
        });
    });
});

```<commit_msg>* Fixed typo, loaded is a method. It was missing the () * Also added path so that the example can easily be copied and pasted. You will need a file named "large.png" in the same directory as the app file.<commit_after>node-image-resize
================

Node library to re-size and scale images

### USAGE:
If you want to smartResizeDown: (downscale only)
This will resize an image in the current directory name "large.png" to "small.png"

```javascript
var ImageResize = require('node-image-resize'),
    fs = require('fs'),
    path = require('path');

var image = new ImageResize(path.join(__dirname,'large.png'));

image.loaded().then(function(){
    image.smartResizeDown({
        width: 200,
        height: 200
    }).then(function () {
        image.stream(function (err, stdout, stderr) {
            var writeStream = fs.createWriteStream(path.join(__dirname,'small.png'));
            stdout.pipe(writeStream);
        });
    });
});

```
{'fraction_non_alphanumeric': 0.15487571701720843, 'fraction_numerical': 0.0076481835564053535, 'mean_word_length': 3.3370165745856353, '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': '6899998', 'n_tokens_mistral': 466, 'n_tokens_neox': 453, 'n_words': 135}