This Python Worker demonstrates dynamic image generation using the Pillow library.
Generate gradient images with custom colors and dimensions.
Endpoint: /gradient
Parameters:
width - Image width (default: 800)height - Image height (default: 400)color1 - Start color in hex (default: random)color2 - End color in hex (default: random)Create custom badges or buttons with text.
Endpoint: /badge
Parameters:
text - Badge text (default: "Hello World")bg_color - Background color in hex (default: #4CAF50)text_color - Text color in hex (default: #FFFFFF)Generate placeholder images with dimensions displayed.
Endpoint: /placeholder
Parameters:
width - Image width (default: 400)height - Image height (default: 300)bg_color - Background color in hex (default: #CCCCCC)text_color - Text color in hex (default: #666666)Create simple bar charts with custom data.
Endpoint: /chart
Parameters:
values - Comma-separated values (default: 10,25,15,30,20)labels - Comma-separated labels (default: A,B,C,D,E)color - Bar color in hex (default: #2196F3)