Forum Moderators: coopster
I have some code like:
[PHP]
//set new height
$size = 150;
$src = imagecreatefromstring ($data);
$width = imagesx($src);
$height = imagesy($src);
$aspect_ratio = $height/$width;
//start resizing
if ($height <= $size)
{
$new_w = $width;
$new_h = $height;
}
else {
$new_h = $size;
$new_w = abs($new_h / $aspect_ratio);
}
[/PHP]
How to implement this as I'm new to this.Need help.
Best of luck!