Sha256: e3de254c30a738572ee59cd52b8c0f61c7bed6acb22f65b5a5746f27216873bc
Contents?: true
Size: 990 Bytes
Versions: 3
Compression:
Stored size: 990 Bytes
Contents
module Ddr module Derivatives extend ActiveSupport::Autoload autoload :Generator autoload :PngGenerator autoload :PtifGenerator Derivative = Struct.new(:name, :datastream, :generator, :options) # Eventually, we should inject the generator (probably) and the options (certainly) for each derivative # (e.g., from configuration) DERIVATIVES = { 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>'") } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ddr-models-1.13.2 | lib/ddr/derivatives.rb |
ddr-models-1.13.1 | lib/ddr/derivatives.rb |
ddr-models-1.13.0 | lib/ddr/derivatives.rb |