/////////////////////////////////////////////////////////////////////////////// // Martin's Photo Frame, v2.1 http://dougiamas.com/photoframe // // Displays a directory full of JPG images simply and easily. // It will also create thumbnails and display JPEG comments if it finds them. // // Requirements: A web server with these installed (most new Linux dists do): // - PHP4, http://www.php.net // - GD 1.8.3, http://www.boutell.com/gd // - libjpeg 6b, ftp://ftp.uu.net/graphics/jpeg/ // // How to use: 1. Store all your JPG images in a directory on your server // 2. Save this file in that directory as index2.php // 3. Make sure the web server has write permissions so // that it can create a sub directory for thumbnails. // eg mkdir thumb ; chown nobody thumb // (optional) 4. Change any of the settings below to suit. // (optional) 5. Add an intro.html file if you like. // (optional) 6. Add header.html and footer.html files if you want // to change page colours, layout or styles. // (optional) 7. Add a sortfile if you want to control the order of // the photos, rather than the default alphabetical order. // Just make a simple text file with one filename per line. // eg ls -1 *.jpg > sortfile (and then edit with vi) // /////////////////////////////////////////////////////////////////////////////// // // Settings you might want to change: $title = "Ear Shot Raw"; // Title for the overall web page $marginsize = 150; // Size of left-hand frame with thumbnails $imagesize = true; // Resize images to fit window? true/false $thumb = "./".$dirname."/thumb"; // Directory where thumbnails are stored $getcomment = "/usr/local/bin/rdjpgcom"; // To extract JPG comments (part of libjpeg) $introfile = "intro.html"; // If it exists, will be displayed up front $headerfile = "header.html"; // If it exists, will be included at top $footerfile = "footer.html"; // If it exists, will be included at bottom $sortfile = "sortfile"; // If it exists, contains filenames in order /////////////////////////////////////////////////////////////////////////////// ?>