Sha256: 7f583291acf211b8e9b0b48d173824cdbe64aed5c275d9c64b784e0a7d44caf3
Contents?: true
Size: 372 Bytes
Versions: 3
Compression:
Stored size: 372 Bytes
Contents
module Ddr module Derivatives class PngGenerator < Generator def self.output_mime_type "image/png" end def generate command = "convert #{Ddr::Utils.file_path(source)} #{options} png:#{Ddr::Utils.file_path(output)}" out, err, s = Open3.capture3(command) GeneratorResult.new(out, err, s) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ddr-models-1.13.2 | lib/ddr/derivatives/png_generator.rb |
ddr-models-1.13.1 | lib/ddr/derivatives/png_generator.rb |
ddr-models-1.13.0 | lib/ddr/derivatives/png_generator.rb |