'use client' import { useMemo, useState } from 'react' import { Download, Moon, RotateCcw, Sun, Upload, Check } from 'lucide-react' export default function BackgroundRemoverPage() { const [color, setColor] = useState('#E8EEF2') const [similarity, setSimilarity] = useState(72) const [outerOnly, setOuterOnly] = useState(true) const [showMask, setShowMask] = useState(false) const [dark, setDark] = useState(true) const [downloaded, setDownloaded] = useState(false) const previewBackground = showMask ? 'repeating-conic-gradient(#7b8791 0 25%, #cbd3da 0 50%) 50% / 28px 28px' : 'repeating-conic-gradient(#d7dce0 0 25%, #f3f5f6 0 50%) 50% / 28px 28px' const subjectStyle = useMemo(() => ({ background: showMask ? '#596773' : 'linear-gradient(145deg,#1769d2 0 38%,#00a8c7 38% 66%,#bd7411 66%)', opacity: showMask ? .88 : 1, clipPath: `polygon(23% 11%, 73% 8%, 89% 30%, 79% 81%, 52% 93%, 17% 78%, 8% 39%)` }), [showMask]) const reset = () => { setColor('#E8EEF2'); setSimilarity(72); setOuterOnly(true); setShowMask(false) } return
EPeasy-png-tools/ BACKGROUND REMOVER
AUTO PROCESSING
PNG PROCESSING / SINGLE TOOL

Remove background.

Select a background color and tune the edge detection. Changes are processed automatically in your browser.

LIVE PREVIEW
REMOVER SETTINGSConfigure detection
TOOL 02
setColor(e.target.value)} /> setColor(e.target.value)} aria-label="Choose background color" />
sampled from image background
setSimilarity(Number(e.target.value))} />
strict edgesmore removal

Only remove connected background pixels from the edges.

Preview the detected transparency mask.

updates automatically
SOURCE / RESULTcomparison.png
processed
SOURCEoriginal.png
OBJECT
1200 × 800
RESULT{showMask ? 'mask-preview.png' : 'removed-bg.png'}
{showMask ? 'MASK' : 'PNG'}
1200 × 800
FORMAT PNG-24ALPHA {showMask ? 'MASK' : 'ENABLED'}SIMILARITY {similarity}%
easy-png-tools v2.4.0background remover · local-only© 2024
}