I have an upload script wich creates thumbnails from an uploaded picture. This is working fine and the thumbs are from excellent quality. But now I want to add @ the bottom of the thumbnail the original size of the picture (as picture or text)
$imagesize = getimagesize($fullpath);
$th_sizeheight = '150';
$th_sizewidth = round(($imagesize[0] * $th_sizeheight) / $imagesize[1]);
if (strpos($filename,".jpg") !== false or strpos($filename,".jpeg") !== false) {
$src_img = ImageCreateFromJpeg($fullpath);
$extension = ".jpg";
} elseif (strpos($filename,".png") !== false) {
$src_img = ImageCreateFromPng($fullpath);
$extension = ".png";
}
$dst_img = imagecreatetruecolor($th_sizewidth,$th_sizeheight);
imageCopyResampled($dst_img, $src_img, 0, 0, 0, 0, $th_sizewidth,$th_sizeheight, $imagesize[0], $imagesize[1]);
imagejpeg($dst_img,$fullthumbpath,100);
ImageDestroy($src_img);
ImageDestroy($dst_img);