Skip to main content

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


pip install --upgrade imdix 


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


Let's reduce this car image

by @

by Olav @ Unsplash

dx --image images/car_500.jpg --size 5000 # all output sized must be in KBs


[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


[INFO] Resize complete...
[INFO] Filename: images/car_200.jpg, Size: 200

Output file output_200KB

This image of size 200KB

#### imdix is set to produce images of size: target +/- 2KB

You 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 hashes)

Uploaded source

Built Distribution

imdix-0.0.4-py3-none-any.whl (4.4 kB view hashes)

Uploaded py3

Supported by

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