An example thread of pictures too wide, no offense to the author, can be seen here
Here's an example of what I'm talking about:
![]()
Djinn Effer
Inde
![]()
Savio
![]()
Djinn Effer
![]()
Amity and Truth
<?
/* Configure your maxsize here. The $image variable SHOULD be in the
sourcecode somewhere but i dont know how
vBulletin named it. Just rename it in my function.*/
$img_maxwidth = 635;
// array[0] = width, array[1] = height
$img_size = getimagesize ($image);
if ($img_size[0] >= $img_maxwidth)
{
$perc = $img_maxwidth / $img_size[0];
$img_size_width = round($img_size[0] * $perc);
$img_size_height = round($img_size[1] * $perc);
echo "<img src=$image width=\"$img_size_width\" height=\"$img_size_height\">
<br><a href=$image> Image Resized, click here to view original version</a>";
}
else
{
echo "<img src=$image>";
}
?>