Dynamic generation of thumbnails from directory

fpbear

Joined: 2006-09-23
Posts: 5
Posted: Tue, 2008-12-09 19:25

I can't believe this feature doesn't exist somewhere.. My webcam uploads images to the server. I would like to view these images in Gallery but the images (and thumbnails) would need to be pulled into Gallery automatically as new images arrive, and as old ones expire and are deleted from the directory. I was using the phpAutoGallery script but hoping for something that works the same way with Gallery.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2008-12-10 00:33
Quote:
My webcam

Have you seen: http://codex.gallery2.org/Gallery2:Modules:webcam

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fpbear

Joined: 2006-09-23
Posts: 5
Posted: Wed, 2008-12-10 00:43

I have seen the webcam plug-in but what I had in mind is to display the photos already in the web server directory (archive), rather than refreshing a single image straight from the cam. These files are written to the web server so that if something happened in front of the camera, it can be stored safely. The dynamic gallery feature (if such existed) would allow me to quickly review the photos for anything interesting or suspicious. The files continue to change on a rolling basis.. next time I hit refresh, the old images are gone and new ones appear. The filenames are just based on the current date/time.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2008-12-10 04:58

There is a recent modification that uses a cron job to add itmes. Search and yous should find it.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fpbear

Joined: 2006-09-23
Posts: 5
Posted: Thu, 2008-12-11 06:11

Ok after realizing Gallery doesn't have something close to what I need, I found a simple gallery script that works great for this purpose:

http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

 
Rivman
Rivman's picture

Joined: 2010-04-20
Posts: 2
Posted: Tue, 2010-04-20 21:37

Hello ,

Sorry for diging up old threads from 2008, but the question from fpbear is the same as mine. I need to "create" a gallery from a dynamic directory (photos are uploaded by IP camera). I have cron on the webhosting service, please advice me how I cand use it , i've searched for a solution but i can't find one. If not cron, then other solutions are welcomed.
Thank you for your time.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-04-20 22:22

If you want to use Gallery there is this as an option:
http://gallery.menalto.com/node/81010#comment-284733

As well as the webcam plugin Dave posted a link to above.

Otherwise Gallery may be overkill for what you want.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fpbear

Joined: 2006-09-23
Posts: 5
Posted: Tue, 2010-04-20 22:33

After my original post I found the perfect solution. I've been using the PHP Photo Album Script from Dynamic Drive. It is way better than using Gallery for this specific purpose of dynamic thumbnail generation. I use it for my webcams. This one is faster than other scripts I tried out.

http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2010-04-20 23:27

Just as a bit of background, G2 does generate thumbnails (or other derivatives) automatically if they do not already exist at the time they are requested by a browser. What is not automatic is the "import" of the original image entering it into the database so it appears in an album. The import of the image and the creation of the thumbnail are two different processes in G2.

 
fpbear

Joined: 2006-09-23
Posts: 5
Posted: Tue, 2010-04-20 23:43

alecmyers, what you say is technically correct; however from a practical viewpoint the lack of an automatic import feature makes it hard to use G2 as a webcam image history viewer. I found the PHP Photo Album Script mentioned above to fill this void wonderfully for this special purpose.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2010-04-21 00:11
Quote:
alecmyers, what you say is technically correct; however from a practical viewpoint the lack of an automatic import feature makes it hard to use G2 as a webcam image history viewer.

Indeed, I'm sure it does. I just wanted to make the point so that when someone reads this thread in the future they don't get unnecessarily confused about whether G2 does or doesn't generate thumbnails automatically.

Quote:
I found the PHP Photo Album Script mentioned above to fill this void wonderfully for this special purpose.

Great that you found something appropriate, and thanks for posting the details to help others find solutions for their needs.

 
Rivman
Rivman's picture

Joined: 2010-04-20
Posts: 2
Posted: Thu, 2010-04-22 16:04

Hello.
Glad to hear that you found a suitable solution for your request.
The solution presented by ftBear don't meet my needs. I need to have a database to store the date of photos because each day there are more than 500 photos. These photos are stored for 90days and i need a "calendar" like table in wich I can chose, if I click on a day for example, to show only the photos taken on that respective day. Imagine how dificuly would be to watch more than 60.000 photos to find the one I need. Thé photos are 640x480.
Thank you for further advices.