Sha256: e2c08a80ae6ac47f90930cbc956e03717dc0361611680baca50441250c739b26
Contents?: true
Size: 1010 Bytes
Versions: 2
Compression:
Stored size: 1010 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddr-models-1.15.0 | lib/ddr/derivatives.rb |
ddr-models-1.14.2 | lib/ddr/derivatives.rb |