class Dragonfly::LosslessRotate::SafeRotate

All formats support by ImageMagick

Private Instance Methods

rotate(content, degree, optimize, progressive) click to toggle source
# File lib/dragonfly/lossless_rotate.rb, line 91
def rotate(content, degree, optimize, progressive)
  return super if jpeg?(content)

  content.shell_update do |old_path, new_path|
    "convert #{old_path} -rotate #{degree} #{new_path}"
  end
end