From 868d7519a41541293e2f8ffd3d51e047940154cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Sat, 23 May 2026 11:01:25 +0300 Subject: [PATCH] fix: resolve Auto-Trim canvas CORS block with webSecurity, implement dynamic multi-language localization (EN, TR, DE, RU, AR) with English base --- index.html | 82 +++++++----- main.js | 3 +- renderer.js | 377 +++++++++++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 406 insertions(+), 56 deletions(-) diff --git a/index.html b/index.html index 62e4dda..3d3f2a9 100644 --- a/index.html +++ b/index.html @@ -41,6 +41,16 @@ Trunçgil AI
+ +
+ +
@@ -77,27 +87,27 @@
-

Initializing AI Engine

-

Dekupai requires a local Python environment to run the BiRefNet neural network models.

+

Initializing AI Engine

+

Dekupai requires a local Python environment to run the BiRefNet neural network models.

- Creating isolated virtual environment (.venv) + Creating isolated virtual environment (.venv)
- Upgrading Python package installer (pip) + Upgrading Python package installer (pip)
- Installing PyTorch AI Engine (CPU version) + Installing PyTorch AI Engine (CPU version)
- Installing HuggingFace Transformers & PIL library + Installing HuggingFace Transformers & PIL library
@@ -109,7 +119,7 @@
-

Drag & Drop Image Here

-

Supports PNG, JPG, JPEG, or WebP formats

-
OR
+

Drag & Drop Image Here

+

Supports PNG, JPG, JPEG, or WebP formats

+
OR
@@ -215,7 +225,7 @@ - Auto-Trim + Auto-Trim @@ -263,7 +273,7 @@
2 -

Background Removal

+

Background Removal

@@ -282,8 +292,8 @@ -
Initializing AI Model...
-
First launch downloads model (~200MB)
+
Initializing AI Model...
+
First launch downloads model (~200MB)
@@ -291,24 +301,24 @@
3 -

Background Settings

+

Background Settings