Well, I found some in php.net, I see that I can resized image to smaller one
<?php// File and new size$filename = 'file.jpg';$percent = 0.2;// Content typeheader('Content-type: image/jpeg');// Get new sizeslist($width, $height) = getimagesize($filename);$newwidth = $width * $percent;$newheight = $height * $percent;// Load$thumb = imagecreatetruecolor($newwidth, $newheight);$source = imagecreatefromjpeg($filename);// Resizeimagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);// Outputimagejpeg($thumb); ?>
everything is all right but when I try to put something at the bottom of the code
.....// Outputimagejpeg($thumb); echo "Hello World";?>
resized image appear but the text doesn't appear