Sha256: b43a289c368b7a72243cfd3e0823e855462bb50e083239dcd7d149b27692e0eb

Contents?: true

Size: 355 Bytes

Versions: 14

Compression:

Stored size: 355 Bytes

Contents

module Hydra::Derivatives
  class ImageDerivatives < Runner
    # Adds format: 'png' as the default to each of the directives
    def self.transform_directives(options)
      options.each do |directive|
        directive.reverse_merge!(format: 'png')
      end
      options
    end

    def self.processor_class
      Processors::Image
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hydra-derivatives-3.7.0 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.6.1 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.6.0 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.5.0 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.4.2 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.4.1 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.4.0 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.3.2 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.3.1 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.3.0 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.2.2 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.2.1 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.2.0 lib/hydra/derivatives/runners/image_derivatives.rb
hydra-derivatives-3.1.4 lib/hydra/derivatives/runners/image_derivatives.rb