Skip to main content

A tool for retheming images and CSS using color palettes and gradients.

Project description

superwand

Leverage magic wand to breath life to images, especially posterized and vector art images.

Setup

pip install .

SuperWand Studio

The SuperWand Studio provides an interactive web interface for real-time image retheming, CSS retheming, and gradient application.

Running the Studio

Simply run the superwand command without applying a theme:

superwand

Access the UI

Once the server is running, open your browser and navigate to http://127.0.0.1:5001.

CLI Usage

Apply a Theme

superwand examples/images/zebra.png -theme Urban

Arguments

  • image_path: Path to the input image file (optional if starting studio).
  • -theme: Theme to apply (Tropical, Urban, Winter, etc.).
  • -k: Number of regions to identify (default 4).
  • -tolerance: Color matching tolerance (default 50).
  • -flood: Apply morphological flood filling.
  • -gradient: Gradient style (none, auto, vertical, horizontal, radial).
  • -intensity: Gradient intensity (0.0 to 1.0, default 0.2).
  • --headless: Run in headless mode without opening the studio.

Enforce Gradients

gradient-enforce examples/images/charizard.png --style radial

Arguments

  • image_path: Path to the input image.
  • --style: Direction of gradients (auto, vertical, horizontal).
  • --completeness: Impacted regions (auto, aggressive, filter).
  • --opacity: Opacity handling.
  • --intensity: Gradient dramaticism (0.0 to 1.0, default 0.2).
  • --output: Path to the output image.

Gradients

Included: bottom-up, top-down, left-right, right-left, radial

CSS Retheming

Identify color schemes in CSS and replace with a theme.

Color Themes

Themes included:

Example: Charizard

Gallery

Rio De Janeiro Skyline

Austin Ladybird Lake Plankton rendered in ZIT

Me in Rio de Janeiro

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

superwand-0.1.3.tar.gz (18.2 MB view details)

Uploaded Source

Built Distribution

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

superwand-0.1.3-py3-none-any.whl (18.3 MB view details)

Uploaded Python 3

File details

Details for the file superwand-0.1.3.tar.gz.

File metadata

  • Download URL: superwand-0.1.3.tar.gz
  • Upload date:
  • Size: 18.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for superwand-0.1.3.tar.gz
Algorithm Hash digest
SHA256 229309eddcadf5d23ca4b0882357da2491f13a5bf3f3be6aa8fbcc19185fb7c8
MD5 ab43bbc97996051f03f4c817c470281d
BLAKE2b-256 797c6e589a66903a1a00562fb4e8fcbdd79b289fd4869011df352152ff9a39ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for superwand-0.1.3.tar.gz:

Publisher: publish.yml on juleshenry/superwand

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

File details

Details for the file superwand-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: superwand-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for superwand-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b1ee9067548a50d21bdbfb32418c6972614bc380531ef2d9347deeeafd76541
MD5 2a72840d3ee43684958a4efc8a8c4502
BLAKE2b-256 069d542ee10f795fc62269d71f552da0841beb7a6120050bd66053a1b8b8585a

See more details on using hashes here.

Provenance

The following attestation bundles were made for superwand-0.1.3-py3-none-any.whl:

Publisher: publish.yml on juleshenry/superwand

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