Skip to main content

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


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.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

xl_image-1.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file xl_image-1.0.1.tar.gz.

File metadata

  • Download URL: xl_image-1.0.1.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

Hashes for xl_image-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f2c7ac5ca3ec9916ab813cfeeef6173bed636a0bcc5fb8df566d4638eadd809d
MD5 e5aa9efab04c761e60f34cd69e3a7463
BLAKE2b-256 ddea645533560ca64260397c0a67d05c172ea64325de23221c0b85b3e10e1e0c

See more details on using hashes here.

File details

Details for the file xl_image-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: xl_image-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for xl_image-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68e04b88118e4dec17be5d03b2d1d0b64600be7ef848df264c40a4c78d77c665
MD5 e308ba0e5990a9fbd09a9ab15794806d
BLAKE2b-256 4ea4f0c0740a18eef0ff856fa828c2dc6d8d6e67f2bac4d46c5587c0312d696e

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