Skip to main content

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 exist
  • ValueError → 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxify-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyxify-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pyxify-0.1.1.tar.gz.

File metadata

  • Download URL: pyxify-0.1.1.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

Hashes for pyxify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 54187491b74731c729aa5d7b377cbb37182a02de27e6b8868bc547d3e9883db8
MD5 5e2e69684ced15541f1c2dc79ff3371c
BLAKE2b-256 6bfab5bbe089deaaa91e1c5c41d154203a9adad69c1758b74a5d2dfe8efc3db4

See more details on using hashes here.

File details

Details for the file pyxify-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyxify-0.1.1-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

Hashes for pyxify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67e05bd6f655eed3b098f83c3b041fbcad0b6ff64a7be6ab125f7ed3f1158d4e
MD5 63df2255e1dd0c29eafcc3dfbc30da16
BLAKE2b-256 d0b3483dc27dea22700f14e14a09b8bdb1a5078279d86e60e2013b6ea3385b58

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