Back to YouTube
Parker RexMarch 10, 2025

The Quick AI Trick to Compress Photos for Faster Sites (No Code)

AI trick to compress photos for a faster site - no code needed. Learn the free Warp method to shrink images to 3 MB max.

Show Notes

In this no-code walkthrough, Parker shows how to compress a batch of large photos to under 3 MB each using Warp’s AI-powered terminal agent—no coding required and no ad-heavy sites. It’s quick, practical, and keeps your originals safe.

What you need

  • Warp (free) with agent mode
  • A folder of photos you want to compress
  • Access to a terminal (macOS Terminal shown in video, works similarly on others)
  • Optional: ImageMagick (Warp will install it automatically if needed)

Quick setup and start

  • Open Warp and enable agent mode:
    • Press Cmd + I to activate the agent.
  • Grab the folder path:
    • In macOS, right-click the folder and choose Copy “Raw as path name.”
  • In Warp, navigate to that folder path and confirm:
    • “Compress all photos to under 3 MB while keeping originals.”
  • Warp will:
    • Inspect file types
    • Check for ImageMagick (install if missing)
    • Propose the command it will run and ask for your confirmation
  • Confirm to proceed. Warp creates a new folder (named compressed) with the optimized images, all under 3 MB each, while originals remain untouched.
  • Verify a sample image to confirm quality looks good.

Step-by-step workflow (what actually happens)

  • Warp navigates to your folder and lists the image types.
  • If ImageMagick isn’t installed, Warp prompts to install it and you just press Enter.
  • Warp generates the batch command to re-encode images with a max size of 3 MB, preserving quality as much as possible.
  • It runs, creates a new folder (usually named compressed) containing the optimized files.
  • You can repeat the same process for another folder by simply providing the folder name; Warp can search and apply without needing the full path.

Tips and caveats

  • Keep originals: always compression with the originals kept intact.
  • Folder naming: the output typically lands in a new folder named compressed.
  • If you hit a hiccup, Warp will show the command it’s about to run and may suggest alternatives—you can proceed or adjust as needed.
  • The agent approach makes terminal use approachable even if you’re not comfortable with commands.

Other practical uses (demonstrated ideas)

  • Use Warp to batch-download content or transform it on the fly:
    • For example, pull a YouTube playlist and convert content to text or blog posts.
    • The same agent pattern can orchestrate other tasks without leaving the terminal screen.

Actionable takeaways

  • Use Warp’s agent mode to perform repetitive file operations without learning commands.
  • Keep an eye on the max size you want (3 MB in this video) and adjust as needed for faster page loads.
  • Use the “search by folder name” capability to apply the same process to multiple folders quickly.
  • Always verify a sample file after compression to confirm acceptable quality.
  • Warp - Intelligent terminal with AI agent mode
  • ImageMagick - Image processing and compression toolkit