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.2.0.tar.gz (4.4 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.2.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ms_image_process-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 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.2.0.tar.gz
Algorithm Hash digest
SHA256 99b3ac3383932998ffae62784b17ac81ebeaac1249cdc5b8bc499b8d56e4efca
MD5 bda9b109ea4f8bca51c0386163837257
BLAKE2b-256 605569ebc1be056a593757ad8a7112c0d6005f2c82bbb351bd7123f35ab13363

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_image_process-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f5ce22362396f18bc224bad67c932ccfd5b0d00bd4eb27043ab327209908ca0
MD5 710b70a24a55761aee4269f20c13f583
BLAKE2b-256 786367a97fa20cc1f2ff0a25c7b38772d0a83fd44e2deefa12ca6a2f822b16c2

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