Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

A command line tool to shrink image(s) in a directory to a specified size

Project description

<a href="">
<img src="" alt="Build Status">
<a href="">
<img src="" alt="Coverage">
<a href="">
<img src="" alt="PyPI version" height="18">

# minimizer
A command line tool that shrinks images in a directory to a specified size

Install using pip:
pip install minimizer
Or with pipenv:
pipenv install minimizer


$ minimizer
Usage: minimizer [OPTIONS]

-d, --dir Specify path for directory. Defaults to current working directory.
-s, --size Specify new size dimensions. Defaults to 250 250
-f, --format Specify image format.
-n, --name Name specific image file to minimize. Must include file extension.
--help Show this message and exit.

Usage Examples:
Minimize all images in current directory using defaults:
$ minimizer

Minimize all images in current directory to a new size:
$ minimizer -s 75 50

Minimize all images to a new size and format in a specified directory:
$ minimizer -d /home/user/code/images -s 125 50 -f jpeg

Minimize a specific image in current directory:
$ minimizer -n img12.jpg -s 150 150

Minimize a specfic image in another directory:
$ minimizer -d /home/user/code/images -n img12.jpg -s 200 100

1. Fork this repository and create a new branch:
- `git checkout -b <branch name>`

2. Install all dependencies with pipenv:
- `pipenv install --dev`

3. Before you commit, run all tests and checks:
- `sh scripts/test`

4. Commit and push your new branch to your forked repo:
- `git push origin <branch name>`

5. Create your pull request

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for minimizer, version 0.4.5
Filename, size File type Python version Upload date Hashes
Filename, size minimizer-0.4.5.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page