Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PranavArya37/d5cdf4d6ee08c7df496d0b242d5e995e to your computer and use it in GitHub Desktop.
Save PranavArya37/d5cdf4d6ee08c7df496d0b242d5e995e to your computer and use it in GitHub Desktop.
Turn messy image filenames into descriptive ones

Turn messy image filenames into descriptive ones

In this tutorial, you will learn how to use Google's Gemini CLI to analyze your images and generate SEO-friendly filenames automatically, improving your content organization and search engine visibility.

Step-by-step:

  1. Install Gemini CLI: npm install -g @google/gemini-cli and authenticate with your Google account

  2. Test a single image analysis typing: gemini "Describe what's in [image1.png]"

  3. Batch process: gemini “Process all images in this folder. For each image, analyze the content and rename it with a descriptive filename with relevant keywords for SEO purposes.”

Pro tip: Start with a small batch to understand how Gemini interprets your content, then scale up to your entire image library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment