Skip to content

Commit

Permalink
Remove the Pillow dependency completely.
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatoshniwal committed Oct 5, 2023
1 parent b4f517f commit 078a959
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ pywinpty==2.0.*; sys_platform=="win32"
Authlib==1.2.*
pyotp==2.*
qrcode==7.*
Pillow==9.*; python_version <= '3.7'
Pillow==10.*; python_version > '3.7'
boto3==1.28.*
botocore==1.31.*
urllib3==1.26.*
Expand Down
2 changes: 1 addition & 1 deletion web/pgadmin/authenticate/mfa/authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _registration_view(self) -> dict:

img = qrcode.make(uri)
buffered = BytesIO()
img.save(buffered, format="JPEG")
img.save(buffered)
img_base64 = base64.b64encode(buffered.getvalue())

return dict(
Expand Down

0 comments on commit 078a959

Please sign in to comment.