@imagepng($thumbnail); break; default: image_no_thumbnail('thumb_' . $pic_title_reg . '.' . $pic_filetype); exit; break; } exit; } // Old Thumbnails - END $Image = new ImgObj(); $Image->ReadSourceFile($pic_fullpath); $Image->Resize($thumbnail_width, $thumbnail_height); if ($album_config['show_pic_size_on_thumb'] == 1) { $dimension_string = intval($pic_width) . 'x' . intval($pic_height) . '(' . intval(filesize($pic_fullpath) / 1024) . 'KB)'; $Image->Text($dimension_string); } if ($album_config['thumbnail_cache'] == 1) { $Image->SendToFile($pic_thumbnail_fullpath, $album_config['thumbnail_quality']); //@chmod($pic_thumbnail_fullpath, 0777); } $Image->SendToBrowser($pic_title_reg, $pic_filetype, 'thumb_', '', $album_config['thumbnail_quality']); if ($Image == true) { $Image->Destroy(); exit; } else { $Image->Destroy(); image_no_thumbnail('thumb_' . $pic_title_reg . '.' . $pic_filetype); exit; } }
$image_exif_data_short[$exif_key] = str_replace(array('DIGITAL', ' '), array('', ' '), $image_exif_data_short[$exif_key]); $image_exif_data_short[$exif_key] = strlen($image_exif_data_short[$exif_key]) >= 23 ? substr($image_exif_data_short[$exif_key], 0, 18) . '...' : $image_exif_data_short[$exif_key]; } else { $process_tag = false; } } if (!empty($process_tag)) { $exif_data_array[] = $image_exif_data_short[$exif_key]; } } } $image_text_output = (!empty($exif_data_array) ? implode(' - ', $exif_data_array) . ' - ' : '') . $image_text_output; } } $image_text_output = str_replace(' - 0BYTES', '', $image_text_output); $Image->Text($image_text_output); } if ($config['thumbnail_cache'] == true) { $Image->SendToFile($pic_thumbnail_fullpath, $config['thumbnail_quality']); //@chmod($pic_thumbnail_fullpath, 0777); } $Image->SendToBrowser($pic_title_reg, $pic_filetype, 'thumb_', '', $config['thumbnail_quality']); if ($Image == true) { $Image->Destroy(); exit; } else { $Image->Destroy(); image_no_thumbnail('thumb_' . $pic_title_reg . '.' . $pic_filetype); exit; } }