Filtering image types

By default the Dead Simple Gallery supports JPEG, GIF and PNG files, and will look for these files inside your gallery folder. You can force it for example, to display only PNG files from the folder, by setting $dsg_allow_gif and $dsg_allow_jpg variables to FALSE:

<?php
  // force the script to ignore JPEG and GIF images,
  // it will only look for PNG images in your gallery
  $dsg_allow_gif = FALSE;
  $dsg_allow_jpg = FALSE;
?>
...
<?php include 'dsg.php'; ?>

If you would prefer to display all images but PNG, just set $dsg_allow_png to FALSE:

<?php
  // force the script to ignore PNG images
  $dsg_allow_png = FALSE;
?>
...
<?php include 'dsg.php'; ?>