Using python pilpillow

From vamseeachanta/workspace-hub · View interactive version

Using python pilpillow is an AI agent skill from the GitHub repository vamseeachanta/workspace-hub. Sub-skill of canvas-design: Using Python (PIL/Pillow) (+2).

How to use this skill

Skill file

Using Python (PIL/Pillow) (+2)

Using Python (PIL/Pillow)

from PIL import Image, ImageDraw, ImageFont
import math

# Create canvas
width, height = 2400, 3200
canvas = Image.new('RGB', (width, height), '#0a0a0a')
draw = ImageDraw.Draw(canvas)

# Geometric composition

*See sub-skills for full details.*

## Using Cairo (Vector Graphics)

import cairo

import math

width, height = 2400, 3200

surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)

ctx = cairo.Context(surface)

Background

ctx.set_source_rgb(0.04, 0.04, 0.04)

See sub-skills for full details.

Using SVG (for PDF conversion)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.