Skip to content

A simple tool that converts all images into each other was written by simply encapsulating the load and resize methods.

Notifications You must be signed in to change notification settings

diloabininyeri/Image-resize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple tool that converts all images into each other was written by simply encapsulating the load and resize methods.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published