Sha256: 88e04ef9bfa6a2991220d0089b8111be0620ce591cf25088d14fbd9cb5646c91

Contents?: true

Size: 373 Bytes

Versions: 22

Compression:

Stored size: 373 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

22 entries across 22 versions & 1 rubygems

Version Path
ddr-models-2.0.1 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.rc6 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.rc5 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.rc4 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.rc3 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.rc2 lib/ddr/derivatives/png_generator.rb
ddr-models-1.17.1 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.rc1 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.pre.5 lib/ddr/derivatives/png_generator.rb
ddr-models-1.17.0 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.pre.4 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.pre.3 lib/ddr/derivatives/png_generator.rb
ddr-models-1.16.2 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.pre.2 lib/ddr/derivatives/png_generator.rb
ddr-models-2.0.0.pre.1 lib/ddr/derivatives/png_generator.rb
ddr-models-1.16.1 lib/ddr/derivatives/png_generator.rb
ddr-models-1.16.0 lib/ddr/derivatives/png_generator.rb
ddr-models-1.15.0 lib/ddr/derivatives/png_generator.rb
ddr-models-1.14.2 lib/ddr/derivatives/png_generator.rb