Project

General

Profile

Feature #28616 » 0001-Show-images-and-thumbnails-in-their-natural-orientat.patch

Gregor Schmidt, 2018-04-24 11:50

View differences:

lib/redmine/thumbnail.rb
FileUtils.mkdir_p directory
end
size_option = "#{size}x#{size}>"
cmd = "#{shell_quote CONVERT_BIN} #{shell_quote source} -thumbnail #{shell_quote size_option} #{shell_quote target}"
cmd = "#{shell_quote CONVERT_BIN} #{shell_quote source} -auto-orient -thumbnail #{shell_quote size_option} #{shell_quote target}"
unless system(cmd)
logger.error("Creating thumbnail failed (#{$?}):\nCommand: #{cmd}")
return nil
public/stylesheets/application.css
height:1px;
overflow:hidden;
}
img {
image-orientation: from-image;
}
(5-5/5)