[daisy] How extend wiki to support more imagetypes

Bruno Dumon bruno at outerthought.org
Wed Aug 2 03:24:38 CDT 2006


On Wed, 2006-08-02 at 09:12 +0200, Ehms, Jürgen wrote:
> Is it possible to extend daisy-wiki to support Thumbnail and Preview
> to image types like
>  image/tiff 
>  image/psd
> and more other types 
>  
> I have to extend this, so we can use daisy for image management in our
> intranet.
>  
> any suggestion is welcome

The thumbnail images are created by a "pre-save hook" component in the
repository server
http://cocoondev.org/daisydocs-1_5/repository/general/275.html

The sources of this are in services/image-presavehook

You could make a similar hook to support these additional formats.

Basically this goes as follows:
 - implement the java class, use the existing one as an example
 - package it together with a block.xml and .xinfo file in a jar.
   Just look at the content of daisy-image-presavehook-xx.jar
   for examples of these files
   (the .xinfo file is a meta file describing the java component:
    its dependencies and offered services. In Daisy's built system,
    the .xinfo file is built from annotations in the source code)
  - add the jar to the appropriate location in the 'lib' directory
  - edit the repository-server/conf/block.xml file to include your
    new component, such as:

<include name="image-presavehook" id="daisy:daisy-image-presavehook" version="2.0-dev"/>

Of course, if there are good open source libraries to generate
thumbnails for the above formats, we could also include support for
these in Daisy's default image-presavehook. In this case you can just
change the code of the existing image-presavehook and contribute a patch
via issues.cocoondev.org.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list