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.
With aptitude:
sudo apt-get install php5-gdWith yum:
sudo yum install php-gdWith composer:
composer require elboletaire/watimage:~2.0.0Check out the Watimage pages for more information about installation.
See all the information you need to know at the Watimage pages
Check out the API 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
vendor folder.
composer install
cd examples
php Image.php
php Watermark.php
php Watimage.phpYou 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.
- Fork
- Mod, fix
- Test - this is important, so it's not unintentionally broken
- Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
- Pull request - bonus point for topic branches
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.
See LICENSE.md.