tomk / imagehelper
Class to help with image manipulation
0.1.0
2015-01-28 18:50 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-10-19 10:26:20 UTC
README
Help with loading and resizing images (including ICO icons) from strings and returning image resources for use with the gd library.
Supports alpha transparency and upscaling
Other useful methods to follow.
Usage
$data = file_get_contents('image.file');
$imageHelper = new ImageHelper($data);
$resized = $imageHelper->resize(256, 256, true);
imagepng($resized);