AlchemyCMS/alchemy_cms

View on GitHub
lib/alchemy/dragonfly/processors/auto_orient.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require "dragonfly/image_magick/commands"

module Alchemy
  module Dragonfly
    module Processors
      class AutoOrient
        def call(content)
          ::Dragonfly::ImageMagick::Commands.convert(
            content,
            "-auto-orient"
          )
        end
      end
    end
  end
end