Recommend this page to a friend! |
Classes of Ujah Chigozie peter | Nano PHP Image Resize | readme.md | Download |
|
DownloadNano ImageNanoImage is a simple php image resize class. It can resize image and display it in browser or save image in a directory InstallationInstallation is super-easy via Composer:
Basic Usage
Initialize nano image class for use Open and load any image from a directory path & file name
Or load string containing the image data.
Resize image with exact width and height passed, example 200x200. To resize image using aspect ratio set the thrid parameter to true
Once image manipulation is done display the output image on browser. Pass qaulity of image
Save image to directory, first parameter specify the path, second default is null while quality is 90 by default
Save image as
Replace existing image with new one
Remove temp image after editing and free momory
Free memory
|