Skip to content

Commit 04fcc5d

Browse files
committed
[server] tweak unspalsh image crop
1 parent d5ed3e8 commit 04fcc5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server/data/images.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ def get_unsplash_url(index, width, height):
6060
raw_url = images[index]
6161
width = str(width)
6262
height = str(height)
63-
modified_url = raw_url + '?w=' + width + '&h=' + height
63+
modified_url = raw_url + '?fit=crop&w=' + width + '&h=' + height
6464
return modified_url

0 commit comments

Comments
 (0)