Generando Miniaturas...
";
// Iterate over all club photos and generate thumbnails if they don't exist
$club_cal_folders = array_filter(glob("/DATA/club/IMG/*"), 'is_dir');
foreach ($club_cal_folders as $cal_folder) {
$personas = array_filter(glob("$cal_folder/*"), 'is_dir');
foreach ($personas as $persona) {
$fotos = preg_grep('/^([^.])/', scandir($persona));
foreach ($fotos as $foto) {
$foto_path = "$persona/$foto";
$thumbnail_path = "$foto_path.thumbnail";
if (file_exists($thumbnail_path)) {
continue;
}
// Extension is not thumbnail
if (strtolower(pathinfo($foto_path, PATHINFO_EXTENSION)) == "thumbnail") {
continue;
}
generatethumbnail($foto_path, $thumbnail_path, 240, 0);
echo "Generated thumbnail for $foto_path
";
flush();
}
}
}
echo "Proceso completado.
";
break;
case "index":
default:
?>
Generar Miniaturas para Fotos del Club
Desde esta sección puedes generar miniaturas para las fotos subidas al Club que aún no las tengan.