Dynamic image resizing tool
Project description
Imdix : Dynamic image file resizing tool
This tool automatically resizes the image file according to your needs, Let's say you have an image file of size 2 MB and you need to reduce size to 300 KB, use imdix
Install
pip install --upgrade imdix
Usage
usage: dx [-h] --image IMAGE --size SIZE [--output OUTPUT] [--ext EXT]
Dynamic image file resizer
optional arguments:
-h, --help show this help message and exit
--image IMAGE, -i IMAGE
Path to image file
--size SIZE, -s SIZE Target output size
--output OUTPUT, -o OUTPUT
Output file name
--ext EXT, -x EXT Extension of output file
Example
Let's reduce this car image
dx --image images/car_500.jpg --size 5000 # all output sized must be in KBs
Output
[ERROR] Target size(5000 KB) greater than file size(500 KB)
Yes, we're going to reduce a 500 KB file. Let's reduce it to 200 KB
dx --image image/car_500.jpg --size 200 --output car_200
output
[INFO] Resize complete...
[INFO] Filename: images/car_200.jpg, Size: 200
Output file
This image of size 200KB
#### imdix is set to produce images of size: target +/- 2KBYou can also specify output filename and extension(although it doesn't make any difference)
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
imdix-0.0.4.tar.gz
(4.1 kB
view details)
Built Distribution
imdix-0.0.4-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file imdix-0.0.4.tar.gz
.
File metadata
- Download URL: imdix-0.0.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ff77324e2c2977c2eba3fc849494fe2253c75ab05821c74141cc67b2c3fd4d |
|
MD5 | fdca0782128de0931dfe40def6992121 |
|
BLAKE2b-256 | d40fb0b18d15e728d90e9a4b7d3baba3d3dd58b134b98d4b5de5ea7f8c40bcb1 |
File details
Details for the file imdix-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: imdix-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec0ee27b875182223617c0515f3b11ee683c1e2f7641f1e02dfe9080419000c |
|
MD5 | 14b1f4724412f21241dc6d0092b1c777 |
|
BLAKE2b-256 | 67e302ac522a2987cc6cf541be0670d8218607391d5ca413b4eed059f16b7406 |