Watimage is a group of PHP classes to help you resize, rotate, apply filters, watermarks and a lot more of things to your images using the PHP's GD library.
It was initially a CakePHP component, later became a simple Vendor class and now is a powerful set of classes to alter images.
And it maintains the transparencies in every scenario.
You need php > 5.4 and the php GD package installed.
sudo apt-get install php5-gd
sudo yum install php-gd
composer require elboletaire/watimage:~2.0.0
Check out the Watimage pages for more information about installation.
See all the information you need to know at the Watimage pages
There are lot of examples at the
examples folder, plus a lot more of examples
and tutorials in the Watimage pages.
Before running the given examples, you need to
composer install from
Watimage root folder in order to get composer's autoloader downloaded into
composer install cd examples php Image.php php Watermark.php php Watimage.php
You can also put the
Watimage folder in your local webhost webroot dir and
point there your browser.
Please, see the information about testing in the Watimage pages.
See the issues section.
Check out the releases on github. They have different order than expected because I've created tags recently to not loose them and to have the whole changelog there.