ajenbo / image.php
Helper function for simple image manipulation using GD functions.
0.9.4
2017-11-20 12:28 UTC
Requires
- php: >=7.1
- ext-gd: *
README
Helper function for simple image manipulation using GD functions.
###Samples Open an image, remove any boarder, resize to 64x64 and save it.
$path = 'test.png';
$image = new Image($path);
$imageContent = $image->findContent();
$image->crop(
$imageContent['x'],
$imageContent['y'],
$imageContent['width'],
$imageContent['height']
);
$image->resize(64, 64);
$image->save($path, 'png');