Sha256: a51f4a5c58369a8239a1bc21df915e8450f474eef7284587a20197329aec02d2
Contents?: true
Size: 355 Bytes
Versions: 1
Compression:
Stored size: 355 Bytes
Contents
module PictureConverter def self.convert(current_path) unless File.exist?("#{current_path}.webp") system "convert -interlace Plane -quality 80 #{current_path} #{current_path}.webp" end unless File.exist?("#{current_path}.jp2") system "convert -interlace Plane -quality 80 #{current_path} #{current_path}.jp2" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
carrierwave-picture-0.3.3 | lib/carrierwave-picture/picture_converter.rb |