A simple and lightweight Python library for basic image processing tasks.
Project description
Pyxify
Pyxify is a simple and lightweight Python library for basic image processing tasks.
It is built using Pillow and provides easy-to-use functions for resizing, cropping, enhancing, and manipulating images.
✨ Features
- Resize images
- Crop images
- Convert images to grayscale
- Flip images (horizontal & vertical)
- Rotate images
- Enhance:
- Brightness
- Contrast
- Color
- Sharpness
- Apply blur effect
- Extract image metadata
🚀 Installation
pip install pyxify
📌 Usage
Import Library
from pyxify import *
Resize Image
img = resize(200, 200, "image.jpg")
Crop Image
img = crop(10, 10, 100, 100, "image.jpg")
Convert To Grayscale
img = grayscale("image.png")
Flip Image
img = flip_horizontal("image.png")
img = flip_vertical("image.png")
Rotate Image
img = rotate(90, "image.jpg")
Enhance Image
img = enhance_brightness(2.5, "image.png")
img = enhance_contrast(2.5, "image.png")
img = enhance_color(2.5, "image.png")
img = enhance_sharpness(2.5, "image.png")
Apply Blur
img = blur_effect(5.0, "image.png")
Get Image Metadata
get_image_metadata("image.png")
⚠️ Error Handling
The library handles common errors:
FileNotFoundError→ When the file does not existValueError→ When the file is not a valid image
📂 Supported Input
- File Path (
str) - PIL Image object
🧪 Testing
The project includes test cases using pytest with ~95% coverage.
Run tests:
pytest
📦 Dependencies
- Pillow
Dev Dependencies
- pytest
- pytest-cov
👨💻 Author
Adeel Tahir
📜 License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
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 pyxify-0.1.2.tar.gz.
File metadata
- Download URL: pyxify-0.1.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40eab4a4338205c1887fa26ef2fee2ceb3b356e7f7460e263b4e3cf6bb85c12c
|
|
| MD5 |
c685c686ba7938c6d4a0f725fe07d655
|
|
| BLAKE2b-256 |
d85093faf5768743ac43e8660b9b6175aa5a585e46a974bf7adbb7f3fb37d9b1
|
File details
Details for the file pyxify-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pyxify-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.5 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 |
b5985a110618a81ae698e16a214db9578a069e2c2a7854370327cc8634693764
|
|
| MD5 |
685596581f87e48dc9419916bff66596
|
|
| BLAKE2b-256 |
290a15f5f45bb62316414d54f3a0d31dfc17228b9f0d1caf174427f089c816b7
|