Installation Instructions

ABOUT

While I have first implemented Gallery2 for something like photos I do use it at work for output of model calculations too. Because of the necessity to share a standalone playable file to colleagues I have first decided to use fli or mpeg as output format for an image sequence. mpeg is not quite good for displaying our data and fli does sometimes eat a lot of cpu power. Both would make a lot of work getting them working on a non posix OS. For further development it would be better to have a python only version of Gallery2. That's the reason why I switch the sequence format to flash now. I do use the library of Matthias Kramm (http://www.swftools.org).

HOWTO

Download some images to a page and start with the examples. Aliasing of the filenames are done by adding an itemlist, see example.

NEEDS

This routine requires the Action macro gallery2image which is used to rotate or delete a selected image. The actual version is gallery2image-1.5.4-14.py.

Only users which have the rights to delete are able to execute this action macro. The icons of these are only shown if you have enough rights. Furthermore it requires:

GENERAL

Please remove the Version number from the code!

You can upload many files at once using a zip file.

With many images you can get in trouble by the SurgeProtection for attachment. Then you have to adjust the parameters see HelpOnConfiguration/SurgeProtection.

If you need direct serving of webnails and thumbnails and acls are not necessary you can set up the document_root variable in the wikiconfig.py to point to the same path as the /wiki url (alias). On a standard installation this is /usr/share/moin/htdocs. The wiki creates a folder to store webnails and thumbnails below this path, e.g. /usr/share/moin/htdocs/tmp/Gallery2/mywiki/GalleryTestSeite/. They are served using the wiki url e.g. http://server/wiki/tmp/Gallery2/mywiki/GalleryTestSeite/tmp.thumbnail_100_1189.jpg.

OUTLOOK

Dependent on Matthias Kramm's python interface development the webnails could be exchanged to a flash animation with action controls. That will ommit the javascript slide show and will give less files. swftools is able to do this by now but that will need an os.system call. At the moment I like to avoid this. If you are interested the command is swfcombine -o output.swf movie_control.swf viewport1=input.swf. Further informations and examples you'll find at linuxwiki:http://linuxwiki.org/SWFC/SWFCOMBINE-HOWTO

( first version of movie_control.swf ) Example code for images2swf to add the controls. movie_control.swf neeeds to be stored in MoinMoin/support

   1     movie_control = "%(path)s/%(type)s/%(name)s" % {
   2             "type": 'support',
   3             "path" : request.cfg.moinmoin_dir,
   4             "name" :  'movie_control.swf'}
   5     
   6     cmd = "swfcombine -r %(fps)s -X %(xmax)s -Y %(ymax)s -o '%(filename)s' %(movie_control)s  viewport1='%(filename)s'" % {
   7         "fps": int(swf_fps),
   8         "xmax": xmax,
   9         "ymax": ymax+50,
  10         "movie_control": movie_control,
  11         "filename": swf_filename,
  12         }
  13     os.system(cmd) 

MoinMoin: ParserMarket/Gallery2/Installation (last edited 2008-02-07 14:49:25 by ReimarBauer)