Skip to content

Commit

Permalink
Better thumbnail crop size
Browse files Browse the repository at this point in the history
  • Loading branch information
joahim committed Dec 15, 2020
1 parent 4e57420 commit e34f345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sledilnik/posts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def dehydrate(self, bundle):
translation.activate(lang)

if bundle.obj.image:
bundle.data["image"] = bundle.request.build_absolute_uri(get_thumbnail(bundle.obj.image, "800x600").url)
bundle.data["image"] = bundle.request.build_absolute_uri(get_thumbnail(bundle.obj.image, "800x810").url)

return bundle

0 comments on commit e34f345

Please sign in to comment.