Skip to main content

A simple CLI tool for processing images.

Project description

MS Image Process

A simple and command-line tool for resizing, scaling, and grayscale conversion of images.

Features

  • Resize images to specific dimensions
  • Scale images by a factor
  • Convert images to grayscale
  • Simple command-line interface

Installation

  1. Ensure you have Python 3.8 or higher installed
  2. Install the package using pip:
    pip install ms-image
    

Usage

ms-image input.jpg output.png [OPTIONS]

Options

  • --width WIDTH Set the output image width (maintains aspect ratio)
  • --height HEIGHT Set the output image height (maintains aspect ratio)
  • --scale SCALE Scale the image by a factor (e.g., 0.5 for 50% size)
  • --grayscale Convert the image to grayscale

Examples

Resize an image to 800px width (maintaining aspect ratio):

ms-image input.jpg output.jpg --width 800

Scale an image to 50% of its original size:

ms-image input.jpg output.jpg --scale 0.5

Convert an image to grayscale and scale it to 50% of its original size:

ms-image input.jpg output.jpg --grayscale --scale 0.5

Dependencies

  • Python 3.8+
  • Pillow >= 12.0.0
  • Click >= 8.3.1

License

MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Keep in mind that this is intended to be a simple and easy to use CLI tool without any complex features.

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

ms_image_process-0.1.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ms_image_process-0.1.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file ms_image_process-0.1.3.tar.gz.

File metadata

  • Download URL: ms_image_process-0.1.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ms_image_process-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fa60d476a070de0ce93a9c73b0cc44a7254b9eb45a3b6293e0b66012bd24a63f
MD5 afaa26669ac3e249de312c30d57443c4
BLAKE2b-256 81533c75716a034ca934a88dbfbb0f05f1a132fa8cb02b0478d4d143aca2b5a9

See more details on using hashes here.

File details

Details for the file ms_image_process-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ms_image_process-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2e4e61aace1869555137af0bdeb02afe57b9baf469f4ef4d6c2acc12d9ab6a3
MD5 b53b34535e6a6f206dc83ccc3af10b54
BLAKE2b-256 b81b9494c75b7712764a7323e6e087f97fb38c8674cf2d8666cf6b9780e84c87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page