<b>Fatal error</b>: Call to undefined function: imagecreatetruecolor() in <b>/home/t/twojrobot/public_html/nic/re.php</b> on line <b>17</b><br />
a to jeden ze skryptow
<?php function resizeImage($filename, $newwidth, $newheight){ if($width > $height && $newheight < $height){ $newheight = $height / ($width / $newwidth); } else if ($width < $height && $newwidth < $width) { $newwidth = $width / ($height / $newheight); } else { $newwidth = $width; $newheight = $height; } $thumb = imagecreatetruecolor($newwidth, $newheight); $source = imagecreatefromjpeg($filename); imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); return imagejpeg($thumb); } $myimage = resizeImage('test.jpg', '150', '120'); ?>