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
38 38
          FileUtils.mkdir_p directory
39 39
        end
40 40
        size_option = "#{size}x#{size}>"
41
        cmd = "#{shell_quote CONVERT_BIN} #{shell_quote source} -thumbnail #{shell_quote size_option} #{shell_quote target}"
41
        cmd = "#{shell_quote CONVERT_BIN} #{shell_quote source} -auto-orient -thumbnail #{shell_quote size_option} #{shell_quote target}"
42 42
        unless system(cmd)
43 43
          logger.error("Creating thumbnail failed (#{$?}):\nCommand: #{cmd}")
44 44
          return nil
public/stylesheets/application.css
1506 1506
  height:1px;
1507 1507
  overflow:hidden;
1508 1508
}
1509

  
1510
img {
1511
  image-orientation: from-image;
1512
}
(5-5/5)