<commit_before># Image Thumbnailer for Zend Framework 2

  [![Build Status](https://secure.travis-ci.org/webino/WebinoImageThumb.png?branch=master)](http://travis-ci.org/webino/WebinoImageThumb "Master")
  [![Build Status](https://secure.travis-ci.org/webino/WebinoImageThumb.png?branch=develop)](http://travis-ci.org/webino/WebinoImageThumb "Develop")

  Service that provides API to manipulate images.

  Powered by [PHPThumb](https://github.com/masterexploder/PHPThumb)

## Features

  - Resize, crop, pad, rotate, show and save images
  - Create image reflection

## Setup

  Following steps are necessary to get this module working, considering a zf2-skeleton or very similar application:

  1. Run: `php composer.phar require webino/webino-image-thumb:2.*`
  3. Add `WebinoImageThumb` to the enabled modules list

## Requirements

  - GD 2.0+

## QuickStart

  - For example add following code into the controller action, assume example image:

        // We encourage to use Dependency Injection instead of Service Locator
        $thumbnailer = $this->getServiceLocator()->get('WebinoImageThumb');
        $imagePath   = 'public/images/example.jpg';
        $thumb       = $thumbnailer->create($imagePath, $options = array(), $plugins = array());

        $thumb->resize(100, 100);

        $thumb->show();
        // or/and
        $thumb->save('public/images/resized.jpg');

    *NOTE: If you don't know how to inject the WebinoImageThumb into action controller, check out `test/resources`.*

  - Use reflection plugin:

        $reflection = $thumbnailer->createReflection(40, 40, 80, true, '#a4a4a4');
        $thumb      = $thumbnailer->create($imagePath, array(), array($reflection));

## Options

 The options array allows you to customize the behavior of the library a bit. Some of these options are implementation-specific, and are noted as such.  So, let's first go over what options are available to us:
<commit_msg>Updated README, added main title break & removed dot at the end of quickstart note sentence<commit_after># Image Thumbnailer <br /> for Zend Framework 2

  [![Build Status](https://secure.travis-ci.org/webino/WebinoImageThumb.png?branch=master)](http://travis-ci.org/webino/WebinoImageThumb "Master")
  [![Build Status](https://secure.travis-ci.org/webino/WebinoImageThumb.png?branch=develop)](http://travis-ci.org/webino/WebinoImageThumb "Develop")

  Service that provides API to manipulate images.

  Powered by [PHPThumb](https://github.com/masterexploder/PHPThumb)

## Features

  - Resize, crop, pad, rotate, show and save images
  - Create image reflection

## Setup

  Following steps are necessary to get this module working, considering a zf2-skeleton or very similar application:

  1. Run: `php composer.phar require webino/webino-image-thumb:2.*`
  3. Add `WebinoImageThumb` to the enabled modules list

## Requirements

  - GD 2.0+

## QuickStart

  - For example add following code into the controller action, assume example image:

        // We encourage to use Dependency Injection instead of Service Locator
        $thumbnailer = $this->getServiceLocator()->get('WebinoImageThumb');
        $imagePath   = 'public/images/example.jpg';
        $thumb       = $thumbnailer->create($imagePath, $options = array(), $plugins = array());

        $thumb->resize(100, 100);

        $thumb->show();
        // or/and
        $thumb->save('public/images/resized.jpg');

    *NOTE: If you don't know how to inject the WebinoImageThumb into action controller, check out `test/resources`*

  - Use reflection plugin:

        $reflection = $thumbnailer->createReflection(40, 40, 80, true, '#a4a4a4');
        $thumb      = $thumbnailer->create($imagePath, array(), array($reflection));

## Options

 The options array allows you to customize the behavior of the library a bit. Some of these options are implementation-specific, and are noted as such.  So, let's first go over what options are available to us:

{'fraction_non_alphanumeric': 0.1178553363682347, 'fraction_numerical': 0.01112797167425392, 'mean_word_length': 3.753605769230769, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 20, 'https://': 6, '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': '1283291', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1141, 'n_words': 361}