View file tennis/komanda/chm/gal/pic.php
<?php function pic($name_big) { header('Content-type: image/jpeg'); list($width, $height) = getimagesize($name_big); $s_im=imagecreatefromjpeg($name_big); $d_im=imagecreatetruecolor(33, 33); imagecopyresampled($d_im, $s_im, 0, 0, 0, 0, 33, 33, $width, $height); imagejpeg($d_im); } if (isset($_GET['id'])) { pic($_GET['id']); } ?>