Sha256: 7ad26b2329edcf777851fb4e02c7431da400ebd606759dc347d32e33fa10344b

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

module PictureConverter
  def self.convert(current_path)
    system "convert -interlace Plane -quality 80 #{current_path} #{current_path}.webp" unless File.extname(current_path) == "webp"
    system "convert -interlace Plane -quality 80 #{current_path} #{current_path}.jp2" unless File.extname(current_path) == "jp2"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
carrierwave-picture-0.2.2 lib/carrierwave-picture/picture_converter.rb
carrierwave-picture-0.2.1 lib/carrierwave-picture/picture_converter.rb
carrierwave-picture-0.2.0 lib/carrierwave-picture/picture_converter.rb