Photodir CSV Info
Home

Photodir CSV Information & Tutorial

General Infos:

The focus of the Photodir photo gallery lies in very »simple«. All used text and data are extracted from CSV files. 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: Inside each photo folder must be a CSV file with the folder name.
Consider: Each photo folder must have photo files with the same folder names in the folder.
Hint: Mouse hover the folders and see the associated photo file.
(case sensitive)
┬
└┬photos
 ├─autumn
 ├─spring
 ├┬summer
 │├─2000
 │├─2010
 │├┬2020
 ││├─August
 ││├┬July
 │││├July.csv	→ CSV for photos inside album "July/"
 │││├IMG0001.JPG
 │││├IMG0002.JPG
 │││└IMG0003.JPG
 ││├2020.csv	→ CSV for albums inside "2020/".
 ││├August.jpg	→ Thumbnail for album "August/".
 ││└July.jpg	→ Thumbnail for album "July/".
 │├─2000.jpg	→ Thumbnail for album "2000/".
 │├─2010.jpg	→ Thumbnail for album "2010/".
 │├─2020.jpg	→ Thumbnail for album "2020/".
 │└─summer.csv	→ CSV for albums inside "summer/".
 ├index.csv	→ CSV for startpage "/".
 ├photos.csv	→ CSV for albums inside "photos/".
 ├autumn.jpg	→ Thumbnail for album "autumn/".
 ├spring.jpg	→ Thumbnail for album "spring/".
 └summer.jpg	→ Thumbnail for album "summer/".

Consider: Each folder required a CSV file with filename of the current folder and data for the inside subfolders or files.
Consider: Each folder required a CSV file for the subfolders or files inside the inside subfolders.
Consider: Without a thumbnail for a album, a placeholder thumbnail is used.

Sort photos and albums:

Recommended restrictions:


The file extension of the photo files is not prescribed. (jpg or JPG is allowed)
The file extension of the album thumbnails must be set in the config.php

Recommended restrictions:



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.
  6. Recommended: Upload only photos with a hardcoded watermark.
  7. Recommended: Upload only photos with the configurated maximum width and height.
  8. Please be fair and make a donation.

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.

CSV table (possible for custom)

It is possible to expand the CSV tables with more columns.

All columns are saved with his column name as array key in this PHP variables:

For more infos, see in the index-core-functions.php

IPTC (possible for custom)


All IPTC Data are saved in this PHP variables as array:

EXIF (possible for custom)


All EXIF Data are saved in this PHP variables as array:


Annotation

Software license

Bugs & Issues

By problems and questions please write a email.




PayPal Spenden Button
© Photodir.de
Imprint