Img API Reference
Handle images. Those functions are used when you use images in the web application.
getSize($filePath)
Return image's width and height via dom variable.
resize($filePath, $dstFilePath, $destWidth, $destHeight)
Resize image into a new image with specified width and height.