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)
Release files for imdix 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imdix-0.0.4.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imdix-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / imdix-0.0.4.tar.gz
| Download URL | imdix-0.0.4.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1ff77324e2c2977c2eba3fc849494fe2253c75ab05821c74141cc67b2c3fd4d
|
|
BLAKE2b-256 checksum How to use checksums |
d40fb0b18d15e728d90e9a4b7d3baba3d3dd58b134b98d4b5de5ea7f8c40bcb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / imdix-0.0.4-py3-none-any.whl
| Download URL | imdix-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cec0ee27b875182223617c0515f3b11ee683c1e2f7641f1e02dfe9080419000c
|
|
BLAKE2b-256 checksum How to use checksums |
67e302ac522a2987cc6cf541be0670d8218607391d5ca413b4eed059f16b7406
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|