// velicina slike i resizanje
$thumbsize=180;
list($width, $height) = getimagesize($target_path);
$imgratio=$width/$height;
if ($imgratio>1)
{
$th_width = $thumbsize;
$th_height = $thumbsize/$imgratio;
}
else
{
$th_height = $thumbsize;
$th_width = $thumbsize*$imgratio;
}
$tmp_img = imagecreatetruecolor($th_width, $th_height);
s ovim generiram taj image i resajzam ga...
a ovim ga speremim u fajl i upišem u njega dimenzije i velicinu
if (($tip == "image/jpeg") || ($tip == "image/jpg"))
{
$img_jpeg = imagecreatefromjpeg('$target_path');
imagecopyresized($tmp_img, $img_jpeg, 0, 0, 0, 0, $th_width, $th_height, $width, $height);
$black = imagecolorallocate($tmp_img, 0, 0, 0);
imagefilledrectangle($tmp_img, 0, ($height-20) , $width, $height, $black);
$tekst = imagecolorallocate($tmp_img, 0xFF, 0xFF, 0xFF);
ImageTTFText($tmp_img, 10, 0, 5, 20, $tekst, "Verdana", "$dimenzije_x x $dimenzije_y $velicina kb");
imagejpeg($tmp_img,"slike/$direktorij/th/$datoteka_name",75);
imagedestroy($tmp_img);
}
sve sam probao i nemam ideju zašt je najednom prestalo radit
probao sam i restartat apachija i ništa...