Photo archive
Photo Archive is a PHP based script that can generate a file browser style environment within a web browser for viewing photos on a web server.
To install:
1) Upload the contents of the zip file to the desired location on your web server.
2) Upload your images or folders of images to the ‘images/’ directory.
3) Open a web browser and go to the location of the ‘Photo Archive’ ript, browse & enjoy.
Requirements:
PHP 4.3.0 or higher
Change-log:
Version 1.3
-
Added code to automatically generate thumbnails for each image when users view a gallery.
- When viewing galleries with more than one page the arrow keys and B (back)/N (next) keys have been bound to changing page.
- Information txt links have been moved to show after the list of subdirectories giving a more streamlined appearance.
- When viewing galleries with more than one page the previous and next buttons have been enlarged to the full height of the contents div along with being given a pastel background.
Version 1.2
- Replaced lightbox with colorbox due to it’s ability to display a wider range of content and smaller size.
- Added a preview of the contents of each folder on hover.
- Added the ability to read .txt files to allow users to include an information file within each folder.
Version 1.1
- Cosmetic work to enhance the look and feel
- Worked on PHP code to display images in alphabetical order (0-9, A-Z, a-z)
Viewing the folder structure, along with the preview images by hovering over a folder:
Viewing a folder containing images, a sub folder and a .txt file:
Viewing an enlarged image by clicking on the thumbnail:
Viewing the contents of a .txt file by clicking the information link provided:
This software is provided free of charge without any warranty. We appreciate the ‘Powered by’ section of the footer being left intact.
February 27, 2015 at 4:46 pm
Excellent your code, but I have a doubt as would to sort images by creation date … ???
February 27, 2015 at 4:53 pm
Hello Oscar,
At present there is no option to sort the photos by date, although this would be possible to do by accessing the EXIF data and could be included in a later release. I will see if I can find some time to include this option soon.
Jim
May 4, 2020 at 6:13 pm
Hi, I installed the Photo Archive script on my site and I’m happy: it’s simple and efficient. I am sorry that it does not create thumbnails in the folders created in the images directory. I am available to buy the script in order. Thanks
July 14, 2020 at 6:50 pm
Hello Severino,
Apologies for the delay in my reply.
There is a slightly more up-to-date version of the gallery script on github which can be found here – https://github.com/f13dev/PHP-Photo-Archive
The updated version addresses a number of bug fixes, I will adjust this page soon to reflect the updated version.
All the functionality is available without cost. If thumbs are not generating for you, there is a couple of things to try:
* Ensure either PHP-GD or Imagick are installed and active on the web server (you can change between GD and imagick thumb generation in the config file).
* Ensure the thumbs directory is writable. If you have SSH access on a linux server, this can be done with the command ‘chmod 0644 -R /path/to/thumbs’
Please let me know if this doesn’t resolve the issue for you and I will try and help as best I can. I have recently started a new job so response times may be a little slow.
Regards
Jim
February 27, 2015 at 5:01 pm
Hi Jim, would be great if you help me with that, I love your script because, unlike others, this tumbs created as load, does not create together.
Thank you very much for the help Jim, I appreciate what you can do for me.
Thank You
August 22, 2015 at 10:05 am
Really nice work. Any idea how I can change the size of the pic when I click on a tumb? The png are smaller as the pics Oo…! Any plan for a responsive design?
September 29, 2020 at 7:46 pm
I find this software to be beyond my expectations! A competitor whose name begins with a P is bloated in comparison to what you’ve done here! Many thank yous and I _will_ leave the ownership tag right where you left it!
I’ll be recommending this to a few of my developer friends as I get chances to communicate with them!!
Thanks again,
Jeanae
October 4, 2020 at 1:22 pm
Hello Jeanae,
I am glad to hear you like the photo archive script and wish to spread the word. Please feel free to modify it in any way that suites your requirements. This was designed to be a very simple starting point that can be modified easily depending on what is required.
Regards
Jim