Skip to content
benjamin4ruby edited this page Jul 29, 2011 · 26 revisions

There are two versions of JavaThumbnailer:

  • If you want to include this as a library to your own project, or use it from command-line only, you should take the Standalone Version.
  • For integration into the regain Desktop search, take the Regain Plugin Version.

Standalone Version

  1. Get the recent version of JavaThumbnailer at the Download Page (or [build it from source](Building from Source).)
  2. To run it via the commandline: java -jar javathumbnailer-standalone.jar input.doc [output.png]
  3. To use it in your own project, include this .jar in your classpath. For an example of usage (and configuration), see the code in Main.java.

Regain Plugin Version

  1. Get the recent version of JavaThumbnailer at the Download Page (or [build it from source](Building from Source).)
  2. Save it into the /plugins/-Folder of regain.
  3. Edit CrawlerConfiguration.xml to suit your needs. Here are the default values:

` de.uni_siegen.wineme.come_in.thumbnailer.plugin.ThumbnailerPlugin

thumbs/
      <!-- Desired Image dimensions of the thumbnail. -->
      <param name="imageWidth">160</param>
      <param name="imageHeight">120</param>
    </section>
    <section name="externalHelpers">
  	  <!-- Where is OpenOffice installed? If not available, try to auto-detect folders --> 
  	  <!-- <param name="openOfficeHome">file://c:/Programme/OpenOffice.org 3</param> -->
  	  
  	  <!-- Where is the profile to use? If not available, a temporary profile is created (at each crawling process start) -->
  	  <!-- <param name="openOfficeProfile">plugins/ressources/ooo-template-dir</param> -->
    </section>
  </config>
</crawlerPlugin>`

Clone this wiki locally