1
I have been new to XOOPS framework,so i have some problems with that.I want to resize images and don't save resized images in my computer,when i show in framework,there're alot of binary codes(not the images i expect!!!).The function i use to resize an image and show it in framework :
function CreateThumnail($file_name)
{
// Get new sizes
header('Content-type: image/jpeg');
list($width, $height) = @getimagesize($file_name);
$newwidth = 200;
$newheight = 200;
// Load
$thumb = @imagecreate($newwidth, $newheight);
$source = @imagecreatefromjpeg($file_name);
// Resize
@imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
// Output
@imagejpeg($thumb);
}
Who's experienced with that problem,please help me
,thanks for reading my problem