imagepills is a package that provides high level abstraction for some image utilities
Project description
IMAGEPILLS
Description
This package provides a high level abstraction for some image utilities. Check out the Usage section for commands details.
Installation
This package can be installed using pip
:
$> pip install imagepills
or
$> python -m pip install imagepills
Usage
Size
Use the command pills_size
as follows:
$> pills_size [-h] [-v] [-d STRING] [-f STRING]
Those are the options to pass to the command:
-h, --help Show the help message and exit
-v, --verbose Set verbose option
-d STRING, --directory STRING, Path to directory containing images
-f STRING, --file STRING, Image file path
We can use the pill to calculate the size of one file or a group of files inside a folder.
Resize
Use the command pills_resize
as follows:
$> pills_resize [-h] [-v] -o STRING -f STRING -w STRING -e STRING
Those are the options to pass to the command:
-h, --help Show the help message and exit
-v, --verbose Set verbose option
-o STRING, --output STRING, Path to output folder
-f STRING, --file STRING, Image file to convert
-w STRING, --width STRING, New width
-e STRING, --height STRING, New height
For project purpouses, minimum height and width under 256 pixels are not allowed, and an argparse.ArgumentTypeError
exception will be raised in such case.
If new sizes are not proportional to the original ones, the tool will resize to the biggest size (weight or height) and calculate the other one proportionally.
Convert to png format
Use the command pills_image2png
as follows:
$> pills_image2png [-h] [-v] [-d STRING] -o STRING [-f STRING]
Those are the options to pass to the command:
-h, --help Show the help message and exit
-v, --verbose Set verbose option
-d STRING, --directory STRING, Path to directory containing images
-o STRING, --output STRING, Path to ouput folder
-f STRING, --file STRING, Image file to convert
We can use the pill to convert one or a group of files inside a folder. The ouput folder is mandatory to store converted images.
Contributors
Say hello!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file imagepills-0.0.5.tar.gz
.
File metadata
- Download URL: imagepills-0.0.5.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb3557395933158bc22c8f502300e27c830b24c08da622df1826dee06a28bb6 |
|
MD5 | d2fe9c499f653a2efea00d4a41298ca2 |
|
BLAKE2b-256 | 74e552c1f0c202c8a5b729d8b4405307ce587fd79d58feaa9ef955d824432611 |
File details
Details for the file imagepills-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: imagepills-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d179957f4c3559031a1f4cc957672d5be335bc569120aaaff77a5b90f0b7004 |
|
MD5 | ac8b324863aa48b4372fa77f240746a9 |
|
BLAKE2b-256 | 186ccc4ba33ece8a2ecda715a84356b311a3bd87373b4c5df9ff81e453dc8c98 |