image gallery thumbnail
Posted: Wed Jun 21, 2006 9:44 am
Hi Im having a little issue /probelm with the imagegallery. I'm using the latest versions.
Its all fine except the quality of the thumb. I think my client may pull me up on it. Is there a way to increase the quality??
I was looking the code:
Is there any way to change this?
As usual any help is greatly appreicated...
Its all fine except the quality of the thumb. I think my client may pull me up on it. Is there a way to increase the quality??
I was looking the code:
Code: Select all
//Else we are on thumb generation & normal page
$output .= '<div id="'.$divID.'">'. "\n";
$i = 1;
foreach($liste as $key => $value) {
$bigPic = $picFolder . $value;
list($bigPicWidth, $bigPicHeight) = getImageSize($bigPic);
$thumbPic = $picFolder . 'thumb_' . $value;
$thumbSize = @getImageSize($thumbPic) or ($thumbSize[0] = 100) and ($thumbSize[1] = 100);
$output .= '<div class="thumb">';
if($type == "click") $output .= '<a href="' . $self . '&img=' . $key . '">' . "\n";
if($type == "popup") $output .= '<a href="javascript:PopupPic(\'' . $bigPic . '\',\'' . ($key+1) . '\',\'' . $bigPicWidth . '\',\''. $bigPicHeight . '\')">' . "\n";
$path_parts = pathinfo($bigPic);
$extension='.'.$path_parts['extension'];
$ImageFileName = basename($bigPic);
$bigPicName = basename($bigPic, $extension);As usual any help is greatly appreicated...