JPEG: A Python wrapper for jpegtran
JPEG is a Python wrapper for jpegtran, designed to make it easier to interact with and manipulate JPEG files directly from Python. It is much faster than Pillow and OpenCV, as it operates directly on the JPEG file headers. This also means, as you might expect, only the JPEG format is supported.
Dependancies
You must have jpegtran installed on your system to use this library.
Installation
To install the JPEG Python wrapper, you can use pip:
pip install jpegtran
Usage
Here's how to use the JPEG wrapper to open a JPEG file, optimize it, rotate it by 90 degrees, and save the result:
import jpeg
jpeg \
.open('example.jpg') \
.optimize() \
.rotate(90) \
.save('example-rotated.jpg')
Metadata
Release files for jpegtran 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jpegtran-0.0.3.tar.gz | 3.4 kB | Without provenance | Details for jpegtran-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jpegtran-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for jpegtran-0.0.3-py3-none-any.whl |
Total release size: 7.1 kB
Release files / jpegtran-0.0.3.tar.gz
| Download URL | jpegtran-0.0.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5189c4355d3be9f52b5a6c211adaeb88485b2c306fc080436d53aa1e7ad89f0
|
|
BLAKE2b-256 checksum How to use checksums |
a7e8d02c8c646a7020c4574afadc3f8d3aeff4e6f236a1adfbf5299258a05240
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.8.10
|
Release files / jpegtran-0.0.3-py3-none-any.whl
| Download URL | jpegtran-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88f1814e8d7acddc9e801b2ea2e03067afa20f95ca36f5ed702a9c285ef25bc5
|
|
BLAKE2b-256 checksum How to use checksums |
7b55827f5bca4014d0109e0d0a898a5e2b968a5c94972c19b7e884b236701ec6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.8.10
|
Security for jpegtran 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.