https://github.com/diloabininyeri/image-resize
A simple tool that converts all images into each other was written by simply encapsulating the load and resize methods.
https://github.com/diloabininyeri/image-resize
gd-library image image-processing php resize-images
Last synced: about 1 year ago
JSON representation
A simple tool that converts all images into each other was written by simply encapsulating the load and resize methods.
- Host: GitHub
- URL: https://github.com/diloabininyeri/image-resize
- Owner: diloabininyeri
- Created: 2018-05-17T06:48:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-11T09:33:56.000Z (over 7 years ago)
- Last Synced: 2025-03-26T16:11:28.014Z (about 1 year ago)
- Topics: gd-library, image, image-processing, php, resize-images
- Language: PHP
- Homepage:
- Size: 113 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**php image resize and save library**
composer require zeus/image

Guide using
use Image\Image;
class test
{
public function testResize()
{
$image = new Image();
$image->load((string) "ay.jpg")
->resize(800, 600)
->save("sonbir.jpg", 80);
}
}
(new test())->testResize();
- save method have two parameter save($outputname,$quality)
- load method have one parameter load image load($imagepath)
- resize method have two parameter resize($width,$height)
**example use on laravel**
[](https://image.ibb.co/iFnbdy/Screenshot_from_2018_05_17_14_41_00.png)