dev-master
9999999-dev
MIT
The Requires
- php ^7.0
The Development Requires
by Lukas Hrdlicka
Wallogit.com
2017 © Pedro Peláez
Email client blocks images by default. Mozify is way how to serve images to your customers., (*2)
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)
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;
, (*8)
, (*9)
./vendor/bin/phpunit -c phpunit.xml
Have an idea? Found a bug? See how to contribute., (*10)
MIT see LICENSE for the full license text., (*11)
MIT