image-generator

Generate platform-sized images from content ideas using the Google Gemini API.

Updated Dec 9, 2023
One-click install
npx skills add https://github.com/gauravprwl14/dev-environment-setup --skill image-generator-gauravprwl14
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-generator
Source: https://github.com/gauravprwl14/dev-environment-setup/tree/main/skills/image-generator
Command: npx skills add https://github.com/gauravprwl14/dev-environment-setup --skill image-generator-gauravprwl14

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-genai, Pillow, and includes scripts (resource) components.

What problem does it solve?

Automates generation of marketing-ready images from content ideas using Google Gemini API.

Core Features & Use Cases

  • Batch generation from ideas.md, producing platform-sized images per idea and a manifest for downstream publishing.
  • Single-prompt mode with configurable output and sizes, supporting ad-hoc image generation.
  • Outputs organized under an images/ directory with per-size filenames and a manifest.json to track assets.
  • Robust workflow with automatic model selection, retries on failures, and incremental manifest updates.
  • Integrates into a content pipeline (ideas → images/ + manifest.json) for streamlined publishing.

Quick Start

Run image-generator with a path to ideas.md or with a --prompt flag to generate images and update the manifest.

Frequently Asked Questions about image-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate marketing images in batch from a markdown file?

To generate marketing images in batch, you provide an ideas.md file containing content ideas. The tool processes each idea, creates platform-sized images, and outputs them to an images directory with a manifest.json for tracking.

Can I use the Gemini API for single-prompt image generation?

Yes, you can use the Gemini API for single-prompt image generation by running the tool with a direct --prompt flag. This mode supports configurable output options and specific image sizes for ad-hoc generation needs.

Do I need a GEMINI_API_KEY to automate image generation from content ideas?

Yes, a GEMINI_API_KEY is required to automate image generation. You also need the google-genai library installed, while Pillow is optional and only needed if you require image resizing capabilities.

What happens when batch image generation fails for a specific content idea?

When batch image generation fails, the workflow features automatic retry logic to attempt the process again. It also performs incremental manifest updates, ensuring successfully generated assets are tracked without overwriting previous outputs.

How does this approach streamline the content publishing pipeline?

This approach streamlines content publishing by combining generated images and a manifest.json file. The manifest tracks all downstream assets, allowing you to move directly from content ideas to organized, platform-sized images ready for publishing.

Are there limitations when using Google Gemini for marketing image generation?

Limitations include dependency on the Google Gemini API for core functionality and the need for external libraries like Pillow for resizing. The tool specifically outputs platform-sized images and a manifest, which may require adjustment for non-standard formats.