Skip to main content

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


Download files

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

Source Distribution

imagepills-0.0.6.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

imagepills-0.0.6-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file imagepills-0.0.6.tar.gz.

File metadata

  • Download URL: imagepills-0.0.6.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

Hashes for imagepills-0.0.6.tar.gz
Algorithm Hash digest
SHA256 092baf19f56b511486c979b291ed791cda09a2b510881f0b9c88b6c556fce6dc
MD5 3838c85b8f7a2ebe5ebba22206dac47c
BLAKE2b-256 040c67ce80b0e71da98e2debe3bb0123c06fd93a295c0888144b330de7879a7b

See more details on using hashes here.

File details

Details for the file imagepills-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: imagepills-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for imagepills-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e15cfeecb4dd92c2717ec3ec81a2503a4ca8cf577867ccd04a93417548cd65ea
MD5 4ddddfe5ecad0e11506ffa81097d2fc5
BLAKE2b-256 f0cb22d7ec20095d60d91390c8976a5e99abf7acee72ae3cc8e8cd645f1466d0

See more details on using hashes here.

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