Skip to content

Commit

Permalink
actually change the thumbnail size to 400h (mozilla#16770)
Browse files Browse the repository at this point in the history
* actually change the thumbnail size to 400h

* update tests too
  • Loading branch information
eviljeff authored Mar 17, 2021
1 parent 9549aab commit 47191f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/olympia/constants/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@
ADDON_ICON_SIZES = [32, 64, 128]

_dimensions = namedtuple('SizeTuple', 'width height')
# Preview upload sizes - see mozilla/addons-server#9487 for background.
# Preview upload sizes - see mozilla/addons-server#9487 & #16717 for background.
ADDON_PREVIEW_SIZES = {
'thumbnail': _dimensions(640, 480),
'thumbnail': _dimensions(533, 400),
'min': _dimensions(1000, 750),
'full': _dimensions(2400, 1800),
'thumbnail_format': 'jpg',
Expand Down
2 changes: 1 addition & 1 deletion src/olympia/devhub/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def test_preview_size(self, pngcrush_image_mock):
assert preview.sizes == (
{
'image': [2400, 1600],
'thumbnail': [640, 427],
'thumbnail': [533, 355],
'original': [3000, 2000],
'thumbnail_format': 'jpg',
}
Expand Down
2 changes: 1 addition & 1 deletion src/olympia/devhub/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_recreate_previews(pngcrush_image_mock):

assert preview_has_original.reload().sizes == {
'image': [2400, 1600],
'thumbnail': [640, 427],
'thumbnail': [533, 355],
'original': [3000, 2000],
'thumbnail_format': 'jpg',
}
Expand Down

0 comments on commit 47191f6

Please sign in to comment.