Class: Hydra::Derivatives::ImageDerivatives

Inherits:
Runner
  • Object
show all
Defined in:
lib/hydra/derivatives/runners/image_derivatives.rb

Direct Known Subclasses

FullTextExtract, PdfDerivatives

Class Method Summary collapse

Methods inherited from Runner

create, source_file

Class Method Details

.processor_classObject


11
12
13
# File 'lib/hydra/derivatives/runners/image_derivatives.rb', line 11

def self.processor_class
  Processors::Image
end

.transform_directives(options) ⇒ Object

Adds format: 'png' as the default to each of the directives


4
5
6
7
8
9
# File 'lib/hydra/derivatives/runners/image_derivatives.rb', line 4

def self.transform_directives(options)
  options.each do |directive|
    directive.reverse_merge!(format: 'png')
  end
  options
end