/** * Resizes an image and returns the image contents * @param string $image_location * @param integer $dest_width * @param integer $dest_height * @param integer $dest_padding * @return string */ static function resizeImage($image_location, $dest_width = 128, $dest_height = 128, $dest_padding = 5) { $image_resize = new ImageResize(); $image_resize->setSourceImageLocation($image_location); $image_resize->setDestinationImageHeight($dest_height); $image_resize->setDestinationImageWidth($dest_width); $image_resize->setDestinationImagePadding($dest_padding); return $image_resize->resize(); }