Feature #28616 » 0001-Show-images-and-thumbnails-in-their-natural-orientat.patch
| 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;
|
||
|
}
|
||
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »