Skip to content

Commit

Permalink
Benchmarks: Adjust PNG compression level to Pillow defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed Oct 26, 2023
1 parent e4bc8ba commit b5ec1f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sandbox/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def svg_segno(data='QR Code Symbol'):

def png_segno(data='QR Code Symbol'):
"""Segno PNG 1-M"""
segno.make_qr(data, error='m', boost_error=False).save(os.path.join(_output_dir(), 'segno_%s.png' % data), scale=10)
segno.make_qr(data, error='m', boost_error=False).save(os.path.join(_output_dir(), 'segno_%s.png' % data), scale=10,
compresslevel=6)


def run_create_tests(which=None, number=200, table=None):
Expand Down

0 comments on commit b5ec1f8

Please sign in to comment.