I\'m using a neat little php script to resize my images to fit in a 300x300 pixel square, while keeping the aspect ratio. I got the script from here.
Here is the whole s
You can make use of the imagescale() available from PHP 5.5.0 to simplify your process of re-sizing/scaling images.
5.5.0
Such that...
$imgresource = imagecreatefromjpeg("pathtoyourimage.jpg"); imagescale($imgresource, 500, 900, IMG_BICUBIC);