Skip to content

Commit

Permalink
increase image quality
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaveamicroservice committed Oct 7, 2023
1 parent 72e7723 commit 0cca123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def compress(inputblob: func.InputStream, resolution: int) -> bytes:

# Save thumbnail to a BytesIO object
output_stream = io.BytesIO()
image.save(output_stream, format=image.format)
image.save(output_stream, format=image.format, quality=100)

# Move back to the beginning of the stream
output_stream.seek(0)
Expand Down

0 comments on commit 0cca123

Please sign in to comment.