Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#Agents

Advanced AI Prompt for Automated Image Optimization and Next-Gen Format Scripting

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-image-optimization-script.txt
Act as a Web Performance and Asset Specialist. Script a batch-processing agent to ingest and optimize the massive [IMAGE_INVENTORY_CSV]. The agent must: 1) Algorithmically identify any raster images exceeding a 200KB threshold and automatically prescribe lossless 'WebP' or 'AVIF' format conversions. 2) Detect `<img/>` tags missing explicit 'Width' and 'Height' HTML attributes, a critical error causing Cumulative Layout Shift (CLS). 3) Analyze the specific [CDN_CAPABILITIES] (e.g., Cloudflare, Cloudinary) to recommend dynamic 'Auto-Resizing' queries or native 'Lazy-Loading' (`loading=lazy`) strategies. 4) Flag images completely missing 'Alt Text' and utilize surrounding H2 context to suggest SEO-friendly descriptions. Output a robust Bash or Python script utilizing 'ImageMagick' or a specific Cloud API designed to batch-convert, compress, and re-output the identified images while strictly maintaining the [PERFORMANCE_TARGETS] visual fidelity.

Example Text Output

"The AI provides a Python script that reduces total image payload by 65% by converting JPEGs to WebP and generating 'srcset' attributes for responsive loading."

More AI Portraits Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Automated Image Optimization and Next-Gen Format Scripting" prompt used for?

The AI provides a Python script that reduces total image payload by 65% by converting JPEGs to WebP and generating 'srcset' attributes for responsive loading.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.