Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃Ω Fixes hero / cover images #152

Merged
merged 3 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exhibits/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ class ExhibitPage(HeadlessMixin, Page):
APIField('body'),
APIField(
'cover_image',
serializer=ImageRenditionField('fill-1600x500'),
serializer=ImageRenditionField('fill-1920x1080'),
),
APIField(
'cover_thumb',
serializer=ImageRenditionField('fill-480x270', source='cover_image'),
),
APIField(
'hero_image',
serializer=ImageRenditionField('fill-1920x1080'),
serializer=ImageRenditionField('fill-1600x500'),
),
APIField(
'hero_thumb',
Expand Down
4 changes: 2 additions & 2 deletions ov_collections/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ class Collection(HeadlessMixin, Page):
APIField('introduction'),
APIField(
'cover_image',
serializer=ImageRenditionField('fill-1600x500'),
serializer=ImageRenditionField('fill-1920x1080'),
),
APIField(
'hero_image',
serializer=ImageRenditionField('fill-1920x1080'),
serializer=ImageRenditionField('fill-1600x500'),
),
APIField(
'hero_thumb',
Expand Down
Loading