Skip to content

Commit

Permalink
Reduce amount of sizes an image is resized to.
Browse files Browse the repository at this point in the history
  • Loading branch information
erksch committed Aug 12, 2019
1 parent 98173eb commit 0c416e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/artifacts/artifact_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class ImageResizer:
"""Saves resized versions of an image to disk"""

widths = [320, 480, 640, 750, 1080]
widths = [320, 640, 1080]

def __init__(self, file_path):
self.image = Image.open(file_path)
Expand Down
2 changes: 1 addition & 1 deletion specs/requests/artifacts_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def clear_upload_dir():

with description("resized image versions"):
with before.each:
self.widths = [320, 480, 640, 750, 1080]
self.widths = [320, 640, 1080]

original_file_name = self.response.json.get("url").split("/")[-1]
[self.prefix, self.suffix] = original_file_name.rsplit(".", 1)
Expand Down

0 comments on commit 0c416e6

Please sign in to comment.