Editor: 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.