Is there a thumbnail directory?
|
ZLevine
Joined: 2006-10-03
Posts: 7 |
Posted: Tue, 2006-10-03 00:33
|
|
Hello there! I'm using a simple PHP script on the website hosting the Gallery 2 system to display a random thumbnail from the gallery. Since this code is separate from G2, it's designed to automatically compile a list of the images in a directory and then shuffle them each time the page is changed or reloaded. The system works great! However, I need to feed this system the location of a directory the thumbs are stored. I just installed G2 days ago and am not familiar with how it works quite yet; I'm assuming that one of the image modules creates thumbnails and displays them on-the-fly, but is it possible to have the system generate thumbnails? Or is there a directory I'm not finding that thumbnails are stored? I have Gd and NetPBM installed. Thanks a bunch! Zach |
|
| Login or register to post comments |

Posts: 32356
there's a random image module in g2.
http://codex.gallery2.org/index.php/Gallery2:Modules:imageblock
your other approach, going for the folder with thumbnails won't work because gallery stores them
a) as files with a .dat extension and
b) in g2data/cache/derivative/ in a decimal tree of folders.
Posts: 7
That worked flawlessly! Thank you so much!
Posts: 7
Is there any way to specify a target with the link generated from that?