Kod
if ($name['ext']=='jpeg' || $name['ext']=='jpg'){
$img = imagecreatetruecolor($width, $height);
$temp_img = imagecreatefromjpeg ($path);
}
imagecopyresampled($img, $temp_img, 0, 0, 0, 0, $width, $height, $old_width, $old_height);
$img = imagecreatetruecolor($width, $height);
$temp_img = imagecreatefromjpeg ($path);
}
imagecopyresampled($img, $temp_img, 0, 0, 0, 0, $width, $height, $old_width, $old_height);
wykłada sie przy takich plikach w 2 i 5 linijce ...
help please !