Create standardized resized image copies in your media folder
Each hour, new images in your source folder get a size-named copy in your media folder, so content teams find standardized files without renaming anything.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-standardized-resized-image-copies-in-your-media-folder/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Design · Content media production
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-standardized-resized-image-copies-in-your-media-folder
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-standardized-resized-image-copies-in-your-media-folder/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-standardized-resized-image-copies-in-your-media-folder - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy create-standardized-resized-image-copies-in-your-media-folder - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-standardized-resized-image-copies-in-your-media-folder
zaps/create-standardized-resized-image-copies-in-your-media-folder/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 2 to fill in
- connections/google-drive.tsThe
google-driveaccount it uses - triggers/every-hour.tsWhat starts it:
scheduleeveryHour - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: Schedule by Zapier (
schedule,everyHour), every hour at :00, every day of the week. - Google Drive lists the files in the source folder. Only files whose MIME type starts with
image/continue. - For each image, Google Drive checks the destination folder. If a file with the new name is already there, the image is skipped; otherwise Google Drive copies the file into the destination folder under the new name. Each image fails on its own without stopping the others.
- The run returns counts of copied, already-existing and failed files.
The copy is a byte-for-byte duplicate with a new name. The Zap does not resize pixels; the filename carries the size label.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
REPLACE_SOURCE_FOLDER_ID |
The Drive folder holding the original images. Ask which folder, then look up its ID with their Google Drive connection |
REPLACE_DESTINATION_FOLDER_ID |
The media folder that receives the resized copies. Ask which folder, then look up its ID with their Google Drive connection |
Also review the defaults with them: SIZE_SUFFIX (-1080x1080, appended before the extension; change it for other sizes) and MIME_PREFIX (image/, the MIME type prefix that counts as an image).
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-standardized-resized-image-copies-in-your-media-folder, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-standardized-resized-image-copies-in-your-media-folder, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
google-driveto the user's Google Drive connection for the account that owns both folders. Schedule by Zapier needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/every-hour.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connection (and sample the trigger, if it has one) before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test with a source folder that holds one test image named [install-test] sample.jpg, and a destination folder the user controls. Check that:
- the destination folder gets
[install-test] sample-1080x1080.jpg, with the same bytes as the original; - running it again copies nothing and reports
already-exists; - the source image itself is unchanged.
If run-status tools aren't available, check the destination folder in Google Drive directly. Then publish, confirm the trigger is active, and ask the user to delete the [install-test] files; the agent doesn't delete test data.
Notes
- Google Drive file lists don't filter by MIME type, so the code filters the listing after it returns. The listing uses a custom Drive action.
- If two source files share a name, the second copy is skipped as already existing.
- To change the size label, edit
SIZE_SUFFIXinconfig.ts. - The Zap only copies. To crop or compress, add a processing step before the copy.