ajenbo / image.php
Helper function for simple image manipulation using GD functions.
Installs: 588
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ajenbo/image.php
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');