---
title: "Background removal and upscaling"
url: https://phatdev.net/en/docs/media-studio/tach-nen-nang-net
lang: en
updated: 2026-10-20
alternate:
  vi: https://phatdev.net/docs/media-studio/tach-nen-nang-net
markdown: https://phatdev.net/en/docs/media-studio/tach-nen-nang-net.md
---

# Background removal and upscaling

Part of the doc set: [Media Studio](https://phatdev.net/en/docs/media-studio.md)

> Multi-engine background removal with a quality check, UltraSharpV2 upscaling and TinyPNG compression.

## Background removal

Creates a transparent PNG from a product photo. Engines are tried in order, and a poor result automatically falls through to the next engine:

1. **rembg (isnet)** - fast and clean on most manufacturer photos.
2. **macOS Vision** - native, with crisp edges.
3. **Background-color cut** - keeps everything inside the laptop's outline, so a white screen or a bright logo is never punched out.
4. **Photoshop Select Subject** (for banners) - runs in the background and closes Photoshop by itself after 30s.

### Quality check (since v1.13.2)

A cut-out is treated as failed when it **loses more than 6% of the laptop body**, has an **enclosed hole** inside the body, **breaks into several pieces**, or is almost empty or completely filled. If every engine fails, the video scene switches to a different image. In a test of 23 images, all 5 images where rembg punched holes were replaced with a clean version.


<div style="margin:1.6em 0"><figure style="margin:0"><a href="https://phatdev.net/uploads/p/media-studio/ui-remove-bg-vi-light-3840.webp" target="_blank" rel="noopener" class="pd-th-light" style="display:block;border:0" aria-label="Background removal: rembg or macOS Vision, exported as a transparent PNG (4K)"><img src="https://phatdev.net/uploads/p/media-studio/ui-remove-bg-vi-light-1920.webp" srcset="/uploads/p/media-studio/ui-remove-bg-vi-light-960.webp 960w, /uploads/p/media-studio/ui-remove-bg-vi-light-1920.webp 1920w, /uploads/p/media-studio/ui-remove-bg-vi-light-3840.webp 3840w" sizes="(max-width: 900px) 100vw, 760px" width="3840" height="2160" alt="Background removal: rembg or macOS Vision, exported as a transparent PNG" loading="lazy" decoding="async" style="width:100%;height:auto;display:block;border:1px solid var(--line);border-radius:12px"></a><a href="https://phatdev.net/uploads/p/media-studio/ui-remove-bg-vi-dark-3840.webp" target="_blank" rel="noopener" class="pd-th-dark" style="display:block;border:0" aria-label="Background removal: rembg or macOS Vision, exported as a transparent PNG (4K)"><img src="https://phatdev.net/uploads/p/media-studio/ui-remove-bg-vi-dark-1920.webp" srcset="/uploads/p/media-studio/ui-remove-bg-vi-dark-960.webp 960w, /uploads/p/media-studio/ui-remove-bg-vi-dark-1920.webp 1920w, /uploads/p/media-studio/ui-remove-bg-vi-dark-3840.webp 3840w" sizes="(max-width: 900px) 100vw, 760px" width="3840" height="2160" alt="Background removal: rembg or macOS Vision, exported as a transparent PNG" loading="lazy" decoding="async" style="width:100%;height:auto;display:block;border:1px solid var(--line);border-radius:12px"></a><figcaption style="margin-top:8px;font-size:13px;line-height:1.5;color:var(--muted);text-align:center">Background removal: rembg or macOS Vision, exported as a transparent PNG</figcaption></figure></div>

## Upscaling

| Engine | Use when |
|---|---|
| **UltraSharpV2** *(default)* | Any image: Upscale tab, 2K/4K/8K export, automatic 2× upscale after generation. Beat Real-ESRGAN on **10 of 10** test images (PSNR +2.7 to +4.9 dB) and preserves keycap and chart text correctly |
| **Real-ESRGAN** | Automatic fallback when UltraSharpV2 fails |
| **Lanczos** | Quick resize without AI (`engine: "lanczos"`) |
| Photoshop Firefly | Optional - costs Adobe credits, and falls back to Real-ESRGAN on error |

Target sizes: `1080`, `2048`, `2k`, `4k`, `8k` or any custom pixel value.

## Image compression

Every export button includes **TinyPNG compression**; the app rotates between several keys, counts usage per month and balances the load.

## Screenshots

<div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px 16px;margin-top:1em"><figure style="margin:0"><a href="https://phatdev.net/uploads/p/media-studio/ui-upscale-vi-light-3840.webp" target="_blank" rel="noopener" class="pd-th-light" style="display:block;border:0" aria-label="2K/4K/8K upscaling: UltraSharpV2 running locally (4K)"><img src="https://phatdev.net/uploads/p/media-studio/ui-upscale-vi-light-1920.webp" srcset="/uploads/p/media-studio/ui-upscale-vi-light-960.webp 960w, /uploads/p/media-studio/ui-upscale-vi-light-1920.webp 1920w, /uploads/p/media-studio/ui-upscale-vi-light-3840.webp 3840w" sizes="(max-width: 900px) 100vw, 380px" width="3840" height="2160" alt="2K/4K/8K upscaling: UltraSharpV2 running locally" loading="lazy" decoding="async" style="width:100%;height:auto;display:block;border:1px solid var(--line);border-radius:12px"></a><a href="https://phatdev.net/uploads/p/media-studio/ui-upscale-vi-dark-3840.webp" target="_blank" rel="noopener" class="pd-th-dark" style="display:block;border:0" aria-label="2K/4K/8K upscaling: UltraSharpV2 running locally (4K)"><img src="https://phatdev.net/uploads/p/media-studio/ui-upscale-vi-dark-1920.webp" srcset="/uploads/p/media-studio/ui-upscale-vi-dark-960.webp 960w, /uploads/p/media-studio/ui-upscale-vi-dark-1920.webp 1920w, /uploads/p/media-studio/ui-upscale-vi-dark-3840.webp 3840w" sizes="(max-width: 900px) 100vw, 380px" width="3840" height="2160" alt="2K/4K/8K upscaling: UltraSharpV2 running locally" loading="lazy" decoding="async" style="width:100%;height:auto;display:block;border:1px solid var(--line);border-radius:12px"></a><figcaption style="margin-top:8px;font-size:13px;line-height:1.5;color:var(--muted);text-align:center">2K/4K/8K upscaling: UltraSharpV2 running locally</figcaption></figure></div>
