Module: Ddr::Derivatives

Extended by:
ActiveSupport::Autoload
Defined in:
lib/ddr/derivatives.rb,
lib/ddr/derivatives/generator.rb,
lib/ddr/derivatives/png_generator.rb,
lib/ddr/derivatives/ptif_generator.rb

Defined Under Namespace

Classes: Derivative, Generator, PngGenerator, PtifGenerator

Constant Summary collapse

DERIVATIVES =

Eventually, we should inject the generator (probably) and the options (certainly) for each derivative (e.g., from configuration)

{
  multires_image:
      Derivative.new( :multires_image,
                      Ddr::Datastreams::MULTIRES_IMAGE,
                      Ddr::Derivatives::PtifGenerator,
                      "jpeg:90,tile:256x256,pyramid"),
  thumbnail:
      Derivative.new( :thumbnail,
                      Ddr::Datastreams::THUMBNAIL,
                      Ddr::Derivatives::PngGenerator,
                      "-resize '100x100>'")
}

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields an object with module configuration accessors

Yields:

  • (_self)

Yield Parameters:



30
31
32
# File 'lib/ddr/derivatives.rb', line 30

def self.configure
  yield self
end