# PXPERFECT > PXPERFECT is a free browser picture editor at https://pxperfect.b-cdn.net/. It rebuilds detail, restores faces, cuts out backgrounds, traces line art to SVG, and cleans SVG drawings. Pictures stay on the computer. They are not uploaded. The site is one page. The editor is a two-pane application: pictures on the left, tools on the right. About, including privacy, is on the same page. This file is the plain-text account of that page for language models. Developed and maintained by Tan Silliksaar. Provided as is, without warranty. ## Privacy No server gathers usage or pictures. Models download to the computer the first time a tool needs them and stay there. Pictures are stored in cookies on this computer and are deleted when their tab is closed. ## Tools Enhance, Face, and Background run on the graphics card through WebGPU. Trace and Clean run in the page and do not need WebGPU. Apply all repeats the tools from the last edited picture, in that order, on a picture that has not been edited yet. - Enhance rebuilds detail. On a photograph the choices are Real-ESRGAN and NomosWebPhoto. The model always works at 4×, then the result is scaled to 1×, 2×, or 4×. Strength 0 is a plain resize. Strength 100 uses the model fully. Values between mix the two. Large pictures are tiled at 128 pixels with a 16 pixel overlap. - Face finds people and restores each face with GFPGAN 1.4 or GPEN. A face detector runs first and is not listed in the model menu. It looks at a 640 pixel view. Each face is lined up on a 512 pixel square, restored, and placed back with a soft edge. If no face is found, the tool stops. - Background separates the subject and stores that separation in the picture’s transparency, using BiRefNet-Lite. The model sees the picture at 1024×1024 and the mask is scaled back. Softness 100 keeps the gradual edge. Lower values make the cut sharper. PNG, WebP, and AVIF keep the transparency. JPEG paints the empty area white. Background is hidden while the picture on screen is an SVG. - Trace is shown for line art. It turns the picture into an SVG of filled shapes. Inkvec takes a color count from 2 to 64 and caps the long side at 2048 pixels. VTracer takes a speckle size from 0 to 16 pixels; patches smaller than that are left out. - Clean is shown when the picture on screen is an SVG. An opened SVG file shows only Clean. Clean rewrites the drawing with SVGO, removes groups, writes each shape in the picture’s own coordinates, and removes ids, defs, metadata, and CSS classes. It then rounds coordinates in larger steps, redraws each step, and keeps the last step before the drawing changes too much. Trim document is on by default. It removes the empty margin, moves the drawing so it starts at 0, 0, and sets the viewBox and document size to that drawing. ## Line art Line art is decided from the original file. The picture is scaled so its long side is at most 192 pixels, and nearly transparent pixels are left out. The remaining color is grouped into 16 levels per channel. It counts as line art when that grouping stays within 40 colors, the eight largest groups cover at least 90% of the pixels, and at least 0.8% of the pixels sit on a hard edge. A hard edge is a jump to a very different color, or to a nearly transparent pixel. Ink, logos, and flat cel color pass. A photograph has too many colors, and a flat area with no edges does not pass. When a picture is line art, Face is hidden and Apply all skips it. Trace is shown. Enhance offers Real-ESRGAN Anime and AnimeVideo. A photograph keeps Face and the photograph models, Real-ESRGAN and NomosWebPhoto, and Trace stays hidden. ## Opening files The drop area accepts PNG, JPEG, WebP, GIF, SVG, and anything else the browser can open. An opened SVG is treated as a vector result, so the only tool is Clean. ## Save The Save menu lists PNG, JPEG, WebP, and AVIF. SVG is listed first when the picture on screen is an SVG. Quality has six steps. The default is 3. - 1: PNG indexed (at most 256 colors, with per-color transparency), JPEG 80%, WebP 78%, AVIF 55 with 4:2:0. - 2: PNG lossless, JPEG 86%, WebP 84%, AVIF 64 with 4:2:0. - 3: PNG lossless, JPEG 90%, WebP 88%, AVIF 73 with 4:2:0. - 4: PNG lossless, JPEG 93%, WebP 92%, AVIF 82 with 4:2:2. - 5: PNG lossless, JPEG 96%, WebP 96%, AVIF 91 with 4:2:2. - 6: PNG lossless, JPEG 100%, WebP 100%, AVIF 100 with 4:4:4. This AVIF step is lossless. When the picture is an SVG, that slider sets the longest side of a bitmap save to 32, 128, 512, 2048, or 8192 pixels. The default is 512. Those bitmap files are saved at the highest quality step. Saving as SVG writes the vector drawing. ## Models Real-ESRGAN, Real-ESRGAN Anime, AnimeVideo, and BiRefNet-Lite have a smaller 16-bit file when the graphics card can run 16-bit shaders. - Real-ESRGAN x4plus: Enhance for photographs. 32.2 MB in 16-bit, or 63.9 MB in 32-bit. Xintao Wang, Liangbin Xie, Chao Dong, and Ying Shan. BSD 3-Clause License. - Real-ESRGAN x4plus Anime: Enhance for line art. 8.6 MB in 16-bit, or 17.1 MB in 32-bit. Same authors. BSD 3-Clause License. - Real-ESRGAN AnimeVideo v3: Enhance for line art. 1.2 MB in 16-bit, or 2.4 MB in 32-bit. Same authors. BSD 3-Clause License. - 4xNomosWebPhoto RealPLKSR: Enhance for photographs. 28.4 MB. Philip Hofmann, 2024. CC BY 4.0. - GFPGAN 1.4: Face restoration. 324.5 MB. Xintao Wang, Yu Li, Honglun Zhang, and Ying Shan. Apache License 2.0. - GPEN-BFR-512: Face restoration. 271.2 MB. Tao Yang, Peiran Ren, Xuansong Xie, and Lei Zhang, 2021. The weights used here are licensed for non-commercial use. - YOLOv8n face detector: finds faces for the Face tool. 12.1 MB. derronqi, with an ONNX conversion by tamoharu, 2022. GPL-3.0. - BiRefNet-Lite: Background. 117.5 MB in 16-bit, or 233.5 MB in 32-bit. Peng Zheng and colleagues. MIT License. - Inkvec: Trace, included with the site. LogoLabs. Apache License 2.0. - VTracer: Trace, included with the site. visioncortex, with the browser build by Neplex. MIT License. ## Links - [PXPERFECT](https://pxperfect.b-cdn.net/): the editor