Batch Resize Images to a Square With White Background on Mac
Batch resize a folder of photos to exactly 1000x1000 with white padding and no cropping on Mac, using a sips loop or a Photoshop action. Includes fixes.
GuideUpdated 7 min read
On this page
You have hundreds of product photos, some landscape, some portrait, and every one has to be exactly 1000×1000 with a white background and nothing cropped. Preview can scale images but will not add white bars, and it makes you save each file one at a time.
Why this is awkward on a Mac
A square with white bars needs two separate operations: shrink the image to fit inside the square, then enlarge the canvas to the square and fill the new space. Most simple resizers do only the first, or they stretch the picture to fit.
- Preview has Tools > Adjust Size, which scales an image. It has no canvas size and no fill color. Typing 1000 for width and height with Scale proportionally off stretches the picture. It also saves one file at a time.
- Gizmojar's Resize takes a longest side or a percent, not width and height, and adds no padding. See the section on it below.
sips(built into macOS) can scale and pad in one command, and runs in a loop over a folder.- Photoshop can record Fit Image and Canvas Size as an action, then replay it on a folder with Batch.
Which method fits
| Method | Exact 1000×1000 | White padding | Whole folder | Cost |
|---|---|---|---|---|
Terminal sips loop | Yes | Yes | Yes | Built in |
| Photoshop action + Batch | Yes | Yes | Yes | Needs Photoshop |
| Gizmojar Resize | No | No | Yes | Part of MacSuite, 7-day trial |
| Preview | No | No | One file at a time | Built in |
Pick sips if you are comfortable pasting a command and want no extra software. Pick Photoshop if you already own it and prefer menus. Both can write to a new folder, so your originals stay untouched.
Fix 1: resize to a square with white padding in Terminal (sips)
sips is an image tool that ships with macOS. The loop below scales each image to fit 1000 px, then pads it to 1000×1000 with white.
- Put the photos in one folder.
- Open Terminal, type
cd(with a trailing space), drag the folder onto the Terminal window, and press Return. - Paste this and press Return:
mkdir -p squared
for f in *.jpg; do
sips -Z 1000 --padToHeightWidth 1000 1000 --padColor FFFFFF "$f" --out "squared/$f"
doneWhat it does: it creates a squared folder, then for each JPEG it scales the longest side to 1000 px, pads the image to 1000×1000 with white (FFFFFF), and saves the result in squared. The originals are not changed. To undo, move the squared folder to the Trash.
Handle other file types
The pattern *.jpg matches only lowercase .jpg. For PNG files, change it to *.png. If your folder mixes extensions (.JPG, .jpeg, .png), run the loop once per extension, changing the pattern each time. Listing several patterns in one loop can stop with a "no matches found" error in the default shell if one of them matches nothing.
Check the result
- Open one output file in Preview.
- Choose Tools > Show Inspector and read the pixel size.
- Compare it with the original to confirm nothing was cropped.
Fix 2: resize to a square with a Photoshop action
You record the two steps once, then replay them on a folder.
- Open one sample photo in Photoshop.
- Open the Actions panel (Window > Actions), create a new action, name it, and click Record.
- Choose File > Automate > Fit Image…, enter
1000for both width and height, and click OK. Check Don't Enlarge if small images should stay small. - Choose Image > Canvas Size…. Uncheck Relative, set width and height to
1000pixels, keep the anchor in the center, set Canvas extension color to White, and click OK. - Click Stop in the Actions panel.
- Choose File > Automate > Batch…, pick your action, set the Source folder, and set Destination to Folder with a new folder, so the originals stay as they are.
Fit Image shrinks each photo to fit inside 1000×1000 without cropping. Canvas Size then grows the canvas to exactly 1000×1000 and fills the new space with white. Run the batch on a few copies first.
What Gizmojar covers and what it doesn't
Gizmojar has an image Resize tool. Set Resize by to Max size and Longest side (px) to 1000 (the default is 1600). Then drop a folder on the command bar (default shortcut ⌃⌥Space) and choose Resize. Every image is scaled so its longest side is at most 1000 px, with no cropping. A dropped folder is saved as a <Folder> (Gizmojar) mirror folder next to it, with the same subfolders and original file names. Originals are not changed.
That is where it stops for this job:
- No exact dimensions. Resize takes a longest side or a percent, not width and height. A 1000×1500 portrait comes out 667×1000, not 1000×1000.
- No padding. Nothing in Resize adds a white background to fill a square.
- No enlarging. Images smaller than 1000 px on the long side keep their size.
- Icon Set pads, but for another purpose. It can pad non-square sources, but it outputs fixed favicon and app-icon sizes, not an arbitrary 1000×1000.
One related detail: image Convert to JPEG flattens transparency onto white, but it still does not pad rectangles into squares.
Use Gizmojar when the real requirement is "no side longer than 1000 px" (an upload limit, say) for a big batch. For true squares with white bars, use the sips loop or Photoshop. Gizmojar is part of MacSuite ($349 one-time as of November 2026) with a 7-day free trial. The image tools docs list the Resize options.
Why results go wrong
| Symptom | Likely cause | Fix |
|---|---|---|
zsh: no matches found: *.jpg | No file matches the pattern, or wrong folder | Check the extension (.JPG, .jpeg, .png) and the cd path |
| A result is not 1000×1000 | Command pasted with broken line breaks | Paste the block again exactly, or use Photoshop |
| Padding is not white | Wrong color value | sips: use FFFFFF after --padColor. Photoshop: set Canvas extension color to White |
| Small images look soft | They were scaled up to fit | Photoshop: Don't Enlarge. sips: run small images in a separate folder |
| HEIC files are skipped | The loop only handles the extension you give it | Convert to JPEG first, then run the loop |
| Picture sits off-center | Padding placement differs from what you want | Use Photoshop and set the Canvas Size anchor |
For HEIC photos, see how to convert HEIC to JPG on Mac, then run the loop on the JPEGs.
Checklist before you run the whole folder
- The photos are in one folder and you are in it in Terminal (or set as the Batch source in Photoshop).
- The output goes to a new folder, not the source folder.
- The file extension in the pattern matches your files.
- You ran a test on 5 or 6 copies and each came out exactly 1000×1000.
- You decided what happens to images smaller than 1000 px.
If nothing works
If the loop still fails or the results are wrong, find out which tool is at fault. For sips, Apple Support is the place to ask. For Photoshop actions, use Adobe's support channels. For Gizmojar, use the support page. Include the exact command or action steps, the file type, the pixel size of one input and one output, your macOS version, and a screenshot of any error.
Subject: Batch resize to 1000x1000 with white padding
I'm trying to resize a folder of JPEGs to exactly 1000x1000 with white padding and no cropping.
Mac: macOS (your version)
Method: sips loop (or Photoshop action, Fit Image + Canvas Size)
Command/steps: (paste what you ran)
Input example: 3000x2000 JPEG
Output example: (pixel size you got)
Error text: (paste it here)
Already tried: test folder with copies, different file extensionCommon questions
Can Preview do this?
Not the padding. Tools > Adjust Size scales an image, but there is no canvas size or white fill. Setting both dimensions to 1000 would stretch the picture instead of padding it.
Will my original photos be changed?
Not with the steps above. Both methods write to a new folder, so make sure your destination is not the source folder.
Can I use a different background color?
Yes. In sips, change the hex value after --padColor. In Photoshop, change Canvas extension color.
Can I get exactly 1000×1000 from Gizmojar?
No. Its Resize tool sets a longest side or a percent and does not pad. It works for a "longest side at most 1000 px" requirement only.