Skip to main content

Image Size Reducer

Image Size Reducer is a package created for reducing image size for fast uploading and processing.

Steps

  • Specify image path
  • Specify quality 1-100
  • Specify path where you want to save

Installation

Image Size Reducer requires python3 to run.

pip install imageSizeReducer

Usage

Image Size Reducer

from imageSizeReducer import imageSizeReducer

actualImage = "path/to/img.jpg"
pathToSave = "path/to/img.jpg"
quality=95

imageSizeReducer.resize(actualImage, quality, pathToSave)

# output - {'message': 'successfully completed image resize', 'actual-image-path': '/home/bramhesh/Downloads/20.jpg', 'quality-specified': 50, 'path-to-image': '/home/bramhesh/20.jpg'}
# output - {'message': 'image resize process failed', 'error': FileNotFoundError(2, 'No such file or directory'), 'actual-image-path': '/home/bramhesh/Downloads/2.jpg', 'quality-specified': 50, 'path-to-image': '/home/bramhesh/20.jpg'}
# output - {'message': 'image resize process failed', 'error': ValueError('unknown file extension: '), 'actual-image-path': '/home/bramhesh/Downloads/20.jpg', 'quality-specified': '/home/bramhesh/20.jpg', 'path-to-image': 50}

Metadata

Release files for imageSizeReducer 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imageSizeReducer 0.2.1
File Size Uploaded Provenance
imageSizeReducer-0.2.1.tar.gz 2.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for imageSizeReducer 0.2.1
File Interpreter ABI Platform
imageSizeReducer-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / imageSizeReducer-0.2.1.tar.gz

Download URL imageSizeReducer-0.2.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9649758da8a1eb862d2dc391f7cfce2a0cda4258ac779cd42d8c96a1ac23c1f
BLAKE2b-256 checksum
How to use checksums
2ff8671a77e15587797c6f4ba7249dbe4951db09d79fa6f589be4509973c14d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / imageSizeReducer-0.2.1-py3-none-any.whl

Download URL imageSizeReducer-0.2.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8c9bba350108434c40eb3867dc0096b21bb65782c8ac194d6f0efe0deb10462
BLAKE2b-256 checksum
How to use checksums
c6181faa420edd9251d62a4f09c729aa44f379e4cf0579dab2361c23b963ea5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Security for imageSizeReducer 0.2.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page