resizeImage

Resizes src_img proportionally to fit within max_width and max_height limits if it is too large. If GD2 is present, it'll use it to achieve better quality. It saves the new image to destination_filename, as preferred_format if possible, default is jpeg. uses Imagemagick (IMagick or MagickWand extension) or GD
Parameters Summary
resource $src_img
string $destName
int $src_width
int $src_height
int $max_width
int $max_height
bool $force_resize = false
int $preferred_format = 0