Skip to main content

GPU-accelerated image processing library for Python

Project description

PyImageCUDA 0.0.2

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: Core 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: This is version 0.0.2 with core functionality. Many more features are planned and under development.

Core Concepts

Operations (v0.0.2)

  • Blend (Normal, Multiply, Screen, Add)
  • 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.2-cp313-cp313-win_amd64.whl (129.2 kB view details)

Uploaded CPython 3.13Windows x86-64

pyimagecuda-0.0.2-cp312-cp312-win_amd64.whl (129.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pyimagecuda-0.0.2-cp311-cp311-win_amd64.whl (129.2 kB view details)

Uploaded CPython 3.11Windows x86-64

pyimagecuda-0.0.2-cp310-cp310-win_amd64.whl (129.2 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

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

File metadata

  • Download URL: pyimagecuda-0.0.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 129.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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a7498df2d686ada9c366926946b4c6621219fdb956ea876d1e4d5439e0532c13
MD5 f8847b47d115f96146edf2611d57c390
BLAKE2b-256 6819d711357bf79b3cee2fbf870c0ed0db3644e92764d967d43f4e11be3eee0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimagecuda-0.0.2-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.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyimagecuda-0.0.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 129.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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 359e9524137c0f92c2f3392402ee674db57503d95bd15c0e3240db22eeee5bae
MD5 0bd779657ce579ba0ee5fa298bf2b2e5
BLAKE2b-256 fec13e7b459229a52acb0965105607c25bf55207b37fa19c946eb1d53e20dc0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimagecuda-0.0.2-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.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyimagecuda-0.0.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 129.2 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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3dad8588dc336381db8af7cf8e95e12c6214f860278e5159eae7d5bf122b9a6b
MD5 735f856d85aee5946e67123fa081bcba
BLAKE2b-256 08dd9bf7a9f8e781eb2a5ccd5d844115a955f46ac682967a25016008a7708149

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimagecuda-0.0.2-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.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyimagecuda-0.0.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 129.2 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.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3982f795ecd7df8c977e20909b8931a7411450a562e8da9557e711c4548977ae
MD5 21e14ae65dec69d32d32056e9ddbccf9
BLAKE2b-256 54508ff251c422e10084b48a968b1663721572618b296a2be08559fd418e5405

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimagecuda-0.0.2-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