2017 © Pedro Peláez
 

library mozify

image

karster/mozify

  • Tuesday, September 19, 2017
  • by karster
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 50 % Grown

The README.md

Mozify

Build Status Latest Stable Version GitHub license, (*1)

Email client blocks images by default. Mozify is way how to serve images to your customers., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

composer require karster/mozify:"*"

or add, (*5)

"karster/mozify": "*"

to the require section of your composer.json., (*6)

Usage

use karster\image\Mozify;

$mozify = new Mozify();
$result = $mozify->setImageSrc('path/to/image.jpg')
        ->setSearchWindow(10)
        ->setColorDepth(8)
        ->setTest(true)
        ->generate();

echo $result;

To change image dimensions set width or height. Second attribute will calculate from image ratio., (*7)

use karster\image\Mozify;

$mozify = new Mozify();
$result = $mozify->setImageSrc('path/to/image.jpg')
        ->setSearchWindow(10)
        ->setColorDepth(8)
        ->setWidth(500)
        //->setHeight(300)
        ->generate();

echo $result;

Safari, (*8)

Coffee, (*9)

Tests

./vendor/bin/phpunit -c phpunit.xml

Contribution

Have an idea? Found a bug? See how to contribute., (*10)

License

MIT see LICENSE for the full license text., (*11)

The Versions

19/09 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Lukas Hrdlicka