Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Nick
Imagevue Hitman
Topic Author
Posts: 2872
Joined: 02 May 2006, 09:13

Indexr: Directory listing and utilities script

09 Nov 2010, 06:44

Edit 11 Mar 2020 by mjau-mjau:
Indexr has effectively been replaced by new Files app. See official announcement, view demo or visit website.

---

Related links:
[dead links removed]

Indexr is a small versatile footprint PHP script that lists images and files in any folder on your server. Simply drop the single index.php file into your directory with files or images, and it will list everything in a nice eye-pleasing manner when accessed.

You can use Indexr to quickly set up small gallery, display files for clients online, or simply to resize all images or create thumbnails in a specific folder. You can change sorting order, thumbnail size, CSS and html layout by simply editing the single index.php file. Not only does Indexr list files in folders, but it also creates thumbnails for images and shows additional file information. If you need a simple but pretty directory listing with thumbnails, try Indexr!

PS! Indexr is FREE to download, and is not related to the Imagevue Gallery.
  • List all/any filetypes in a specific directory
  • Resize images or create thumbnails on-the-fly for any folder
  • Displays thumbnail preview for image formats
  • Display full-size images with previous/next navigation
  • Sort files by date, name or extension
  • Filter files by extension
  • Easily Customize CSS and layout
Installation
Simply copy the index.php file into your file directory, and access it from your browser. In the demo below, we simply dropped the Indexr index.php file into our /demo/indexr/ directory:
[dead link removed]

Indexr check if there is thumbs/ folder exists to store thumbnails in, if there is no thumbs/ it will create thumbnails in the current folder.

System Requirements
  • Web server with PHP4 or greater
  • GD2 or ImageMagick is required for thumbnails. One of these will normally exist on your server already.
Customization
You can change some options like sorting, thumbnail-size and allowed extensions by editing the index.php file directly. By changing css and html you can give it any look you want. Simply open index.php in any text-editor.

Options
Code
define('THUMB_PREFIX', 'tn_');
Sets the thumbnail prefix to be used.
Code
define('THUMB_DIMENSIONS', '120x');
Thumbnail dimensions in format of 'WIDTHxHEIGHT'
If only the width is specified (e.g. '160x'), all thumbnails will be one width but different height.
If only the height is specified (e.g. 'x120'), all thumbnails will be one height but different width.
If width and height will be empty both, thumbnail will be a copy of original image.
Code
define('THUMB_QUALITY', '85');
Thumbnail JPG quality
Code
define('DATE_FORMAT', 'd M Y');
PHP Date format, full list of supported date codes
Code
define('ALLOWED_FILES', '*.png|*.jpg|*.gif|*.mp3|*.htm*|*.txt|*.zip');
List of masks for allowed files
Empty string means all files allowed.
You can use shell wildcards:
* - zero or more characters (any);
? - exactly one character (any).
Divide masks with | character.
Code
define('SORT_METHOD', 'date-');
Sorting method with possible values:
  • name+ - sort by name ascending
  • name- - sort by name descending
  • date+ - sort by date ascending
  • date- - sort by date descending
Code
define('NUMBER_OF_COLUMNS', 3);
Number of columns in directory list
firedev.com
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: Indexr: Directory listing and utilities script

19 Jun 2011, 15:47

Is there possibility to filtering images by exif?
f.ex. LensID?

Thank You,
Artur.
 
User avatar
Nick
Imagevue Hitman
Topic Author
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Indexr: Directory listing and utilities script

20 Jun 2011, 12:29

indexr just creates thumbnails and output files, it has no idea about the exif or anything. It doesn't read nor store that data. So it can't do the exif magic.
firedev.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Indexr: Directory listing and utilities script

10 Mar 2020, 07:21

New Files app has been released. Does the same as Indexr and much more!
See announcement