Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #64 from quintindunn/picture-query
Browse files Browse the repository at this point in the history
Changed default quality for images to 65 in response to https://githu…
  • Loading branch information
quintindunn authored Nov 23, 2023
2 parents dffe896 + acf906f commit 9c15097
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lapsepy/journal/structures/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def from_dict(profile_data: dict) -> "Profile":
profile_music=profile_music
)

def load_profile_picture(self, quality: int = 100, height: int | None = None) -> Image.Image:
def load_profile_picture(self, quality: int = 65, height: int | None = None) -> Image.Image:
"""
Loads the Profile's profile picture into memory by making an HTTP request to Lapse's servers.
:param quality: Quality of the image (1-100)
Expand Down
2 changes: 1 addition & 1 deletion lapsepy/journal/structures/snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def load_original(self, quality: int, fl_keep_iptc: bool) -> Image.Image:
image = Image.open(bytes_io)
return image

def load_snap(self, quality: int = 100, fl_keep_iptc: bool = True) -> Image.Image:
def load_snap(self, quality: int = 65, fl_keep_iptc: bool = True) -> Image.Image:
"""
Returns a Pillow Image of either the filtered image or original image.
:param quality: Quality of the image (1-100)
Expand Down

0 comments on commit 9c15097

Please sign in to comment.