Skip to main content


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!

Release files for imagepills 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imagepills 0.0.6
File Size Uploaded
imagepills-0.0.6.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for imagepills 0.0.6
File Interpreter ABI Platform
imagepills-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / imagepills-0.0.6.tar.gz

Download URL imagepills-0.0.6.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
092baf19f56b511486c979b291ed791cda09a2b510881f0b9c88b6c556fce6dc
BLAKE2b-256 checksum
How to use checksums
040c67ce80b0e71da98e2debe3bb0123c06fd93a295c0888144b330de7879a7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / imagepills-0.0.6-py3-none-any.whl

Download URL imagepills-0.0.6-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e15cfeecb4dd92c2717ec3ec81a2503a4ca8cf577867ccd04a93417548cd65ea
BLAKE2b-256 checksum
How to use checksums
f0cb22d7ec20095d60d91390c8976a5e99abf7acee72ae3cc8e8cd645f1466d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page