This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

a utility for optimizing JPEG files

Project Description

What is PyJpegOptim?

PyJpegOptim is a utility for optimizing JPEG files. It provides lossless optimization (based on optimizing the Huffman tables) and “lossy” optimization based on setting a maximum quality factor.

Installation

You need to install libjpeg first, To install JpegOptim:

Debian:

apt-get install libjpeg-dev -y

FreeBSD:

cd /usr/ports/graphics/jpeg
make install clean

To install PyJpegOptim:

pip install pyjpegoptim

How to use it?

Following is a simple example:

# -*- coding: utf8 -*-
from pyjpegoptim import JpegOptim
t = JpegOptim('/tmp/test.jpg', quality=80)
t.save('/tmp/test_optim.jpg')
t.close()
Release History

Release History

This version
History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyjpegoptim-0.1.1.zip (4.4 kB) Copy SHA256 Checksum SHA256 Source Jun 26, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting