Hi folks,
I want to create an application for Web-Galleries, where the user can submit pictures that can be browsed by anyone.
I see t ways to achieve this, and I would like to have opinons on them, because I don't want to start with one way and lateron I notice that I have not considered some important aspect.
The intended usage will be to create catalogues of "things" the user wants to share with the world: e.g. one user would like to show his plants to the world: He would create a gallery "Plants", containing a "subgallery" for each plant; each subgallery would contain various pictures of the plant: general aspect, the roots, the leaves, the flowers, etc.
Maybe, someone ha another idea how to manage this kind of galleries. Any hint would be appreciated.
Also: is there an commonly used technique for this kind of work?
FIrst way:
For each gallery, the user has a subdirectory in his main directory. He puts each picture in the appropriate directory. The user has to manage the mapping of directory name ot the gallery name/subject. The pictures are displayed by reading the folder content.
Advantage:
If the folder content changes, there is no need to update any details in a database. The user can (has to) influence the order of the picture in the gallery by using an appropriate naming of the files.
Disadvantages:
No detailed information per picture will be available (eventually EXIF data, if available)
* Creating the appropriate folders and link to Database information (don't know yet how to do this )
Second way:
The user puts all his images in a single directory (eventually different folders; might add complexity). Every image has to be registered in the database (wth arbitrary level of detail) and linked to a gallery
Advantage:
Detailed information per picture can be diplayed
User can have any number of galleries, regardless of filesystem structure.
* One single image can be used in multiple galleries if required (without duplicating the image itself in several folders)
Disadvantages:
* Detailded information per picture must be maintained
Any suggestioons about all this ?
Thanks for your comments,
JJ Mouris