soc had the idea to remodel the make a plugin architecture for fast gallery. Basic architecture would be:
- an API providing the basic functionality
- plugins to use different modes of Fast Gallery (no db, images as nodes, exif, ...)

Advantages:
- every user can take what he wants.
- extensible for further plugins

Definitions:
- Plugins would probably just be modules that rely on the Fast Gallery API

I would want to collect some thoughts about this idea. In a next step we would have to define the API and see if there are maybe some drupal components that could be used (like fileAPI???) -> but please not in this post.

Comments

soc’s picture

Hi raspli,

I was just thinking about what is needed.

The big problem imo are the architectural differences between DB-usage/no DB-usage.
At the moment, the DB needs to be sync'ed after changes and the rescan has to be requested manually.

The no-DB way would use lazy initialization to improve performance. The basic steps would look like that:
a) The admin uploads his pictures. (He does not request any action, synchronization or thumbnailing, nothing is done beside uploading at that point!)
b) A user visits the homepage, wants to see a particular folder.
c) Now the script checks if every picture in the requested folder has a thumbnail, if not it is generated.

So basically the first person visiting a folder generates the thumbnails of that particular folder.

rapsli’s picture

generating the thumb when they are needed is already in place.

soc’s picture

Ah, thanks, didn't know that was changed already ...

Could you maybe look at #381102: No pictures/folders appear on the Fast gallery page, only the heading?
I hope it's an absolutely stupid mistake on my side, because I can't get the Gallery to run since days ...

XiaN Vizjereij’s picture

Very very good :)

Please keep in mind my comments on this post : No temp. queries anymore !

And two remarks for the design

-> Here you can see that with images with different height the layout looks kind of crappy. The textbox should be fixed on the bottom of the "cell" and in a box aboth the image should be centered in horizontal and vertical

-> You should not print folders and then without a break pictures ( like seen here )

It would be nicer to have sth. like

Subfolders

...

Images

...

Maybe it would be a fine nice-to-have to have the ability to change some of the basic css settings via the drupal admin menu.

Btw. if you need betatesters : Count on me :)

rapsli’s picture

Status: Active » Closed (fixed)

this version is not supported anymore