Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajenbo/image.php
Helper function for simple image manipulation using GD functions
https://github.com/ajenbo/image.php
Last synced: 20 days ago
JSON representation
Helper function for simple image manipulation using GD functions
- Host: GitHub
- URL: https://github.com/ajenbo/image.php
- Owner: AJenbo
- License: lgpl-3.0
- Created: 2014-11-18T22:08:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-20T16:05:54.000Z (about 7 years ago)
- Last Synced: 2024-11-18T06:28:18.636Z (3 months ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Image.php
================[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e795c8fb840040118bdba4f2a0ac64a1)](https://www.codacy.com/app/AJenbo/Image-php?utm_source=github.com&utm_medium=referral&utm_content=AJenbo/Image.php&utm_campaign=Badge_Grade)
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');