note 25450 added to function.imagesx

From: Date: Tue, 24 Sep 2002 13:49:15 +0000
Subject: note 25450 added to function.imagesx
Groups: php.notes 
Request: Send a blank email to php-notes+get-37185@lists.php.net to get a copy of this message
Este é um exemplo para retornar uma imagem .gif em suas dimensões reais: <?php $img = imagecreatefromgif('http://www.you.com/image_directory' . $image_var); $height = imagesy($img); $width = imagesx($img); echo '<img src="path/' . $image_var . '" width="' . $width . '" height="' . $height . '">'; Onde $image_var é a variável do GIF conseguido através de um form ou consulta ao banco de dados. ?> -- http://www.php.net/manual/en/function.imagesx.php http://master.php.net/manage/user-notes.php?action=edit+25450 http://master.php.net/manage/user-notes.php?action=delete+25450 http://master.php.net/manage/user-notes.php?action=reject+25450

« previous php.notes (#37185) next »