Use resize_to_limit to avoid stretching images
This commit is contained in:
parent
53911f226d
commit
b70a9f1a07
7 changed files with 13 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
json.package @p.name
|
||||
|
||||
json.screenshots @p.screenshots do |s|
|
||||
json.small_image_url "https://#{request.host_with_port}#{s.image.variant(resize: "160x120", timestamp: false)}"
|
||||
json.large_image_url "https://#{request.host_with_port}#{s.image.variant(resize: "800x600", timestamp: false)}"
|
||||
json.small_image_url "https://#{request.host_with_port}#{s.image.variant(resize_to_limit: "160x120", timestamp: false)}"
|
||||
json.large_image_url "https://#{request.host_with_port}#{s.image.variant(resize_to_limit: "800x600", timestamp: false)}"
|
||||
json.version s.version
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue