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
- Ensure you have Python 3.8 or higher installed
- Install the package using pip:
pip install ms-image
Usage
ms-image input.jpg output.png [OPTIONS]
Options
--width WIDTHSet the output image width (maintains aspect ratio)--height HEIGHTSet the output image height (maintains aspect ratio)--scale SCALEScale the image by a factor (e.g., 0.5 for 50% size)--grayscaleConvert 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df041e7fdaad80b406d7584078dd8fe0eb588829197d766002ccdeb67eb91df0
|
|
| MD5 |
d9d605eb5b063f01b3ecfb81097f98b3
|
|
| BLAKE2b-256 |
8aef683c0c38363464c747b8c6a5a3c20104a0ef3f93fe98ec05e71ff7a75ca9
|
File details
Details for the file ms_image_process-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ms_image_process-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1aace7b95e2142a900fe3ab2bb1f908d5aa1ece90178fca15bd1584fed557441
|
|
| MD5 |
f33f6e2d3b4a5d0b87d1da9060df99cb
|
|
| BLAKE2b-256 |
a3b3d9a7e6c976622fee0bddd21c16d62abc192c6f2d5557d2b3be06d8c27856
|