Skip to content

Commit

Permalink
Add missing image generator
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Jun 10, 2024
1 parent ae6488f commit 5ffe1e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ class Thumbnail(ImageSpec):
register.generator('studibars:thumbnail', Thumbnail)


class Poster(ImageSpec):
processors = [ResizeToFill(318 * 2, 450 * 2)]
format = 'WEBP'


register.generator('studibars:poster', Poster)


# Create your views here.
def main_view(request):
bars_by_weekday = defaultdict(list)
Expand Down

0 comments on commit 5ffe1e1

Please sign in to comment.