Class: Hydra::Derivatives::ImageDerivatives
- Defined in:
- lib/hydra/derivatives/runners/image_derivatives.rb
Direct Known Subclasses
Class Method Summary collapse
- .processor_class ⇒ Object
-
.transform_directives(options) ⇒ Object
Adds format: ‘png’ as the default to each of the directives.
Methods inherited from Runner
Class Method Details
.processor_class ⇒ Object
12 13 14 |
# File 'lib/hydra/derivatives/runners/image_derivatives.rb', line 12 def self.processor_class Processors::Image end |
.transform_directives(options) ⇒ Object
Adds format: ‘png’ as the default to each of the directives
5 6 7 8 9 10 |
# File 'lib/hydra/derivatives/runners/image_derivatives.rb', line 5 def self.transform_directives() .each do |directive| directive.reverse_merge!(format: 'png') end end |