thanks guys
Got a little new guestion.
I can make a normal thumbnail out of a screenshot like this:
$name = "usermade/" . $gamedir . "/images/".$bestandsnaam;
$filename = "usermade/" . $gamedir . "/images/thumbs/".$bestandsnaam;
$thumb_w = "85px";
$thumb_h = "62px";
if (preg_match("/jpg|jpeg/",$extl)){
$src_img=imagecreatefromjpeg($name);
}
if (preg_match("/png/",$extl)){
$src_img=imagecreatefrompng($name);
}
$old_x=imageSX($src_img);
$old_y=imageSY($src_img);
$dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);
imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);
if (preg_match("/png/",$extl)){
imagepng($dst_img,$filename);
} else {
imagejpeg($dst_img,$filename);
}
imagedestroy($dst_img);
imagedestroy($src_img);
// eind Thumb Maken
It works but it looks very shitty
How do i make thumbnails like photshop does?