Convert image sets and rebuild a legacy image database

Users had Codex batch-convert photos and script a large database move that combined image processing with a schema rewrite.

Done with Codexยท Intermediate

What they did
One commenter gave Codex 220 JPGs, each roughly 60 MB, and asked it to transform them into WebP with specific quality settings, resize them, and place the results on the server. Another used it on a migration involving over 1 million car images; Codex produced the scripts for converting the images and for reshaping an old, messy SQL database into a new structure, while the human stayed in charge of the workflow.
How it went
The photo collection ended up at about 6 MB overall, and the person said the prompt took around 10 seconds to set up. The car-image migration was said to take about a week instead of months, but no finer-grained output numbers were reported.
Tips
This kind of task works best when the agent does the repetitive scripting and file handling, while a person checks the dangerous steps. For uploads or schema changes, make it pause and ask before it acts.

Try it yourself with Codex

I have [number] JPG files in [folder or repo path]. Convert the images to WebP using [quality], keep the existing names and directory layout, and resize them to [dimensions] if needed. Before any upload, overwrite, delete, or database change, show me the plan and wait for my approval. After I approve, upload the new files to [destination] and give me a before-and-after report with file counts and total size. If this also involves a database move, prepare scripts to shift the image records from [old schema/database] into [new schema/database], then stop and ask before running anything irreversible.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Read the original on reddit.com โ†—

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.