PHP Classes

Resize image on upload: I want to modify uploaded images to a specific size

Recommend this page to a friend!
  All requests RSS feed  >  Resize image on upload  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Resize image on upload

Edit

Picture of Andy Upton by Andy Upton - 9 years ago (2015-12-23)

I want to modify uploaded images to a specific size

This request is clear and relevant.
This request is not clear or is not relevant.

+6

I want to modify uploaded images to a specific size

  • 1 Clarification request
  • 1. Picture of Md. Ibrahim Shopon by Md. Ibrahim Shopon - 7 years ago (2017-06-08) Reply

    N/A

    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.
    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +4

    Picture of Mohamed Elbahja by Mohamed Elbahja package author package author Reputation 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
    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +2

    Picture of Miguel by Miguel Reputation 235 - 9 years ago (2015-12-30) Comment

    I use this class and modify some aspect (ex regex)


    Resize Images: Generate resized images

    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.
    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +2

    Picture of Dave Smith by Dave Smith Reputation 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.


    Recommend package
    : 
    :