How To Add Image Size Pixels In Gallery ?
Started on the old forum in April 2008 · view the original in the archive · old links redirect here
list($width_orig, $height_orig) = getimagesize("http://2wap.org/forum/uploads/image.jpeg");
Advertise your mobile site for FREE with AdTwirl
Get Image By MIME Types !
<?php
$size = getimagesize($filename);
$fp = fopen($filename, "rb");
if ($size && $fp) {
header("Content-type: {$size['mime']}");
fpassthru($fp);
exit;
} else {
// error
}
?>
Get Image By File
<?php
list($width, $height, $type, $attr) = getimagesize("img/flag.jpg");
echo "<img src=\"img/flag.jpg\" $attr alt=\"getimagesize() example\" />";
?>
Get Image By URL
<?php
$size = getimagesize("http://www.example.com/gifs/logo.gif");
// if the file name has space in it, encode it properly
$size = getimagesize("http://www.example.com/gifs/lo%20go.gif");
?>
I use only
example
$sql = "SELECT id, sex, imgurl FROM ibwf_gallery ORDER BY uid";
$img = $sql[2];
list($width, $height, $type, $attr) = getimagesize("$img");
$imgsize = $attr;
echo "$imgsize";
dommer as grond op die site lol mense soek goed mar weet nie eens wat om daarmee te maak nie