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 images and display them in the browser or save images 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 an image with the exact width and height passed, for example, 200x200. To resize an image using the aspect ratio set the third parameter to true
Blur image
Once image manipulation is done, display the output image on the browser. Pass quality of the image
Save an image to a directory, the first parameter specifies the path, the second sets the image naming option, and the third is image quality (90 by default)
Save image as
Replace the existing image with a new one
Remove temp image after editing and free memory
Free memory
|