Codice PHP:
$path 'IMMAGINI/'// o il path esatto che ti serve

foreach ( glob($path.'*') as $file ) {
    if ( 
is_file($file) AND preg_match('/\\.(jpe?g|gif|png)/i'$file) ) {
        list(
$width$height) = getimagesize($file);
        echo 
"<img src=\"$file\" width=\"$width\" height=\"$height\">\n";
    }