Skip to main content

GPU-accelerated image processing library for Python

Project description

PyImageCUDA 0.0.3

PyPI version Build Status Python

GPU-accelerated image compositing for Python.

PyImageCUDA focuses on creative image generation rather than computer vision. Expect GPU-accelerated effects for design workflows—blending modes, shadows, gradients, filters... not edge detection or object recognition.

Quick Example

from pyimagecuda import Image, Fill, Effect, Blend, save

with Image(1024, 1024) as bg:
    with Image(512, 512) as card:
        Fill.color(bg, (1, 1, 1, 1))
        Fill.gradient(card, (1, 0, 0, 1), (0, 0, 1, 1), 'radial')
        Effect.rounded_corners(card, 50)

        with Effect.drop_shadow(card, blur=50, color=(0, 0, 0, 1)) as shadowed:
            Blend.normal(bg, shadowed, anchor='center')

        save(bg, 'output.png')
Demo

Key Features

  • Zero Dependencies: No CUDA Toolkit, Visual Studio, or complex compilers needed. Is Plug & Play.
  • Ultra-lightweight: library weighs <0.5 MB.
  • Studio Quality: 32-bit floating-point precision (float32) to prevent color banding.
  • Advanced Memory Control: Reuse GPU buffers across operations and resize without reallocation—critical for video processing and batch workflows.
  • API Simplicity: Intuitive, Pythonic API designed for ease of use.

Use Cases

  • Generative Art: Create thousands of unique variations in seconds.
  • Motion Graphics: Process video frames or generate effects in real-time.
  • Image Compositing: Complex multi-layer designs with GPU-accelerated effects.
  • Game Development: Procedural UI assets, icons, and sprite generation.
  • Marketing Automation: Mass-produce personalized graphics from templates.
  • Data Augmentation: High-speed batch transformations for ML datasets.

Installation

pip install pyimagecuda

Note: Automatically installs pyvips binary dependencies for robust image format support (JPG, PNG, WEBP, HEIC).

Documentation

⚠️ Alpha Release: Many more features are planned and under development.

Core Concepts

Operations

  • Adjust (Brightness, Contrast, Saturation, Gamma)
  • Transform (Flip, Rotate, Crop)
  • Blend (Normal, Multiply, Screen, Add, Overlay, Soft Light, Hard Light, Mask)
  • Resize (Nearest, Bilinear, Bicubic, Lanczos)
  • Filter (Gaussian Blur, Sharpen)
  • Effect (Drop Shadow, Rounded Corners)
  • Fill (Solid colors, Gradients)

Requirements

  • OS: Windows 10 or 11 (64-bit). Linux support coming soon.
  • GPU: NVIDIA GPU (Maxwell architecture / GTX 900 series or newer).
  • Drivers: Standard NVIDIA Drivers installed.

NOT REQUIRED: Visual Studio, CUDA Toolkit, or Conda.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pyimagecuda-0.0.3-cp313-cp313-win_amd64.whl (154.2 kB view details)

Uploaded CPython 3.13Windows x86-64

pyimagecuda-0.0.3-cp312-cp312-win_amd64.whl (154.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pyimagecuda-0.0.3-cp311-cp311-win_amd64.whl (154.3 kB view details)

Uploaded CPython 3.11Windows x86-64

pyimagecuda-0.0.3-cp310-cp310-win_amd64.whl (154.3 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file pyimagecuda-0.0.3-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyimagecuda-0.0.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 154.2 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyimagecuda-0.0.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 91165edbd34569a41460a05c51207ada4af12fca40f85a5d12819cf1c4c9705d
MD5 3ef608df55c769592b73274a41b181ba
BLAKE2b-256 96c995b82c7024445e7bcd9776e93113d068ea10d5dcaee36aabb0454223fe15

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimagecuda-0.0.3-cp313-cp313-win_amd64.whl:

Publisher: build.yml on offerrall/pyimagecuda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyimagecuda-0.0.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyimagecuda-0.0.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 154.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyimagecuda-0.0.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d0689e581803c99b9ef65cacb96d725a6b7956070da10f38ce43508bd89c5a85
MD5 6f8b8e8fdd8e8321b55fd901404e5dd2
BLAKE2b-256 1eba891c09cf62c267d3a01635e0db300e3824aff162687e4b69553c1431bd90

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimagecuda-0.0.3-cp312-cp312-win_amd64.whl:

Publisher: build.yml on offerrall/pyimagecuda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyimagecuda-0.0.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyimagecuda-0.0.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 154.3 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyimagecuda-0.0.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f44b474005379cdb1496edbc9b9299b838134da45e139f978dbd83f3a86977fe
MD5 59e08b7b4eb467c2208f713f6218dd0f
BLAKE2b-256 4c60f27d990d5899d4d8d1f2978815e760a0d578bd9f192bcabb787738ec7c55

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimagecuda-0.0.3-cp311-cp311-win_amd64.whl:

Publisher: build.yml on offerrall/pyimagecuda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyimagecuda-0.0.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyimagecuda-0.0.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 154.3 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyimagecuda-0.0.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 057717bbf0101edb993ce4a359062e45479ea0335ce63a71f1abe78ff3a59c35
MD5 0c5a6a678379f757dd64d641d3ea14f4
BLAKE2b-256 14873586c95b969b1d7d1493a8d9d8bddc60c2afdb5f8cb6215800d976c440ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimagecuda-0.0.3-cp310-cp310-win_amd64.whl:

Publisher: build.yml on offerrall/pyimagecuda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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