Skip to main content

Python bindings for Google's Guetzli, a JPEG encoder that optimises JPEG compression

Project description

Github Discord PYPI Version Build Status License

PyGuetzli is a Python binding for Google’s Guetzli library.

Description of Guetzli from official’s repo:

Guetzli is a JPEG encoder that aims for excellent compression density at high visual quality. Guetzli-generated images are typically 20-30% smaller than images of equivalent quality generated by libjpeg. Guetzli generates only sequential (nonprogressive) JPEGs due to faster decompression speeds they offer.

Documentation

More topics at https://wanadev.github.io/pyguetzli/

Usage Example

import pyguetzli

input_jpeg = open("./test/image.jpg", "rb").read()
optimized_jpeg = pyguetzli.process_jpeg_bytes(input_jpeg)

output = open("./optimized.jpg", "wb")
output.write(optimized_jpeg)

Changelog

  • 1.0.9: Provides prebuilt wheel packages

  • 1.0.8: Updates Guetzli and python dependencies

  • 1.0.7: Fixes unicode issue when installing pyguetzli (#4)

  • 1.0.6: Fixes a typo in compilator options on unix

  • 1.0.5: Adds optimization flags when compiling Guetzli

  • 1.0.4: MS Windows support

  • 1.0.3: Updates Guetzli library

  • 1.0.2: PIL Images: fixes crash with non RGB/RGBA images (grayscale, indexed,…)

  • 1.0.1: Adds --std=c++11 flag when building Guetzli

  • 1.0.0:

    • New and simpler API

    • Built-in function to deal with PIL / Pillow Images

    • Documentation (Sphinx)

    • Guetzli update

  • 0.9.0: Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyguetzli-1.0.9.tar.gz (108.2 kB view hashes)

Uploaded Source

Built Distributions

pyguetzli-1.0.9-cp39-cp39-win_amd64.whl (127.4 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyguetzli-1.0.9-cp39-cp39-manylinux2010_x86_64.whl (212.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

pyguetzli-1.0.9-cp39-cp39-manylinux2010_i686.whl (198.5 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

pyguetzli-1.0.9-cp39-cp39-manylinux1_x86_64.whl (212.2 kB view hashes)

Uploaded CPython 3.9

pyguetzli-1.0.9-cp39-cp39-manylinux1_i686.whl (198.5 kB view hashes)

Uploaded CPython 3.9

pyguetzli-1.0.9-cp39-cp39-macosx_10_14_x86_64.whl (163.3 kB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

pyguetzli-1.0.9-cp38-cp38-win_amd64.whl (127.5 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyguetzli-1.0.9-cp38-cp38-manylinux2010_x86_64.whl (212.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

pyguetzli-1.0.9-cp38-cp38-manylinux2010_i686.whl (198.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

pyguetzli-1.0.9-cp38-cp38-manylinux1_x86_64.whl (212.5 kB view hashes)

Uploaded CPython 3.8

pyguetzli-1.0.9-cp38-cp38-manylinux1_i686.whl (198.9 kB view hashes)

Uploaded CPython 3.8

pyguetzli-1.0.9-cp38-cp38-macosx_10_14_x86_64.whl (163.3 kB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

pyguetzli-1.0.9-cp37-cp37m-win_amd64.whl (127.3 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyguetzli-1.0.9-cp37-cp37m-manylinux2010_x86_64.whl (212.1 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

pyguetzli-1.0.9-cp37-cp37m-manylinux2010_i686.whl (198.4 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

pyguetzli-1.0.9-cp37-cp37m-manylinux1_x86_64.whl (212.1 kB view hashes)

Uploaded CPython 3.7m

pyguetzli-1.0.9-cp37-cp37m-manylinux1_i686.whl (198.4 kB view hashes)

Uploaded CPython 3.7m

pyguetzli-1.0.9-cp37-cp37m-macosx_10_14_x86_64.whl (163.3 kB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page