Member
Member
3stripe   2006-04-24, 13:53
#1

Hi folks,

I build a lot of Flash websites, and usually use SlideShowPro if I need some simple image capacities (as it's updatable via XML). Sometimes you need more control over these images though - drag and drop re-ordering, auto-thumbnailing etc would all be a great boon if available to a client....

So, I was just wondering how hard it would be to hook Zenphoto up to Flash with some actionscript?

Obivously you would need one or two different components in Flash to display the images - maybe a thumbnail style gallery, and a slideshow type holder.... the other problem I guess is that the coding would probably be much easier if there was something more concrete for the Flash to hook up to, like a feed or xml file?

Not going to go into any detail as I'd be interested to hear what you might think about this?

Could Zenphoto even be hooked up directly to SlideShowPro? (It's been done already with iPhoto, Coppermine et al)

Cheers

3stripe

Developer
Developer
trisweb   2006-04-25, 06:23
#2

Hmm... something I'll have to think about later. Nothing says it can't be done though, so sure, why not? ;-)

Member
Member
3stripe   2006-04-25, 07:37
#3

Heheh

As a starting point... I was trying to work out if gallery info is stored in a flat file anywhere, or if it's found by scanning each directory for usable images? (I'm thinking it's the latter)

Developer
Developer
trisweb   2006-04-25, 08:44
#4

Yeah, the directory structure is the whole basis for the gallery! Each file found is then given a database entry to store more metadata about it, but that's really just secondary. Part of the elegance of it is that it matches the filesystem so closely... and while that can be slow, it's still (obviously) a tolerable speed, if not surprisingly fast for being filesystem-based ;-)

The info in the database is only for storing metadata about files; it is not guaranteed to exist if the file exists and therefore can't be trusted. This is because changes in the filesystem are only reflected in the database when objects are loaded, and deletions are only noted when the database is garbage collected, which happens rarely. This is called lazy evaluation, and it makes everything simpler and more efficient in this case, and it's used all over zenphoto -- images aren't generated until they're first requested, for example.

Hope that gives a little insight into the backend. Let me know if you have any more questions.

Member
Member
3stripe   2006-04-25, 09:23
#5

Great, thanks for the lo-down.

Talking about SlideShowPro integration first as it's easier:

Tthere is already a php script for automatic generation of an XML file by reading a directory (see below)...

Only thing we would need to do is work out a way to generate permanent thumbnails which were sitting side-by-side with the large versions (or could they still be cached?)

``

Member
Member
thestable   2008-08-26, 14:45
#6

I know this is an old post but I have a solution.
See the example here.
`

Zen Photo Media RSS
http://blogs.law.harvard.edu/tech/rss
en-us
ZenPhoto RSS Generator
Copyright 2007 thestable.info, All Rights Reserved

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.