<commit_before>## TckImageResizer

[![Build Status](https://travis-ci.org/tck/zf2-imageresizer.svg?branch=master)](https://travis-ci.org/tck/zf2-imageresizer)
[![Latest Stable Version](https://poser.pugx.org/tck/zf2-imageresizer/v/stable.png)](https://packagist.org/packages/tck/zf2-imageresizer)
[![Total Downloads](https://poser.pugx.org/tck/zf2-imageresizer/downloads.png)](https://packagist.org/packages/tck/zf2-imageresizer)
[![License](https://poser.pugx.org/tck/zf2-imageresizer/license.png)](https://packagist.org/packages/tck/zf2-imageresizer)

This ZF2 module, once enabled, allows image resizing and manipulation by url.


### Requirements

* PHP 5.3+
* [Zend Framework 2](https://github.com/zendframework/zf2) (> 2.0)
* [Imagine](http://imagine.readthedocs.org/en/latest/) (> 0.5)


### Installation via Composer

Define dependencies in your composer.json file

```json
{
	"require": {
        "tck/zf2-imageresizer": "1.*"
    }
}
```


### Post installation

1. Enabling it in your `application.config.php` file.

    ```php
    <?php
    return array(
        'modules' => array(
            // ...
            'TckImageResizer',
        ),
        // ...
    );
    ```

2. Create "processed" folder in "public" folder.

### Usage

#### Basic Syntax

All files in public folder

* folder/filename.ext
* `processed/`folder/filename`.$command1,param1,param2$command2`.ext

Example: Create a thumbnail and grayscale image

* img/logo.jpg
* `processed/`img/logo`.$thumb,160,120$grayscale`.jpg


#### Command list

* thumb(width, height)
* resize(width, height)
* grayscale
* negative
* gamma(correction)
* colorize(hexColor)
* sharpen
* blur(sigma = 1)

Own commands possible - example place a watermark (Todo Documentation)


### Goals / Todos

* View Helper
* More commands
* More command options
* Administrative functions
* ...<commit_msg>individual 404<commit_after>## ImageResizer

[![Build Status](https://travis-ci.org/tck/zf2-imageresizer.svg?branch=master)](https://travis-ci.org/tck/zf2-imageresizer)
[![Latest Stable Version](https://poser.pugx.org/tck/zf2-imageresizer/v/stable.png)](https://packagist.org/packages/tck/zf2-imageresizer)
[![Total Downloads](https://poser.pugx.org/tck/zf2-imageresizer/downloads.png)](https://packagist.org/packages/tck/zf2-imageresizer)
[![License](https://poser.pugx.org/tck/zf2-imageresizer/license.png)](https://packagist.org/packages/tck/zf2-imageresizer)

This ZF2 module, once enabled, allows image resizing and manipulation by url.


### Requirements

* PHP 5.3+
* [Zend Framework 2](https://github.com/zendframework/zf2) (> 2.0)
* [Imagine](http://imagine.readthedocs.org/en/latest/) (> 0.5)


### Installation via Composer

Define dependencies in your composer.json file

```json
{
	"require": {
        "tck/zf2-imageresizer": "1.*"
    }
}
```


### Post installation

1. Enabling it in your `application.config.php` file.

    ```php
    <?php
    return array(
        'modules' => array(
            // ...
            'TckImageResizer',
        ),
        // ...
    );
    ```

2. Create "processed" folder in "public" folder.

### Usage

#### Basic Syntax

All files in public folder

* folder/filename.ext
* `processed/`folder/filename`.$command1,param1,param2$command2`.ext

Example: Create a thumbnail and grayscale image

* img/logo.jpg
* `processed/`img/logo`.$thumb,160,120$grayscale`.jpg


#### Command list

* thumb(width, height)
* resize(width, height)
* grayscale
* negative
* gamma(correction)
* colorize(hexColor)
* sharpen
* blur(sigma = 1)
* 404(text[, backgroundColor[, color[, width[, height]]]]) - 404 individual image [text: url-safe base64]

Own commands possible - example place a watermark (Todo Documentation)


### Goals / Todos

* View Helper
* More commands
* More command options
* Administrative functions
* ...
{'fraction_non_alphanumeric': 0.16675406397482959, 'fraction_numerical': 0.01966439433665443, 'mean_word_length': 3.79874213836478, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2382560', 'n_tokens_mistral': 1443, 'n_tokens_neox': 1337, 'n_words': 250}