Hi,
I've created this function:
that enables me to resize images to size of 54*54, however I don't know how to send the function the image with php, and upload it to the server.PHP Code:function resizeImage($originalImage){
list($width, $height) = getimagesize($originalImage);
$new_width = 54;
$new_height = 54;
// Resize the original image
$imageResized = imagecreatetruecolor($new_width, $new_height);
$imageTmp = imagecreatefromjpeg ($originalImage);
imagecopyresampled($imageResized, $imageTmp, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
return $imageResized;
}
Any help?
Thanks![]()



Reply With Quote

Bookmarks