Difference between revisions of "SUNScholar/Media Filters/5.X"

From Libopedia
Jump to navigation Jump to search
m
m
Line 34: Line 34:
 
</pre>
 
</pre>
  
==Step 5 - [[SUNScholar/Rebuild_DSpace|Rebuild DSpace]]==
+
==Step 4 - [[SUNScholar/Rebuild_DSpace|Rebuild DSpace]]==
  
==Step 6 - Test the media filers==
+
==Step 5 - Test the media filers==
 
Type the following to test. Select an item that has pdf files attached and use it as replacement for "123456789/29097".
 
Type the following to test. Select an item that has pdf files attached and use it as replacement for "123456789/29097".
 
  $HOME/bin/dspace filter-media -n -v -i 123456789/29097
 
  $HOME/bin/dspace filter-media -n -v -i 123456789/29097
  
==Step 7 - Create new thumbnails==
+
==Step 6 - Create new thumbnails==
 
The script is configured to do 1000 items at a time only. This saves on memory and CPU time. Therefore on a large system you may need to run the script several times. Also make sure that the dspace user has full read/write access to all items in the assetstore folders.
 
The script is configured to do 1000 items at a time only. This saves on memory and CPU time. Therefore on a large system you may need to run the script several times. Also make sure that the dspace user has full read/write access to all items in the assetstore folders.
  
 
  $HOME/bin/dspace filter-media -n -v -f -m 1000 -p "PDF Thumbnail"
 
  $HOME/bin/dspace filter-media -n -v -f -m 1000 -p "PDF Thumbnail"
  
==Step 8 - Add a daily admin task==
+
==Step 7 - Add a daily admin task==
 
See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Daily_Admin. Check the '''"filter-media"''' options!
 
See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Daily_Admin. Check the '''"filter-media"''' options!
  

Revision as of 14:40, 21 February 2015

Back to Media Filters

PLEASE NOTE:

The media filters have changed by incorporating the use of ImageMagick and Ghostscript. See the link below for details about enabling media filters.

Requirements

Check the following and then return.

http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_DSpace/S03#Step_3.2

Step 1 - Login to the server

http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S01

Complete ALL of the following as the "dspace" user!

Step 2 - Install the Ubuntu software packages

Type the following:

sudo apt-get install imagemagick ghostscript

Step 3 - Configuration

Check the value for thumbnail.maxwidth and that it corresponds to the size you want for preview images for the UI.

Edit the "dspace.cfg" file.

nano $HOME/source/config/dspace.cfg

Search for the following and modify.

# maximum width and height of generated thumbnails
thumbnail.maxwidth  = 160
thumbnail.maxheight = 160

Step 4 - Rebuild DSpace

Step 5 - Test the media filers

Type the following to test. Select an item that has pdf files attached and use it as replacement for "123456789/29097".

$HOME/bin/dspace filter-media -n -v -i 123456789/29097

Step 6 - Create new thumbnails

The script is configured to do 1000 items at a time only. This saves on memory and CPU time. Therefore on a large system you may need to run the script several times. Also make sure that the dspace user has full read/write access to all items in the assetstore folders.

$HOME/bin/dspace filter-media -n -v -f -m 1000 -p "PDF Thumbnail"

Step 7 - Add a daily admin task

See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Daily_Admin. Check the "filter-media" options!

References