<a href="https://travis-ci.org/alexbotello/minimizer">
<img src="https://travis-ci.org/alexbotello/minimizer.svg?branch=master" alt="Build Status">
</a>
<a href="https://codecov.io/gh/alexbotello/minimizer">
<img src="https://codecov.io/gh/alexbotello/minimizer/branch/master/graph/badge.svg" alt="Coverage">
</a>
<a href="https://badge.fury.io/py/minimizer">
<img src="https://badge.fury.io/py/minimizer.svg" alt="PyPI version" height="18">
</a>
# minimizer
A command line tool that shrinks images in a directory to a specified size
Installation
-------
Install using pip:
```
pip install minimizer
```
Or with pipenv:
```
pipenv install minimizer
```
Usage
-------
$ minimizer
Usage: minimizer [OPTIONS]
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
Contribute
-------
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
<img src="https://travis-ci.org/alexbotello/minimizer.svg?branch=master" alt="Build Status">
</a>
<a href="https://codecov.io/gh/alexbotello/minimizer">
<img src="https://codecov.io/gh/alexbotello/minimizer/branch/master/graph/badge.svg" alt="Coverage">
</a>
<a href="https://badge.fury.io/py/minimizer">
<img src="https://badge.fury.io/py/minimizer.svg" alt="PyPI version" height="18">
</a>
# minimizer
A command line tool that shrinks images in a directory to a specified size
Installation
-------
Install using pip:
```
pip install minimizer
```
Or with pipenv:
```
pipenv install minimizer
```
Usage
-------
$ minimizer
Usage: minimizer [OPTIONS]
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
Contribute
-------
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
Metadata
Release files for minimizer 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| minimizer-0.4.5.tar.gz | 3.1 kB | Details |
Release files / minimizer-0.4.5.tar.gz
| Download URL | minimizer-0.4.5.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44bace2124f7f07543c700b2a0ab62ff58da29e0a5c223532034af4b94f47e14
|
|
BLAKE2b-256 checksum How to use checksums |
fb8f4714963119ca8e71c7d19da7e9769101a0e36473e7d5589ce15e4986cf4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
|