Skip to content
Snippets Groups Projects
Commit 2c8f48bb authored by Arnaud Levy's avatar Arnaud Levy
Browse files

limit width to 2048

parent 5c83152b
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ module WithFeaturedImage
def add_unsplash_image(id)
return if id.blank?
photo = Unsplash::Photo.find id
url = photo['urls']['full']
url = "#{photo['urls']['full']}&w=2048&fit=max"
filename = "#{photo['id']}.jpg"
begin
file = URI.open url
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment