
część kodu...
<?php $filename = $sciezka1; if($_POST['roz'] == "ok") { $width = 1024; $height = 768; } else {} $new_width = $width; $new_height = $height; $image_p = imagecreatetruecolor($new_width,$new_height); $image = imagecreatefromjpeg($filename); imagecopyresized($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height); $zdjecie_org = './fotografie/'.$_POST[dzial].'/'.$numer.'.jpg'; imagejpeg($image_p,"$zdjecie_org", 90); ImageDestroy($image_p); ImageDestroy($image); ?>