how would we go about changing the image type from jpg to png or gif, i have tried changing jpg inside the product file and the show.php and having my folder full of nothing but png's
(did the same with gif's) but it just gives me an infinate load when i try to go to my register page.
EDIT*
after reading a little about the whole GD rendering from
http://www.php.net/manual/en/function.imagepng.php
i tried changing my show php to:
PHP Code:
session_start();
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
require_once('./global.php');
$percent = $vbulletin->options['eic_imgsize'] / 100;
$d = dir($vbulletin->options['eic_imgpath']);
while (false !== ($entry = $d->read()))
if (substr($entry,-4) == '.png')
$answers[] .= $entry;
$image = $_SESSION['show_images'][$_SERVER['QUERY_STRING']-1];
$im = imagecreatefrompng($vbulletin->options['eic_imgpath'].'/'.$answers[$image-1]);
list($width, $height) = getimagesize($vbulletin->options['eic_imgpath'].'/'.$answers[$image-1]);
$newwidth = $width * $percent;
$newheight = $height * $percent;
$thumb = imagecreatetruecolor($newwidth, $newheight);
imagecopyresized($thumb, $im, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
header("Content-type: image/png");
imagepng($im);
imagedestroy($im);
i thought that would do it, but seems to still give me an infinate load.
also, this version is new than the one posted in the 3.8 section correct?