]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/Gallery.mdwn
web commit by NicolasLimare: patch for the meta plugin : [[meta lang="ja"]]
[ikiwiki.git] / doc / todo / Gallery.mdwn
1 creating a gallery of a bunch of images: 
2
3 * Display Exif informations
4 * Display Image informations (like size, date, resolution, compression...)
5 * Create CSS data for customizing
6 * Create Thumbnails (maybe in more than one size, eg: full,1024x768,800x600,640x480)
7 * Descriptions for every image
8 * Comments
9 * Ratings
10 * Watermarks
11 * Some javascript for easy navigation (see [photon](http://www.saillard.org/programs_and_patches/photon/) for a good example)
12
13 It should be possible to disable every feature for every directory. 
14
15 ----
16
17 This could be split into two distinct projects. One would be to modify the [[plugins/img]] plugin to support some of these ideas for extracting and using information such as exif out of images. The other project would be to design something that handles setting up a gallery, which could be just some regular wiki pages using the img plugin, and perhaps some other custom plugins for things like ratings and javascript), and adding new images to a gallery as they are added to the wiki.
18
19 That's one way to do it, and it has some nice benefits, like being able to edit the gallery pages like any wiki page, to add comments about images, links, etc. An example of ikiwiki being used like that: <http://kitenet.net/~family/pics/guaimaca.html> (still room for improvement, clearly).
20
21 --[[Joey]]
22
23 [[tag soc]]
24
25 [[tag wishlist]]
26
27 ----
28
29 I have implemented the first version of the Gallery Plugin for Ikiwiki as part of [[soc]]. This plugin would create a nice looking gallery of the images once the directory containing images is specified with some additional parameters. It has been build over the img plugin. 
30
31 Plugin can be downloaded from [here](http://myweb.unomaha.edu/~ajain/gallery.tar). 
32
33 It can be used as : <br>
34 \[[gallery imagedir="images" thumbnailsize="200x200" cols="3" alt="Can not be displayed" title="My Pictures"]]
35
36 where-<br>
37 * imagedir  => Directory containing images. It will scan all the files with jpg|png|gif extension from the directory and will put it in the gallery.<br>
38 * thumbnailsize(optional) => Size of the thumbnail that you want to generate for the gallery.<br>
39 * alt(optional) => If image can not be displayed, it will display the text contained in alt argument.<br>
40 * cols(optional) => Number of columns of thumbnails that you want to generate.<br>
41 * title(optional) => Title of the gallery.<br>
42
43 Features of the Gallery Plugin:<br>
44 * You can go the next image by clicking on the right side of the image or by pressing 'n'.<br>
45 * Similary, you can go the previous image by clicking on the left side of the image or by pressing 'p'.<br>
46 * Press esc to close the gallery.<br>
47 * While on image, nearby images are preloaded in the background, so as to make the browsing fast.<br>
48
49 Right now, it features only one template namely [Lightbox](http://www.hudddletogether.com). Later on, I will add few more templates.<br>
50 For any feedback or query, feel free to mail me at arpitjain11 [AT] gmail.com 
51
52 Additional details are available [here](http://myweb.unomaha.edu/~ajain/ikiwikigallery.html).
53
54 [[tag patch]]