From 9e2659d3f1e66a41b1f7c9ff588c5120c20ce13c Mon Sep 17 00:00:00 2001 From: Abdussamet Kocak Date: Sun, 4 Oct 2026 08:21:29 +0200 Subject: [PATCH] feat(gigapixel): Update for the version bump and enable face recovery --- gigapixel.py | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/gigapixel.py b/gigapixel.py index 95da056..766a696 100755 --- a/gigapixel.py +++ b/gigapixel.py @@ -6,14 +6,27 @@ import argparse import logging import subprocess +from pathlib import Path from threading import Thread from typing import Callable -from pathlib import Path -GIGAPIXEL_EXE = Path( - "/Applications/Topaz Gigapixel AI.app/Contents/MacOS/Topaz Gigapixel AI" -) +GIGAPIXEL_EXE = Path("/Applications/Topaz Gigapixel.app/Contents/MacOS/Topaz Gigapixel") MAX_LENGTH = 4000 +FACE_RECOVERY_ARGS = [ + "--sharpen", + "1", + "--denoise", + "4", + "--compression", + "1", + "--fr", + "60", + "--frv", + "2", + "--frc", + "0", + "--gamma-correction", +] def parse_args() -> argparse.Namespace: @@ -91,6 +104,7 @@ def upscale_images( output_format, "--suffix", "-upscaled", + *FACE_RECOVERY_ARGS, ] if output_format == "jpg":