🪪 Pro Passport Photo Maker

AI background removal, interactive cropping, custom backgrounds, and print-ready PDF sheets with cutting guides.

1 Upload Photo
2 Edit & Crop
Processing AI background removal...
Crop area
🖼️ Upload a photo to begin
Background Color
3 Output Settings
Print Sheet Generated!

Pro Passport Photo Maker — How It Works

The Pro Passport Photo Maker is an advanced client-side tool that combines AI-powered background removal (via @imgly/background-removal), interactive image cropping (via Cropper.js), custom background colors, and precision PDF layout (via jsPDF) to produce print-ready passport photo sheets without ever uploading your photo to a server.

Step 1 — Upload: Your portrait photo is read via the FileReader API and displayed in the Cropper.js interactive canvas. No data is transmitted anywhere.

Step 2 — AI Background Removal: Click "Remove Background (AI)" to run the @imgly/background-removal library directly in your browser. The library uses a neural network trained on millions of images to create a precise alpha matte around your subject. The result is a transparent PNG that replaces the cropper's source image. You can then choose any background color using the color picker.

Step 3 — Cropping: Use the Cropper.js interface to zoom, pan, and frame your face perfectly. Toggle between 1:1 (US/India) and 35:45 (UK/EU) aspect ratios to match your target photo size.

Step 4 — PDF Generation: When you click "Generate," the tool extracts the cropped canvas, composites it onto your chosen background color, and arranges copies onto a print sheet using jsPDF with exact physical dimensions. Light-gray crop marks are drawn at each photo corner for easy cutting.

Why Upgrade from Basic Tools

  • AI background removal: Automatically removes any background — no green screen needed. The @imgly library is trained on diverse portrait data and works on photos taken in any environment.
  • Interactive cropping: Frame your face with pixel-level precision using Cropper.js zoom, pan, and rotation controls.
  • Custom backgrounds: Choose any solid color to meet specific passport/visa requirements (white, blue, gray) by simply picking a color.
  • Print-optimized layout: The grid calculation accounts for safe margins and photo gaps, and the PDF is generated at print-grade resolution (72pt/inch).

Frequently Asked Questions

Is the AI background removal really free and private?

Yes. The @imgly/background-removal library runs entirely in your browser using WebAssembly and WebGL. Your photo never leaves your device. There are no API keys, no server calls, and no usage limits.

How long does AI removal take?

Processing time depends on your device's GPU and CPU. On modern hardware with a dedicated GPU, it typically completes in 1–3 seconds. On integrated graphics, it may take 5–10 seconds. A progress indicator shows the status.

What photo sizes and sheet sizes are supported?

Target photo sizes: US/India 2×2 inches (1:1) and UK/EU 35×45 mm (35:45). Print sheets: 4R (4×6 inches) and A4 (210×297 mm). The tool dynamically calculates how many photos fit and adjusts the available options accordingly.