xilong image processing utility library
Project description
xl-image
xilong image processing utility library
Installation
pip install xl-image
Usage
from xl_image import Image
# Create image from base64 string
img = Image("data:image/png;base64,...")
# Add watermark
watermarked = img.watermark("Watermark Text")
# Create thumbnail
thumb_data = img.thumbnail((128, 128))
# Trim image
trimmed = img.trim()
# Get image size
width, height = img.size
# Get image bytes
image_bytes = img.bytes
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
xl_image-1.0.0.tar.gz
(2.4 kB
view details)
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 xl_image-1.0.0.tar.gz.
File metadata
- Download URL: xl_image-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b87a1ed70093462f071dadb679c6e93aa4742685db364ce7404c5cb7ec8394ca
|
|
| MD5 |
0e575f166659f62b5102bfda7b673853
|
|
| BLAKE2b-256 |
657b8bd93c601c2ba0153f7a92d5a0d32bfc441cfa9d536aa165126c6f2247bf
|
File details
Details for the file xl_image-1.0.0-py3-none-any.whl.
File metadata
- Download URL: xl_image-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98de6618ae4aa2fce3419447969bb541e74de019829e5b9d4a3223c8a4769eec
|
|
| MD5 |
22ce1072b532bba9517793e75a6183f7
|
|
| BLAKE2b-256 |
7ae7ebb344ca42b88d801ca9c5de27e15e874e866897edd7c1a92b685678de5b
|