$img = "http://muz1ka.lt/images/avatars/aavas%5B1%5D.jpg"; list($width, $height) = getimagesize("$img"); $plotis = $width / 2; $aukstis = $height / 2; echo "<img src='$img' widht='$plotis' height='$aukstis'>";