Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/dragonfly/image_magick/analysers/image_properties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ImageProperties
def call(content)
identify_command = content.env[:identify_command] || 'identify'
details = content.shell_eval do |path|
"#{identify_command} -ping -format '%m %w %h' #{path}"
"#{identify_command} +ping -auto-orient -format '%m %w %h' #{path}"
end
format, width, height = details.split
{
Expand Down
2 changes: 1 addition & 1 deletion lib/dragonfly/image_magick/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def convert(content, args = "", opts = {})
frame_string = "[#{opts["frame"]}]" if opts["frame"]

content.shell_update :ext => format do |old_path, new_path|
"#{convert_command} #{input_args} #{delegate_string}#{old_path}#{frame_string} #{args} #{new_path}"
"#{convert_command} -auto-orient #{input_args} #{delegate_string}#{old_path}#{frame_string} #{args} #{new_path}"
end

if format
Expand Down