Class: Hydra::Derivatives::Config
- Inherits:
-
Object
- Object
- Hydra::Derivatives::Config
- Defined in:
- lib/hydra/derivatives/config.rb
Instance Attribute Summary collapse
- #enable_ffmpeg ⇒ Object
- #ffmpeg_path ⇒ Object
- #fits_path ⇒ Object
- #kdu_compress_path ⇒ Object
- #kdu_compress_recipes ⇒ Object
- #libreoffice_path ⇒ Object
- #temp_file_base ⇒ Object
Instance Attribute Details
#enable_ffmpeg ⇒ Object
22 23 24 |
# File 'lib/hydra/derivatives/config.rb', line 22 def enable_ffmpeg @enable_ffmpeg ||= true end |
#ffmpeg_path ⇒ Object
6 7 8 |
# File 'lib/hydra/derivatives/config.rb', line 6 def ffmpeg_path @ffmpeg_path ||= 'ffmpeg' end |
#fits_path ⇒ Object
18 19 20 |
# File 'lib/hydra/derivatives/config.rb', line 18 def fits_path @fits_path ||= 'fits.sh' end |
#kdu_compress_path ⇒ Object
26 27 28 |
# File 'lib/hydra/derivatives/config.rb', line 26 def kdu_compress_path @kdu_compress_path ||= 'kdu_compress' end |
#kdu_compress_recipes ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/hydra/derivatives/config.rb', line 30 def kdu_compress_recipes @kdu_compress_recipes ||= { default_color: %Q{-rate 2.4,1.48331273,.91673033,.56657224,.35016049,.21641118,.13374944,.08266171 -jp2_space sRGB -double_buffering 10 -num_threads 4 -no_weights Clevels=6 Clayers=8 "Cblk={64,64}" Cuse_sop=yes Cuse_eph=yes Corder=RPCL ORGgen_plt=yes ORGtparts=R "Stiles={1024,1024}" }.gsub(/\s+/, " ").strip, default_grey: %Q{-rate 2.4,1.48331273,.91673033,.56657224,.35016049,.21641118,.13374944,.08266171 -jp2_space sLUM -double_buffering 10 -num_threads 4 -no_weights Clevels=6 Clayers=8 "Cblk={64,64}" Cuse_sop=yes Cuse_eph=yes Corder=RPCL ORGgen_plt=yes ORGtparts=R "Stiles={1024,1024}" }.gsub(/\s+/, " ").strip } end |
#libreoffice_path ⇒ Object
10 11 12 |
# File 'lib/hydra/derivatives/config.rb', line 10 def libreoffice_path @libreoffice_path ||= 'soffice' end |
#temp_file_base ⇒ Object
14 15 16 |
# File 'lib/hydra/derivatives/config.rb', line 14 def temp_file_base @temp_file_base ||= '/tmp' end |