LiveFaceSwapAI/face-swap-reference-prep
0
1---2title: LiveFaceSwap AI Face Swap Reference Image Prep3emoji: 🖼️4colorFrom: indigo5colorTo: blue6sdk: static7app_file: index.html8pinned: false9license: mit10short_description: Prepare portrait references for LiveFaceSwap AI face swap.11tags:12 - face-swap13 - livefaceswap14 - image-preprocessing15 - portrait16 - reference-image17 - computer-vision18---19 20# LiveFaceSwap AI Face Swap Reference Image Prep21 22Prepare a clear, consistently sized portrait reference before using it in a23[LiveFaceSwap AI](https://livefaceswap.ai/?utm_source=huggingface&utm_medium=referral&utm_campaign=reference_prep)24real-time face swap workflow. This browser utility fixes EXIF orientation, lets you position a25square crop around the face, converts the result to RGB, removes image metadata, and exports a26512, 768, or 1024 pixel PNG.27 28The utility is a transparent **preprocessing step**, not a face swap model. It does not change a29person's identity or generate a face-swapped image.30 31## Why prepare a reference image?32 33Reference photos often arrive rotated, off-center, in inconsistent aspect ratios, or with large34areas that are irrelevant to the portrait. Preparing the file gives the downstream face swap35workflow a predictable square image with the intended face positioned in the frame. This avoids36preventable input-format problems, but it does not guarantee a particular face swap result.37 38## LiveFaceSwap workflow39 401. Choose a clear portrait that you own or have permission to use.412. Upload it here, select 512, 768, or 1024 pixels, and move the crop focus until the face is centered.423. Download the prepared RGB PNG.434. Open LiveFaceSwap AI, choose **Face Swap**, and upload the PNG under **Reference**.445. Turn on your camera and review the live AI output before using it in a call, recording, or stream.45 46For the complete product flow, see the47[online face swap guide](https://livefaceswap.ai/guides/live-face-swap-online?utm_source=huggingface&utm_medium=referral&utm_campaign=reference_prep)48or the49[Windows desktop setup guide](https://livefaceswap.ai/guides/live-face-swap-windows-setup?utm_source=huggingface&utm_medium=referral&utm_campaign=reference_prep).50 51## Input and output52 53| | Details |54|---|---|55| Input | One JPG, PNG, or WebP portrait, up to 20 MB |56| Controls | Output size plus horizontal and vertical crop focus |57| Output | Square 512x512, 768x768, or 1024x1024 RGB PNG with normalized orientation and metadata removed |58| Processing | Runs locally in the browser; the selected file is not sent to an application server |59 60Use **Try synthetic example** in the Space to see a landscape illustration pass through the same61square-crop and PNG-export path without uploading a personal image.62 63## Choosing a useful portrait reference64 65- Prefer one clearly visible, front-facing face with open eyes and a visible facial outline.66- Use even lighting and enough resolution to keep facial details clear after cropping.67- Avoid group photos, heavy blur, extreme angles, strong shadows, and obstructions over the face.68- Keep the entire face inside the square preview and use the focus controls to adjust framing.69- Only use your own face or a portrait you are authorized to process.70 71## Frequently asked questions72 73### Does this Space perform face swapping?74 75No. It only prepares a portrait reference. Face swapping happens later in the LiveFaceSwap AI76browser or desktop workflow.77 78### Is my portrait uploaded to a server?79 80No. This static Space decodes, crops, resizes, and exports the selected file inside your browser.81 82### Which output size should I use?83 841024x1024 is a practical default when the source image contains enough detail. The 512 and 76885options create smaller files for workflows that need them.86 87### Why are the focus controls useful?88 89They move the square crop across a non-square source so you can keep the intended face centered90instead of accepting an automatic center crop.91 92### Can I use the output outside LiveFaceSwap AI?93 94Yes. The output is a standard RGB PNG, so it can be used in other authorized portrait workflows95that accept square reference images.96 97## Project and safety98 99- [LiveFaceSwap AI official website](https://livefaceswap.ai/?utm_source=huggingface&utm_medium=referral&utm_campaign=reference_prep)100- [Canonical source repository](https://github.com/LiveFaceSwapAI/livefaceswap-reference-prep)101- [MIT license](https://github.com/LiveFaceSwapAI/livefaceswap-reference-prep/blob/main/LICENSE)102 103Only process images you own or have permission to use. Do not use portrait references to104impersonate, deceive, defraud, harass, or violate another person's rights. Disclose AI-altered105media when the context requires it.106 