photo_gallery
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
photo_gallery [2024/05/01 13:43] – admin | photo_gallery [2024/05/02 14:32] (current) – admin | ||
---|---|---|---|
Line 9: | Line 9: | ||
You may be able to tell I am not a CSS or PHP expert. I just wanted something small (how about 35 lines / 1.41Kb?) with low resources that would work for me and re-create the style of the old Kodak Slides I remember as a child. With this in mind I should caution you that this script may not adhere to the best practices in design and security. If your budgie dies as a result of using it, it's not my fault! | You may be able to tell I am not a CSS or PHP expert. I just wanted something small (how about 35 lines / 1.41Kb?) with low resources that would work for me and re-create the style of the old Kodak Slides I remember as a child. With this in mind I should caution you that this script may not adhere to the best practices in design and security. If your budgie dies as a result of using it, it's not my fault! | ||
### | ### | ||
+ | |||
+ | [[https:// | ||
+ | |||
=== Live Demo === | === Live Demo === | ||
Line 17: | Line 20: | ||
- Web server running Linux and Apache or Lighttpd plus PHP | - Web server running Linux and Apache or Lighttpd plus PHP | ||
- A directory source of .jpg images with lower case file names | - A directory source of .jpg images with lower case file names | ||
- | - < | + | - < |
=== Description === | === Description === | ||
### | ### | ||
- | A single php script that generates thumbnail images and presents them in a ' | + | A single php script that generates thumbnail images and presents them in a ' |
### | ### | ||
- | [[https://trainutz.com|{{wiki:remounts.jpg}}]] | + | === The Code === |
+ | < | ||
+ | <?php $dirname=basename(dirname(__FILE__));?> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | .title{color: | ||
+ | body{background-color:black; | ||
+ | | ||
+ | | ||
+ | | ||
+ | .sheet{margin: | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | |||
+ | <div class=' | ||
+ | <? | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | <?php | ||
+ | | ||
+ | | ||
+ | foreach(glob(" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | echo "<a href=' | ||
+ | < | ||
+ | | ||
+ | ?> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
=== Installation === | === Installation === | ||
- | This is pretty much a manual setup. | + | ### |
+ | This is pretty much a manual setup. | ||
- | < | + | Note: the above is case sensitive |
You should also be aware that if you resize your main images some image programs will wipe out your EXIF data. I use [[https:// | You should also be aware that if you resize your main images some image programs will wipe out your EXIF data. I use [[https:// | ||
+ | |||
+ | That's it. Hope you find this useful. If you have any comments or suggestions for improvements please do let me know. (admint AT cpcnw DOT co DOT uk) | ||
+ | |||
+ | < | ||
### | ### | ||
photo_gallery.1714571015.txt.gz · Last modified: 2024/05/01 13:43 by admin