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.3.0.tar.gz (4.7 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.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ms_image_process-0.3.0.tar.gz
  • Upload date:
  • Size: 4.7 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.3.0.tar.gz
Algorithm Hash digest
SHA256 df041e7fdaad80b406d7584078dd8fe0eb588829197d766002ccdeb67eb91df0
MD5 d9d605eb5b063f01b3ecfb81097f98b3
BLAKE2b-256 8aef683c0c38363464c747b8c6a5a3c20104a0ef3f93fe98ec05e71ff7a75ca9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_image_process-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1aace7b95e2142a900fe3ab2bb1f908d5aa1ece90178fca15bd1584fed557441
MD5 f33f6e2d3b4a5d0b87d1da9060df99cb
BLAKE2b-256 a3b3d9a7e6c976622fee0bddd21c16d62abc192c6f2d5557d2b3be06d8c27856

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