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.0.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.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyxify-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e6fc6efc7d509a6003b4276b2017d4052cc9b4c712aa22de4470c02688c89da3
MD5 068f983983ba32748316f44501759d5e
BLAKE2b-256 99cf4a4aa8c3aba34a7943df624db190cb298205d4ee8c42c67706a147184481

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyxify-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8ed3a3cc8f60238f872e42fda1e089d6b3304d73fe6d40adfec3d73ea25127c
MD5 75cd00f60ed4cd06dc673200a17cb6f3
BLAKE2b-256 733c862dfe2477620ae8d74474888e4114782b5a848d149389379680e79d70e3

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