Photodir Info
Home

Photodir Information & Tutorial

General Infos:

The focus of the Photodir photo gallery lies in very »simple«. All used text and data are extracted from the photos IPTC data (and EXIF data). The photos are managed on a local computer. Only a copy must be stored on the server. Photodir is only a software for displaying photos and not a photo managing tool. The displayed resized images are created on the fly by the first page visit (consider the lazy image load by thumbnails). The »simple« requires a bit of discipline.

Default plug-ins:

In the Photodir (download) are few self coded plug-ins allready included. All for the photo single page. For the deactivation of a plug-in please delete each plug-in folder.

Explanations:

Photo resize file cache:

Album thumbnail and album title and description:


Consider: Each photo folder must have a photo file with the same folder name in the same folder.
Hint: Mouse hover the folders and see the associated photo file.
(case sensitive)
┬
└┬photos
 ├┬─autumn
 │├─spring
 │├┬summer
 ││├─2010
 ││├┬2020
 │││├─07-July
 │││├─08-August
 │││└┬07-July.JPG	→ Thumbnail and IPTC for album "summer/2020/07-July/".
 │││ └08-August.JPG	→ Thumbnail and IPTC for album "summer/2020/08-August/".
 ││├─2010.JPG	→ Thumbnail and IPTC for album "summer/2010/".
 ││└─2020.JPG	→ Thumbnail and IPTC for album "summer/2020/".
 │├─winter
 │├─autumn.jpg	→ Thumbnail and IPTC for album "autumn/".
 │├─spring.JPG	→ Thumbnail and IPTC for album "spring/".
 │├─summer.JPG	→ Thumbnail and IPTC for album "summer/".
 │└─winter.jpg	→ Thumbnail and IPTC for album "winter/".
 └photos.jpg	→ IPTC for startpage.

Sort photos and albums:

Recommended restrictions:

IPTC/EXIF:

IPTC

Photo title & description

The Photo Gallery works also without IPTC and EXIF.
Title: If IPTC title don't exist, the filename without file extension is used as the title.
Description: If IPTC description don't exist, the description will be empty.

EXIF



Installation manual & usage


Installation

  1. Download the Photodir zip file.
  2. Upload the Photodir zip file on the server.
  3. Unzip the Photodir zip file.
  4. Optional: Configurate your Photodir in the config.php file.
  5. Upload your photo folders in the photos directory.

Requirements

The Photodir requires PHP (version 8 and newer recommended) and PHP ImageMagick.

Usage

Beginners:
Amateurs:
Experts:
Specialists:
Download Page


Modification & extensions

Modification

Custom style: The style is modifiable with CSS in the style-custom.css. This CSS will be overwrite the default CSS, except the custom code and plug-ins styles.

Own CSS files: It is possible to insert own *.css files in the HTML head via the customcode-head.php. This CSS will be overwrite the default CSS, except the plug-ins styles.

Custom code (small): The Photodir is modifiable with PHP and JavaScript in the customcode-head.php and customcode-foot.php. This is for small modifications. Read more about this directly in this files. This both files are automatically included.

Custom code (medium): For more than small custom code use the directory customcode and include the code files from that in the customcode-head.php and customcode-foot.php (PHP: include __DIR__ . "/customcode/example.php" or include __DIR__ . "/customcode/example.html"). This is for medium modifications.

Extensions (Plug-ins)

Plug-ins: The Photodir is modifiable with PHP and JavaScript via plug-ins in the directories plugins-head and plugins-foot. This is for larger modifications.

Plug-ins manual: For each plug-in create a own directory in the directory plugins-head or plugins-foot. In this own plug-in directory it is required to save a index.php (Example: plugins-foot/photo-lightbox/index.php). Via this index.php it is possible to include more files in this plug-in base file that are stored in this own plug-in directory (PHP: include __DIR__ . "/html.php") or somewhere else.

Plug-ins loading: All index.php files in all own plug-in directories in plugins-head and plugins-foot are automatically loaded.

Plug-ins sort: Sort the plug-ins by his directory names.


Annotation

Software license

Bugs & Issues

By problems and questions please write a email.




PayPal Spenden Button
© Photodir.de
Imprint