Sha256: 294491d6270bd941369f5f57d1b5f3d21a819f2283ffb7652a1644c440315873

Contents?: true

Size: 332 Bytes

Versions: 27

Compression:

Stored size: 332 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)}[0] #{options} png:#{Ddr::Utils.file_path(output)}"
        `#{command}`
        $?.exitstatus
      end

    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ddr-models-2.11.0 lib/ddr/derivatives/png_generator.rb
ddr-models-2.10.2 lib/ddr/derivatives/png_generator.rb
ddr-models-2.10.1 lib/ddr/derivatives/png_generator.rb
ddr-models-2.10.0 lib/ddr/derivatives/png_generator.rb
ddr-models-2.10.0.rc2 lib/ddr/derivatives/png_generator.rb
ddr-models-2.10.0.rc1 lib/ddr/derivatives/png_generator.rb
ddr-models-2.9.2 lib/ddr/derivatives/png_generator.rb
ddr-models-2.9.1 lib/ddr/derivatives/png_generator.rb
ddr-models-2.9.0 lib/ddr/derivatives/png_generator.rb
ddr-models-2.9.0.rc1 lib/ddr/derivatives/png_generator.rb
ddr-models-2.8.0 lib/ddr/derivatives/png_generator.rb
ddr-models-2.8.0.rc1 lib/ddr/derivatives/png_generator.rb
ddr-models-2.7.6 lib/ddr/derivatives/png_generator.rb
ddr-models-2.7.5 lib/ddr/derivatives/png_generator.rb
ddr-models-2.7.4 lib/ddr/derivatives/png_generator.rb
ddr-models-2.7.3 lib/ddr/derivatives/png_generator.rb
ddr-models-2.7.2 lib/ddr/derivatives/png_generator.rb
ddr-models-2.7.1 lib/ddr/derivatives/png_generator.rb
ddr-models-2.7.0 lib/ddr/derivatives/png_generator.rb
ddr-models-2.7.0.rc1 lib/ddr/derivatives/png_generator.rb