Edit
by Andy Upton - 9 years ago (2015-12-23)
I want to modify uploaded images to a specific size
| I want to modify uploaded images to a specific size |
- 1 Clarification request
1.
by Md. Ibrahim Shopon - 7 years ago (2017-06-08) Reply
Ask clarification
3 Recommendations
PHP Image Sizer: Resize images to a given width and height
This class can resize images to a given width and height.
It can take a given GIF, JPEG and PNG image and resize it to a given width and height.
The class can display the image as the current script output or save to a given file.
The quality percentage of the resized image is a configurable parameter.
| by Mohamed Elbahja package author 310 - 8 years ago (2016-07-12) Comment
PHP Image Sizer : Resize images to a given width and height |
Upload Class: File upload handling with image rescaling support
This class is meant to assist in the management of files uploaded via Web forms.
It provides means to copy the uploaded files a separate folder. If the files are images in the GIF, PNG or JPEG format, it may also generate thumbnails by rescaling the uploaded images.
a basic upload script.. You can also resize the uploaded image and create thumbnails with that image
| by Miguel 235 - 9 years ago (2015-12-30) Comment
I use this class and modify some aspect (ex regex) |
This is a simple class that can resize an image of any format supported by the PHP GD library extension.
It can resize an image give its target size values in absolute pixel values or by specifying the size values as a percentage.
In latter, the class can resize the image keeping the aspect ratio using the same percentage for the width and height scales or use different percentage scales to distort the aspect ratio.
The resized image is generated in true color so the original colors are preserved. For this, it is recommended to save the resized images in PNG or JPEG formats, despite the class supports all other formats supported by the GD library.
| by Dave Smith 7620 - 9 years ago (2015-12-29) Comment
This is the one I use. It can handle resize by specified height, width or percentage and maintain aspect ratio. |