We apologize for untranslated text, you can use the Google Translation button to get an automatic translation of the web page in the language of your choice.

Thumbnail generator Plugin

Description

This plugin generates documents' thumbnails using external programs.


Installation

  1. Install the appropriate program on your OS (eg ImageMagick+Ghostscript, ffmpeg, SoX, ...).
  2. Edit the plugin admin properties and add the command to convert a document into an image using the following variables :
    • {webapp-root} : the webapp root folder (without ending slash). e.g : C:\tomcat\webapps\jcms-x.y
    • {src.path} : the absolute path of the source file to convert. e.g :
      C:\tomcat\webapps\jcms-x.y\upload\docs\application\pdf\2009-04\mydocument.pdf
    • {dest.path} : the absolute path of the thumbnail to be generated. e.g :
      C:\tomcat\webapps\jcms-x.y\upload\docs\application\pdf\2009-04\th-320x240-mydocument.pdf.jpg
    • {format.ext} : the extension of the image format to use for the thumbnail to generate. e.g : jpg
    • {format.mime-type} : the mime type of the image format to use for the thumbnail to generate. e.g : image/jpeg
    • {width} : the width of the thumbnail to generate. e.g : 320
    • {height} : the height of the thumbnail to generate. e.g : 240
    Example for PDF files if ImageMagick was installed inside the webapp folder :
    "{webapp-root}\WEB-INF\plugins\ThumbnailGeneratorPlugin\programs\ImageMagick-6.5.0-9\convert.exe" "{src.path}[0]" -resize {width}x{height} "{dest.path}"
    Example for video files on a unix system (make sure you don't have any space in your webapp path) :
    /usr/bin/ffmpeg -y -i {src.path} -f mjpeg -ss 1 -vframes 1 -s {width}x{height} -an {dest.path}
  3. Optionnally you can edit your custom.prop and specify any program for any mime type other than the predefined video, image and pdf properties.

Changes

Thumbnail Generator plugin v1.0.1

  • Added compatibility with JCMS 6.1.1

Thumbnail Generator plugin v1.0

  • Initial release

Information

Version
  • 1.0.1
Stability
  • Stable
Compatibility
  • JCMS 6.0
    JCMS 6.1
Certified by Jalios
  • Yes
Price
  • Module gratuit
Support
  • Jalios Support
Author
  • Jalios SA
License
  • Jalios
Size
  • 15.98 KB
Updated
  • 12/14/09
Download
  • 6