ceil -- Redondear fracciones hacia arriba
este script en la parte de arriba tiene las opciones para modificar su funcionamiento
Código PHP:
// --begin editable region
// Root directory
$root_dir = ".";
// Thumbnail Columns <<---- NUMERO DE IMAGENES A MOSTRAR POR LINEA
$columns = 5;
// Maximal size of thumbnails in pixel <<----TAMANO DE LA IMAGEN MINIATURA
$thumbwidth = 100;
// Slideshow 0=no 1=yes <<----- SI QUIERES QUE SE DESPLASEN LAS FOTOS AUTOMATICAMENTE
$slideshow = 0;
// --end editable region