module PictureConverter
Public Class Methods
convert(current_path)
click to toggle source
# File lib/carrierwave-picture/picture_converter.rb, line 2 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