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.4.tar.gz (4.2 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.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ms_image_process-0.1.4.tar.gz
  • Upload date:
  • Size: 4.2 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.4.tar.gz
Algorithm Hash digest
SHA256 deaedce27f4ce2c0834c070c32bf012e08a53eeb0f2eaaa4f1a39ffe37f08723
MD5 bd47c111339dabc20e87f15e7cc4772e
BLAKE2b-256 c2ee2038a1102295a45ab39c4f83d5bed78b8b9260e0277ce4fa18a57383f168

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_image_process-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1dba5e86364f1ec07069de268f24665923fb4d5634e6231e04bd097b83307f03
MD5 6ab464eaed835bc00ef017287fe8a15e
BLAKE2b-256 b17cb239ba926bbf924f4c23937876df08f696dcda0a4d388542bdf8c7e32c12

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