Skip to main content

A simple image compression tool

Project description

SMLR

A simple compression tool.

Installation

pip install smlr

Usage

Command Line Interface

smlr --path /path/to/image.jpg --ratio 4

Python API

from smlr import SMLR

# Compress an image with compression ratio 4
SMLR.compress("image.jpg", ratio=4)

Example

Original (4.9 MB) Compressed (1.7 MB, ratio=4)
Original Eiffel Tower (4.9 MB) Compressed Eiffel Tower (1.7 MB, ratio=4)
smlr --path eiffel_tower.jpg --ratio 4

Requirements

  • Python 3.7+
  • numpy
  • scipy
  • matplotlib
  • Pillow

License

MIT License

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

smlr-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smlr-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file smlr-0.1.1.tar.gz.

File metadata

  • Download URL: smlr-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for smlr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ac575118a36558e73c7b8a5a0e27ff167bcc839749b735d9d980c042564cd01
MD5 83f93ed2cd8321d5288c6b67dfb64508
BLAKE2b-256 34e2affb21987c05d0503da7bc75b23758aa9027983f005e103be365831a1d3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for smlr-0.1.1.tar.gz:

Publisher: publish-to-pypi.yml on J-Douglas/smlr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smlr-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: smlr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for smlr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2f667105d2c1754cd1de8ed9229e4777734d5233f5b91e0546be30ed6086279
MD5 bab55a66a29cce0452b4030ec51c304d
BLAKE2b-256 78e365f9dde3967cffee4bbe23cba56ea5d835a26ffbd46ce0f4ae58fde3b7e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for smlr-0.1.1-py3-none-any.whl:

Publisher: publish-to-pypi.yml on J-Douglas/smlr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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