Documents and Media
RAMADDA uses
Ghostscript
to generate thumbnail images of PDF files when they are uploaded.
To configure your RAMADDA install Ghostscript and add the following
to your repository.properties file:
service.gs=path to gs
e.g.:
service.gs=/usr/local/bin/gs
RAMADDA uses
LibreOffice to generate thumbnail images
of PowerPoint files when they are uploaded.
To configure your RAMADDA install LibreOffice (with soffice) and add the following
to your repository.properties file:
service.soffice=path to soffice
e.g.:
service.soffice=/Applications/LibreOffice.app/Contents/MacOS/soffice
RAMADDA can use the Tesseract OCR package to extract text from images to be added to the
Lucene search index. Install
Tesseract
on your server and set the following property in your repository.properties:
ramadda.tesseract=/path/to/tesseract
RAMADDA supports zoomable images using
OpenSeadragon.
RAMADDA will autotmatically create the set of image tiles. To enable this functionality you need to have the
ImageMagick package installed on your server. Then
install the
MagickSlicer
script on your server and set the property in your repository.properties file:
ramadda.image.slicer=/path/to/magick-slicer.sh
Now, create a new entry of type Zoomable Image and upload your high resolution image. RAMADDA will use the
MagickSlicer script to generate the set of varying resolution tiled images.
Here
is an example.
The Zoomable Image entry also supports annotations.
The Zoomable Image and the Annotated Image support drawing
rectangle and polygon annotations.
If you are logged in and can edit the
entry then there will be a toolbar displayed at the top of the page.
Select the tool and drag in the image.
Once drawn a dialog will be shown where you can add text and tags. The first line of the
text is used as a bold title shown in the header.
The annotation text will be displayed along the top of the image. For the Zoomable Image
clicking on an annotation will
pan the image to that area. Shift-clicking on the annotation will pan and zoom.
For the Annotated Image clicking on an annotation will bring up the
text dialog.
To color the annotation add a tag of the form:
c:<some color>
e.g.:
c:red
c:rgb(255,255,0)
To change the line width, e.g. to 5, add a tag:
w:5
To show a label along with the annotation add a tag with the label: prefix:
label:some label
If you want all of your annotations to share the same color and/or width add a default:
tag to one of the annotations that have the shared color or width, e.g. the following:
label:some label
c:red
Will cause all of the annotations to be colored red.