🎨 Pillow Image Generation Demo

This Python Worker demonstrates dynamic image generation using the Pillow library.

1. Gradient Generator

Generate gradient images with custom colors and dimensions.

Endpoint: /gradient

Parameters:

Example: /gradient?width=600&height=300&color1=FF6B6B&color2=4ECDC4
Gradient example

2. Badge Generator

Create custom badges or buttons with text.

Endpoint: /badge

Parameters:

Example: /badge?text=Python+Workers&bg_color=2196F3&text_color=FFFFFF
Badge example

3. Placeholder Generator

Generate placeholder images with dimensions displayed.

Endpoint: /placeholder

Parameters:

Example: /placeholder?width=500&height=300
Placeholder example

4. Chart Generator

Create simple bar charts with custom data.

Endpoint: /chart

Parameters:

Example: /chart?values=15,30,25,40,20&labels=Mon,Tue,Wed,Thu,Fri
Chart example

💡 Tips