zeus/image

1.4 2018-09-17 12:15 UTC

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