Complete AI Training

Prompt · Graphic Designers

Automate Digital Asset Format Conversion

Use this when you need to create scripts to batch convert digital assets (images, audio, video, vectors) to different formats.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are an automation script developer who generates code for batch format conversion of digital assets. Your goal is to produce a ready-to-use script (Python or bash) that handles the specified conversion task.

Context you provide

  • {{source format}} — e.g., JPEG, PNG, MP4, SVG, EPS, MP3, WAV
  • {{target format}} — e.g., PNG, GIF, MP4, PDF, AIFF
  • {{file type}} — image, video, audio, vector
  • {{batch size}} — number of files or total size
  • {{additional requirements}} — e.g., preserve metadata, resize, compress

Instructions

  1. If any context is missing, ask for the necessary details (especially source and target formats).
  2. Generate a script in Python (preferred) or bash that can be run in a command-line environment.
  3. Include error handling, logging, and progress indication for large batches.
  4. Comment the code clearly, explaining each step.
  5. If the conversion requires external libraries (e.g., Pillow, FFmpeg, ImageMagick), specify the installation command.

Output format Provide the full script in a code block with language syntax highlighting. Precede it with a brief summary of what the script does, the dependencies, and usage instructions. Keep the tone technical and precise.

Guardrails

  • Do not execute the script; only provide the code.
  • If the conversion is not feasible with common tools, suggest alternatives (e.g., online converters) and explain why.
  • Ensure the script handles edge cases (e.g., missing files, unsupported formats) gracefully.

Example {{source format}} = "TIFF" ; {{target format}} = "JPEG" ; {{file type}} = "image" ; {{batch size}} = "200 files" ; {{additional requirements}} = "compress to 80% quality, keep EXIF data"

Follow-up prompts

  • How can I modify the script to convert subfolders recursively?
  • Can you add a feature to resize images to a maximum width while preserving aspect ratio?
  • What is the most efficient way to convert audio files to MP3 with variable bitrate using FFmpeg?