Repeat & Crop

Repeat & Crop docs

Repeat & Crop puts copies of your artwork on sheets of paper, ready to print and cut. You give it the artwork and the size; it works out how many fit, adds bleed and crop marks, and makes a PDF at the exact sheet size.

Start here

Mac, web or AI agent

There are three ways to use Repeat & Crop. They follow the same open spec, so they place items the same way, and a project saved in one opens in the others.

FeatureMac appWeb appCommand line and agents
Runs onmacOS 14 or laterAny modern browsermacOS 14 or later, with the Mac app
ArtworkJPEG, PNG, HEIC, PDF, SVGJPEG, PNG, PDFJPEG, PNG, HEIC, PDF, SVG
OutputPrint; PDF, smaller PDF, or an image per sheetPDFPDF, smaller PDF, or an image per sheet
Placing by handYesRead onlyFrom a saved project
Pages at another sizeYesRead onlyFrom a saved project
Layouts and sizesSynced through iCloud, if you turn it onKept in the browser; export and import them as a fileShared with the Mac app
Size of a jobLarge jobsUp to 20 files, 100 MB (limits)Large jobs

The basics

These settings work the same in the Mac app, the web app and the command line.

Sheet

The paper you print on, and its orientation. A4, US Letter, A3 and other paper, photo and large sheet sizes are built in, and you can add your own.

Size and copies

  • Fixed size places every copy at the size you give, such as 85 × 55 mm for business cards. Common sizes (business cards, credit cards, photos, stickers) are presets.
  • Number per sheet makes them as large as fits that many on a sheet; it can be limited to a largest size.

Copies turn 90° when more fit that way; turn that off with Turn 90° when more fit. When both ways fit the same number, copies take the sheet's shape: portrait on a portrait sheet, landscape on a landscape one.

  • Auto fills the sheet with one design, or places one of each when there are several.
  • Fill the sheet always fills it.
  • Exact number places that many of each, on as many sheets as it takes.

Cover fills the size and crops what doesn't fit; Contain shows the whole artwork with white around it. When the size has the artwork's own shape, the two look the same.

Bleed and spacing

Bleed is extra artwork beyond the cut line, so a cut that is slightly off doesn't leave a white edge. 3 mm is common.

  • Size includes bleed: on, the size you set is the artwork with its bleed, and the cut card is smaller. Off, the bleed is added around the size, and the card is cut at the size you set.
  • Keep proportions gives the longer side more bleed and the shorter side less, so the cut card has the artwork's shape.
  • Gaps are the space between items, across and down. With bleed, a gap of 0 lets items touch so one cut separates two of them.
  • Page margin keeps the edge of the paper clear; most printers can't print to the edge. Center on the sheet centers the items inside it.
  • Background color fills the space between items.

Crop marks

  • Page edges (for a guillotine): short lines in the margin, in line with every cut.
  • Around each item: short lines at the corners of every item, for cutting each one by hand.
  • Crosses over the items: small crosses where items meet, on their own or with either of the above.

Marks are thin and black by default. Automatic color makes each mark black or white, whichever shows on what's under it. A white outline helps on busy artwork.

Layouts

A layout keeps a sheet, size and copies, bleed and spacing, and crop marks under a name, without the artwork. New projects start with the default layout. Save the settings of a job you repeat, like "Business cards on A4", and apply them to the next one. Layouts export to a file that the Mac app, the command line and the web app all read.

Projects

A .repeatcrop project keeps your settings and your artwork in one file, so you can move it or send it. The same file opens in the Mac app, the command line and the web app, and gives the same sheets everywhere.

Privacy

Your artwork and projects never leave your computer. The Mac app and the command line make no network connections, and files are opened in a separate, locked-down process, so a broken or hostile file can't take the app down. Settings sync uses your own iCloud Drive, only if you turn it on.

The web app runs entirely in your browser: nothing you add is uploaded. It counts visits anonymously, with no cookies and nothing about your artwork or settings.

Mac app

Install

With Homebrew

Homebrew asks you to trust a third-party tap once before installing from it.

brew tap tombigel/tap
brew trust tombigel/tap
brew install --cask repeat-and-crop

This installs Repeat & Crop in Applications and puts the repeatcrop command (also rnc) on your PATH.

Download

Get RepeatAndCrop-<version>.zip from the latest release, unzip it, and move RepeatAndCrop.app to Applications. It's signed with a Developer ID and notarized by Apple, so it opens without warnings.

RequiresmacOS 14 Sonoma or later. Universal: Apple Silicon and Intel.

Getting started

  1. Open Repeat & Crop. A new project opens with an empty sheet.
  2. Drop JPEG, PNG, HEIC, PDF or SVG files on the window, or choose File ▸ Add Artwork (⇧⌘A). One design fills the sheet; with several, you get one of each on as few sheets as possible.
  3. Use the bar at the bottom to set the sheet, the size and copies, bleed and spacing, and crop marks.
  4. Choose Print (⌘P) or Export (⌘E).

A project is a document like any other: save it with ⌘S and open it again later. Your artwork is kept inside it; Link to the File Instead keeps only a reference to a file in the project's folder.

The Repeat & Crop Mac app: an A4 sheet with eight business cards in three designs, crop marks at every cut, and the settings bar at the bottom.

The settings bar

The four buttons at the bottom of the window open the Sheet, Size and copies, Bleed and spacing and Crop marks settings. The Layout menu has the same settings, with ⌘1 to ⌘4 to open them.

The Size and copies popover: Fixed size or Number per sheet, the Business card preset at 85 × 55 mm, Copies set to Fill the sheet, Fit Cover or Contain, Turn 90° when more fit, and the Apple Intelligence field. The Crop marks popover: Marks set to Around each item, the distance from the cut and the line length, then weight, automatic color, color and white outline.
  • Sheet: your favorite sizes come first; star a size to add it. Every size is under All sizes. Add custom size… takes a width and height, and can keep it under a name.
  • Size and copies: you can also type what you want, like 8 per sheet, 40 copies or 3.5 x 2 in.
  • Bleed and spacing: when all your artwork has one solid edge color, the app sets the background color for you, tells you, and you can undo.

Apple Intelligence Experimental

On a Mac with Apple Intelligence turned on (macOS 26 or later), the field at the bottom of the Size and copies popover takes a whole job in one sentence:

  • 50 business cards with 3 mm bleed on A4
  • 8 per sheet on A3 landscape, guillotine marks
  • stickers 60 × 60 mm, fill the sheet, 2 mm gap

It can set the sheet size and orientation, the item size or a preset like Business card, the number per sheet or copies, filling the sheet, bleed, gap, margin and crop marks. Only what your sentence mentions changes; the rest stays as it is. It makes the changes at once and lists what it changed, and ⌘Z undoes them.

It runs on Apple's on-device model: your sentence and your artwork never leave your Mac. It's experimental, so check what it fills in. Turn it off in Settings ▸ General ▸ Project window; the field then reads short phrases only, like 8 per sheet or 40 copies.

To have an agent such as Claude Code make the files for you instead, see AI agents.

Several designs

Click a design on the sheet, or in the artwork list (⌥⌘L), to change its own settings in the inspector: its fit, its turn (the arrows turn the design itself 90° at a time, for a sideways photo or a landscape design on a portrait card), its own size and bleed, or its own number of copies. A design with its own number gets exactly that many; the others share the rest of the sheet.

More pages

In the sheet menu, Pages chooses how the designs share the sheets:

  • One layout: every design in one grid.
  • Another size on more pages: pages of their own with a different size and copies, for the designs you pick.
  • Each artwork on its own pages: one set of pages per design, each at the design's own shape.

Placing by hand

Drag an item to move it, or select it and use the arrow keys (⇧ moves 10 mm). The layout is then pinned: every item stays where it is. Choose Back to Automatic Layout in the Layout menu, or in the banner above the sheet, to let the app place them again.

Print and export

Print sends the sheets to a printer at actual size. Check that the printer doesn't scale them (Scale 100%).

Export saves a PDF for print, with your artwork placed exactly as given: JPEG and PNG embedded as they are, HEIC photos decoded and stored losslessly (PDF can't hold HEIC as is, so the PDF is larger than the photo), PDF and SVG artwork as vectors. It can also save a smaller PDF, with photos scaled to a resolution you choose, or one PNG, JPEG or TIFF image per sheet.

Settings and sync

  • General: Units (mm, in or px); Artwork: matching the background to the artwork edges, and the resolution below which artwork gets a warning; Project window: where the layout bar sits, and Apple Intelligence.
  • Layouts: the layout new projects start with; rename and delete layouts. Make one with Layout ▸ Save Layout as Preset… and put one on a project with Layout ▸ Apply Layout, which keeps its artwork.
  • Sizes: star, hide, add and remove sheet and artwork sizes.
  • Sync & Backup: turn on Sync through iCloud Drive on each Mac, and your layouts, sizes and settings stay the same on all of them. A change on one applies to all, so the settings sync replaces are backed up; bring one back with Import. Export… saves your layouts, sizes and settings to a file, and Import… brings them in, adding to yours or replacing them.
  • Command Line & Agents: checks that the repeatcrop command runs this app, and, when it isn't on your PATH, adds it with Add to PATH: the command is part of the app, and this links it into a folder on your PATH, as Homebrew does when it installs the app (it asks for your password only when no folder on your PATH is writable). It also installs, updates and removes the skill for AI agents, for Claude Code and for Codex and other agents, and copies the Claude Code plugin command.

Keyboard shortcuts

The full list is in the app: Help ▸ Keyboard Shortcuts (⌘/). The ones you'll use most:

  • ⇧⌘A Add Artwork · ⌘E Export · ⌘P Print
  • ⌘1–4 Sheet, Size and Copies, Bleed and Spacing, Crop Marks · ⇧⌘L Landscape
  • ⌘+ / ⌘− Zoom · ⌘0 Zoom to Fit · pinch to zoom
  • ⌥⌘L Artwork List · ⌥⌘M Messages · ⌃⌘U Switch Units
  • ⌥⌘→ / ⌥⌘← Next / Previous Sheet

Everything in the settings bar is also in the Layout menu. To Tab to every button, turn on System Settings ▸ Keyboard ▸ Keyboard navigation.

Updating and uninstalling

brew upgrade --cask repeat-and-crop

Or download the latest release and replace the app in Applications. If you update while the app is open, it asks you to reopen it before adding more artwork.

brew uninstall --cask repeat-and-crop

Add --zap to also remove your settings, sizes and layouts. Without Homebrew, move the app to the Trash. Your projects are yours and stay where you saved them.

Web app

Getting started

Open the web app in any modern browser; there's nothing to install. It's free, and it runs entirely on your device: your artwork is never uploaded.

The web app: the settings panel on the left with the result, three artworks, and the sheet and size settings; an A4 sheet with nine business cards in three designs and crop marks on the right.
  1. Drop JPEG, PNG or PDF files on the page, or click choose files. HEIC photos and SVG aren't supported here: export HEIC as JPEG and SVG as PDF or PNG, or use the Mac app.
  2. Set the sheet, the size and copies, bleed and spacing, and crop marks in the panel on the left. The sheets update as you go.
  3. Click Download PDF.

Click the project name at the top to rename it; the files you save and download take its name.

The panel

The panel follows the Mac app's settings bar, in the same order and with the same names: Sheet, Size and count, Bleed and spacing and Crop marks. Above them, Result shows how many sheets and copies you'll get and the cut size, and Artwork lists your files. To give a design its own number of copies, type it in the design's row; leave it at auto to share the sheet. The arrows in a design's row turn the design itself 90° at a time, for a sideways photo or a landscape design on a portrait card.

Download PDF

Download PDF makes one print-ready PDF with every sheet, at the exact sheet size. Your artwork goes in at full quality: JPEG unchanged, PNG lossless, PDF pages as vectors. Nothing is compressed or resampled. Print it at 100% scale.

Projects and layouts

  • Save downloads a .repeatcrop project with your settings and artwork, and Open… opens one. Projects from the Mac app open here, and yours open there; HEIC artwork in a project is listed but left off the sheets.
  • Layouts, at the bottom of the panel, keeps your settings under a name in this browser. Its ⋯ menu applies, saves, renames and deletes layouts, chooses the default, and exports or imports them as a file the Mac app reads too.

The Mac app's extras, such as pages at another size or placing by hand, aren't edited here, but a project that uses them still opens and downloads as it was made.

Zoom, keys and appearance

  • Pinch on a trackpad or touch screen to zoom around your fingers.
  • ⌥⌘+ / ⌥⌘− zoom in and out, and ⌥⌘0 fits the sheet (CtrlAlt on Windows and Linux). ⌘+ stays the browser's own zoom.
  • Tab moves between controls, and Esc closes a menu or dialog.

The ⋯ menu at the top right chooses light, dark or the system's appearance, and links to these docs, the keyboard shortcuts, the Mac app and bug reports. The app icon at the top left opens the welcome window again.

The web app's welcome window: what the app does, what the Mac app adds, a note that artwork never leaves the device, a Don't show this again box and a Start button.

Limits

To stay quick in a browser, the web app takes up to 20 files, 20 MB each and 100 MB in all; images up to 50 megapixels each and 200 in all; PDFs up to 20 pages. For bigger jobs, use the Mac app.

AI agents

Quick start

An AI agent that can run commands on your Mac, such as Claude Code or Codex, can lay out and export sheets for you with the repeatcrop command. Point it at your artwork and say what you want printed.

NeedsThe Mac app, which installs repeatcrop. The command runs on macOS only; the web app can't be used by an agent.
  1. Install the Mac app with Homebrew, so repeatcrop is on your PATH. Installed it from the download? Settings ▸ Command Line & Agents adds the command.
    brew tap tombigel/tap
    brew trust tombigel/tap
    brew install --cask repeat-and-crop
  2. Add the skill for Claude Code and Codex, or use Settings ▸ Command Line & Agents in the app. Only use Claude Code? Install the plugin instead.
    repeatcrop skill install
  3. Ask. Start the agent in the folder with your artwork and say what you want, in your own words:
    Make me a print-ready PDF with 50 of each card in front.png and back.png, 85 × 55 mm finished, 3 mm bleed, on A4, with crop marks for my guillotine.

See what the agent does with it.

What the skill does

A skill is a short guide that the agent reads when a task needs it. This one teaches it the options and the traps: "85 × 55 cards with 3 mm bleed" means the cut size, and "for my guillotine" means marks at the page edges. An agent can run repeatcrop without it, but gets those wrong more often. It uses the open Agent Skills format, and you can read it on GitHub first.

repeatcrop skill install adds it for Claude Code (~/.claude/skills) and for Codex and other agents (~/.agents/skills), in the version that matches your app. Run it again after you upgrade. To add it for one agent or one project, or to remove it, see the skill command.

Claude Code

Claude Code uses the skill when a request is about print sheets, or when you type /repeatcrop (/repeatcrop:repeatcrop with the plugin). It works the same in the terminal, in the Claude desktop app's Code tab and in your editor.

Plugin or skill

Use one of them, not both:

  • Only use Claude Code? Install the plugin. It keeps the skill up to date with this site. In Claude Code, type:
/plugin install repeatcrop --marketplace tombigel/RepeatAndCrop

On older versions of Claude Code, run /plugin marketplace add tombigel/RepeatAndCrop first, then /plugin install repeatcrop@repeat-and-crop.

  • Also use Codex or another agent? Use repeatcrop skill install, which adds the skill for all of them in one go.

Skip the permission prompt

Claude Code asks before running a command. To allow repeatcrop every time, add it to ~/.claude/settings.json:

{
  "permissions": {
    "allow": ["Bash(repeatcrop:*)"]
  }
}

Codex

Codex uses the skill when a request is about print sheets, or when you mention $repeatcrop. If it doesn't show up in /skills, restart Codex.

Other agents and chats

Other agents that support Agent Skills read the same repeatcrop folder: copy ~/.agents/skills/repeatcrop to where that agent looks for skills. For an agent without skills, add a line to the project's AGENTS.md (or the file it reads for instructions):

To lay out artwork on print sheets, use the repeatcrop command. Run `repeatcrop skill` and read its output first.

A chat that can't run commands can still help: run repeatcrop skill | pbcopy, paste it into the chat, describe the job, and it gives you the command to run in Terminal.

An example

You ask:

Make me a print-ready PDF with 50 of each card in front.png and back.png, 85 × 55 mm finished, 3 mm bleed, on A4, with crop marks for my guillotine.

The agent checks the layout first, then writes the file and tells you what it made (here: 100 cards on 13 A4 sheets):

# what the agent runs
repeatcrop front.png back.png --sheet A4 --size 85x55 \
  --bleed 3 --bleed-around --copies 50 \
  --marks outer --mark-style edge --layout-json
repeatcrop front.png back.png --sheet A4 --size 85x55 \
  --bleed 3 --bleed-around --copies 50 \
  --marks outer --mark-style edge --strict -o cards.pdf

Say you print double-sided, and it makes the fronts and the backs as separate files that line up. It tells you when an image is too small to print sharp at that size. Ask it to save a project too, and you can open the job in the app to check it or change it by hand.

In the appOn macOS 26 with Apple Intelligence, the Mac app also takes a whole job in one sentence: see Apple Intelligence.

Command line

Running it

The Mac app's engine also runs in Terminal as repeatcrop (or rnc). It comes with the Mac app and runs on macOS only: Homebrew puts it on your PATH, and Settings ▸ Command Line & Agents adds it when you installed the app another way. It makes the same PDF the app does, from the same options and the same project files. It never asks questions, opens windows or uses the network, so scripts and AI agents can run it too.

repeatcrop card.png --size 85x55 --bleed 3 --bleed-around -o sheet.pdf
repeatcrop a.pdf b.pdf --per-sheet 8 --marks outer,inner -o sheet.pdf
repeatcrop card.png --layout "Business cards" -o sheet.pdf
repeatcrop --project job.repeatcrop --format png --dpi 300 -o sheet.png
  • Every setting is a plain option, and sizes take names like --sheet A4 or --size "Business card".
  • --layout-json and --marks-json print the layout and the crop marks as JSON, so a program can check the result before writing anything.
  • Warnings (low resolution, a file that can't be read) go to stderr as warning: CODE, and --strict turns them into exit code 1.
  • --save-project writes a project you can open and finish in the app, and --project runs one you saved in the app.
BleedBy default the bleed is inside --size: --size 85x55 --bleed 3 gives cards cut at 79 × 49 mm. Add --bleed-around to cut them at 85 × 55 mm with the bleed outside.

Options

OptionWhat it does
--sheet A4|210x297The sheet, by name or width × height. --landscape turns it.
--margin 10Page margin. --no-center doesn't center the items on the sheet.
--gap 4[,4]Space between items, across and down.
--size 85x55Fixed size for every copy, or a preset name like "Business card".
--per-sheet 8 [--max 85x55]As large as fits that many on a sheet, up to an optional largest size.
--copies auto|fill|NOne of each design, fill the sheet, or N copies of each artwork.
--no-rotateDon't turn copies 90° when more would fit.
--fit cover|containCrop the artwork to the size, or show all of it with white around it.
--turn 0|90|180|270Turn the artwork itself clockwise before it's fit to the size (a sideways photo, landscape art on a portrait card).
--bleed 3Bleed, inside --size by default. --bleed-around adds it outside; --bleed-proportional keeps the artwork's shape.
--background '#RRGGBB'|noneColor between the items.
--marks outer,inner|noneouter: marks at each cut; inner: crosses where items meet.
--mark-style item|edgeOuter marks at the corners of every item, or along the page edges for a guillotine.
--mark-color '#000'|autoMark color; auto picks black or white to show on the artwork. --mark-outline adds a white outline.
--mark-offset 2Fine-tuning for marks: also --mark-length 5, --cross-size 6 and --mark-weight 0.25.
--layout NAMEStart from a saved layout.
--project FILERun a saved project. --save-project FILE writes one.
--format pdf|pdf-small|png|jpeg|tiffOutput format; images are one per sheet, numbered. --dpi 300 sets their resolution.
-o FILEWhere to write the output.
--layout-jsonPrint the layout as JSON instead of writing a file. --marks-json prints the crop marks.
--strictTreat warnings as errors (exit code 1).
--validate FILECheck a project file and exit.

Lengths are millimeters unless they end in in (3.5x2in). Sizes also take a preset name, like --sheet "US Letter". Run repeatcrop --help for every option. Exit codes: 0 done, 1 warnings with --strict, 2 invalid input.

Presets and layouts

repeatcrop presets list [sheets|artwork|layouts]
repeatcrop presets add sheet "My card stock" 230x330
repeatcrop presets add layout "Business cards" --sheet A4 --size 85x55 --bleed 3
repeatcrop presets default layout "Business cards"
repeatcrop presets export settings.json

The command line and the app share your sizes and layouts.

The skill command

The skill for AI agents is built into the command, in the version that matches your app.

repeatcrop skill
repeatcrop skill install [--claude] [--codex] [--project [DIR]]
repeatcrop skill uninstall [--claude] [--codex] [--project [DIR]]
  • repeatcrop skill prints the skill, to read it or paste it into a chat.
  • install adds it for you, for Claude Code (~/.claude/skills) and for Codex and other agents (~/.agents/skills). --claude or --codex adds it for one of them only.
  • --project adds it to one project instead: the current folder, or the folder you name.
  • uninstall removes it, with the same options.

Developers

The spec

Repeat & Crop is defined by an open specification, tombigel/repeat-and-crop-spec: the project file, how sizes resolve, the layout and crop-mark algorithms, the PDF rules, the command line, presets and the security limits, with JSON Schemas and conformance fixtures.

The Mac app and the web app implement it separately and share no code; both pass every fixture. To write your own implementation, add the spec as a git submodule and run its fixtures through your layout and marks. repeatcrop --layout-json and --marks-json give you a reference to compare with.

Building the Mac app

You need the Xcode command line tools. There's no Xcode project; the app and the command line are one Swift binary.

git clone --recurse-submodules https://github.com/tombigel/RepeatAndCrop.git
cd RepeatAndCrop
./Tests/run.sh
./build.sh

See DEVELOPMENT.md for releasing and the rest.

Contributing

  • Bugs and ideas: report a bug or suggest a feature, for the Mac app, the command line or the web app.
  • Behavior changes start in the spec: a pull request to the spec repository that changes the text, the schemas and the fixtures together. The apps follow it.
  • The Mac app takes pull requests. Keep the core (sizes, layout, marks) free of AppKit, and run ./Tests/run.sh before you send one.
  • Security issues: see SECURITY.md, and please don't open a public issue.