Sha256: 7cbbe8f5e2f98af57f979523ed84798eaa69b092974d2583753120c43c51b1e1

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

class Proselytism::Converters::PpmToJpeg < Proselytism::Converters::Base
  class Error < parent::Base::Error; end

  from :ppm
  to   :jpg, :jpeg

  def perform(origin, options={})
    destination = origin.gsub(/\..*$/,'.jpg')
    command= "pnmtojpeg #{origin} > #{destination} 2>&1"
    execute command
    destination
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
proselytism-0.0.3 lib/proselytism/converters/ppm_to_jpeg.rb
proselytism-0.0.2 lib/proselytism/converters/ppm_to_jpeg.rb
proselytism-0.0.1 lib/proselytism/converters/ppm_to_jpeg.rb