diff --git a/src/lib/i18n/locales/ar-BH/translation.json b/src/lib/i18n/locales/ar-BH/translation.json index 1e6d1721fa..9db287cad3 100644 --- a/src/lib/i18n/locales/ar-BH/translation.json +++ b/src/lib/i18n/locales/ar-BH/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "توليد الصور (تجريبي)", "Image Generation Engine": "محرك توليد الصور", + "Image Max Compression Size": "", "Image Settings": "إعدادات الصورة", "Images": "الصور", "Import Chats": "استيراد الدردشات", diff --git a/src/lib/i18n/locales/bg-BG/translation.json b/src/lib/i18n/locales/bg-BG/translation.json index ce9fc6a22f..9e36d58185 100644 --- a/src/lib/i18n/locales/bg-BG/translation.json +++ b/src/lib/i18n/locales/bg-BG/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Генерация на изображения (Експериментално)", "Image Generation Engine": "Двигател за генериране на изображения", + "Image Max Compression Size": "", "Image Settings": "Настройки на изображения", "Images": "Изображения", "Import Chats": "Импортване на чатове", diff --git a/src/lib/i18n/locales/bn-BD/translation.json b/src/lib/i18n/locales/bn-BD/translation.json index a8b1d0d96e..f0b51008aa 100644 --- a/src/lib/i18n/locales/bn-BD/translation.json +++ b/src/lib/i18n/locales/bn-BD/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "ইমেজ জেনারেশন (পরিক্ষামূলক)", "Image Generation Engine": "ইমেজ জেনারেশন ইঞ্জিন", + "Image Max Compression Size": "", "Image Settings": "ছবির সেটিংসমূহ", "Images": "ছবিসমূহ", "Import Chats": "চ্যাটগুলি ইমপোর্ট করুন", diff --git a/src/lib/i18n/locales/ca-ES/translation.json b/src/lib/i18n/locales/ca-ES/translation.json index 8250ef4590..6de75e5c92 100644 --- a/src/lib/i18n/locales/ca-ES/translation.json +++ b/src/lib/i18n/locales/ca-ES/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Afirmo que he llegit i entenc les implicacions de la meva acció. Soc conscient dels riscos associats a l'execució de codi arbitrari i he verificat la fiabilitat de la font.", "ID": "ID", "Ignite curiosity": "Despertar la curiositat", + "Image Compression": "", "Image Generation (Experimental)": "Generació d'imatges (Experimental)", "Image Generation Engine": "Motor de generació d'imatges", + "Image Max Compression Size": "", "Image Settings": "Preferències d'imatges", "Images": "Imatges", "Import Chats": "Importar xats", diff --git a/src/lib/i18n/locales/ceb-PH/translation.json b/src/lib/i18n/locales/ceb-PH/translation.json index 772a185684..a812a60494 100644 --- a/src/lib/i18n/locales/ceb-PH/translation.json +++ b/src/lib/i18n/locales/ceb-PH/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Pagmugna og hulagway (Eksperimento)", "Image Generation Engine": "Makina sa paghimo og imahe", + "Image Max Compression Size": "", "Image Settings": "Mga Setting sa Imahen", "Images": "Mga hulagway", "Import Chats": "Import nga mga chat", diff --git a/src/lib/i18n/locales/cs-CZ/translation.json b/src/lib/i18n/locales/cs-CZ/translation.json index a3d4ba6f4c..bfb4849a50 100644 --- a/src/lib/i18n/locales/cs-CZ/translation.json +++ b/src/lib/i18n/locales/cs-CZ/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Beru na vědomí, že jsem si přečetl a chápu důsledky svých činů. Jsem si vědom rizik spojených s vykonáváním libovolného kódu a ověřil jsem důvěryhodnost zdroje.", "ID": "ID", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Generování obrázků (experimentální)", "Image Generation Engine": "Engine pro generování obrázků", + "Image Max Compression Size": "", "Image Settings": "Nastavení obrázku", "Images": "Obrázky", "Import Chats": "Importovat konverzace", diff --git a/src/lib/i18n/locales/da-DK/translation.json b/src/lib/i18n/locales/da-DK/translation.json index d3e14e0aed..292b4b52a9 100644 --- a/src/lib/i18n/locales/da-DK/translation.json +++ b/src/lib/i18n/locales/da-DK/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Jeg anerkender, at jeg har læst og forstået konsekvenserne af min handling. Jeg er opmærksom på de risici, der er forbundet med at udføre vilkårlig kode, og jeg har verificeret kildens troværdighed.", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Billedgenerering (eksperimentel)", "Image Generation Engine": "Billedgenereringsengine", + "Image Max Compression Size": "", "Image Settings": "Billedindstillinger", "Images": "Billeder", "Import Chats": "Importer chats", diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json index 990761239b..f991f92b50 100644 --- a/src/lib/i18n/locales/de-DE/translation.json +++ b/src/lib/i18n/locales/de-DE/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Ich bestätige, dass ich gelesen habe und die Auswirkungen meiner Aktion verstehe. Mir sind die Risiken bewusst, die mit der Ausführung beliebigen Codes verbunden sind, und ich habe die Vertrauenswürdigkeit der Quelle überprüft.", "ID": "ID", "Ignite curiosity": "Neugier entfachen", + "Image Compression": "", "Image Generation (Experimental)": "Bildgenerierung (experimentell)", "Image Generation Engine": "Bildgenerierungs-Engine", + "Image Max Compression Size": "", "Image Settings": "Bildeinstellungen", "Images": "Bilder", "Import Chats": "Unterhaltungen importieren", diff --git a/src/lib/i18n/locales/dg-DG/translation.json b/src/lib/i18n/locales/dg-DG/translation.json index 3c1e6d5d94..e69d59bddd 100644 --- a/src/lib/i18n/locales/dg-DG/translation.json +++ b/src/lib/i18n/locales/dg-DG/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Image Wow (Much Experiment)", "Image Generation Engine": "Image Engine", + "Image Max Compression Size": "", "Image Settings": "Settings for Wowmage", "Images": "Wowmages", "Import Chats": "Import Barks", diff --git a/src/lib/i18n/locales/el-GR/translation.json b/src/lib/i18n/locales/el-GR/translation.json index 611ad82d15..ec7d4ac152 100644 --- a/src/lib/i18n/locales/el-GR/translation.json +++ b/src/lib/i18n/locales/el-GR/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Αναγνωρίζω ότι έχω διαβάσει και κατανοώ τις συνέπειες της ενέργειάς μου. Γνωρίζω τους κινδύνους που σχετίζονται με την εκτέλεση αυθαίρετου κώδικα και έχω επαληθεύσει την αξιοπιστία της πηγής.", "ID": "ID", "Ignite curiosity": "Ξύπνημα της περιέργειας", + "Image Compression": "", "Image Generation (Experimental)": "Δημιουργία Εικόνας (Πειραματικό)", "Image Generation Engine": "Μηχανή Δημιουργίας Εικόνας", + "Image Max Compression Size": "", "Image Settings": "Ρυθμίσεις Εικόνας", "Images": "Εικόνες", "Import Chats": "Εισαγωγή Συνομιλιών", diff --git a/src/lib/i18n/locales/en-GB/translation.json b/src/lib/i18n/locales/en-GB/translation.json index 73768dda33..4ce5057ec8 100644 --- a/src/lib/i18n/locales/en-GB/translation.json +++ b/src/lib/i18n/locales/en-GB/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "", "Image Generation Engine": "", + "Image Max Compression Size": "", "Image Settings": "", "Images": "", "Import Chats": "", diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index 73768dda33..4ce5057ec8 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "", "Image Generation Engine": "", + "Image Max Compression Size": "", "Image Settings": "", "Images": "", "Import Chats": "", diff --git a/src/lib/i18n/locales/es-ES/translation.json b/src/lib/i18n/locales/es-ES/translation.json index 44beaf9531..f2c3f27dcb 100644 --- a/src/lib/i18n/locales/es-ES/translation.json +++ b/src/lib/i18n/locales/es-ES/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Aseguro que he leído y entiendo las implicaciones de mi acción. Estoy consciente de los riesgos asociados con la ejecución de código arbitrario y he verificado la confianza de la fuente.", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Generación de imágenes (experimental)", "Image Generation Engine": "Motor de generación de imágenes", + "Image Max Compression Size": "", "Image Settings": "Ajustes de la Imágen", "Images": "Imágenes", "Import Chats": "Importar chats", diff --git a/src/lib/i18n/locales/eu-ES/translation.json b/src/lib/i18n/locales/eu-ES/translation.json index 82004c2f23..6ac31eb559 100644 --- a/src/lib/i18n/locales/eu-ES/translation.json +++ b/src/lib/i18n/locales/eu-ES/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Onartzen dut irakurri dudala eta nire ekintzaren ondorioak ulertzen ditudala. Kode arbitrarioa exekutatzearekin lotutako arriskuez jabetzen naiz eta iturriaren fidagarritasuna egiaztatu dut.", "ID": "IDa", "Ignite curiosity": "Piztu jakin-mina", + "Image Compression": "", "Image Generation (Experimental)": "Irudi Sorkuntza (Esperimentala)", "Image Generation Engine": "Irudi Sorkuntza Motorea", + "Image Max Compression Size": "", "Image Settings": "Irudi Ezarpenak", "Images": "Irudiak", "Import Chats": "Inportatu Txatak", diff --git a/src/lib/i18n/locales/fa-IR/translation.json b/src/lib/i18n/locales/fa-IR/translation.json index 38e6edb3b2..de6f1e0fad 100644 --- a/src/lib/i18n/locales/fa-IR/translation.json +++ b/src/lib/i18n/locales/fa-IR/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "تولید تصویر (آزمایشی)", "Image Generation Engine": "موتور تولید تصویر", + "Image Max Compression Size": "", "Image Settings": "تنظیمات تصویر", "Images": "تصاویر", "Import Chats": "درون\u200cریزی گفتگوها", diff --git a/src/lib/i18n/locales/fi-FI/translation.json b/src/lib/i18n/locales/fi-FI/translation.json index 4ae5a40b26..9f4aa5b339 100644 --- a/src/lib/i18n/locales/fi-FI/translation.json +++ b/src/lib/i18n/locales/fi-FI/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Vahvistan, että olen lukenut ja ymmärrän toimintani seuraukset. Olen tietoinen mielivaltaisen koodin suorittamiseen liittyvistä riskeistä ja olen varmistanut lähteen luotettavuuden.", "ID": "Tunnus", "Ignite curiosity": "Sytytä uteliaisuus", + "Image Compression": "", "Image Generation (Experimental)": "Kuvagenerointi (kokeellinen)", "Image Generation Engine": "Kuvagenerointimoottori", + "Image Max Compression Size": "", "Image Settings": "Kuva-asetukset", "Images": "Kuvat", "Import Chats": "Tuo keskustelut", diff --git a/src/lib/i18n/locales/fr-CA/translation.json b/src/lib/i18n/locales/fr-CA/translation.json index 0d3766385b..5880394199 100644 --- a/src/lib/i18n/locales/fr-CA/translation.json +++ b/src/lib/i18n/locales/fr-CA/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Génération d'images (expérimental)", "Image Generation Engine": "Moteur de génération d'images", + "Image Max Compression Size": "", "Image Settings": "Paramètres de l'image", "Images": "Images", "Import Chats": "Importer les discussions", diff --git a/src/lib/i18n/locales/fr-FR/translation.json b/src/lib/i18n/locales/fr-FR/translation.json index f5b8af8d00..0c78a803ed 100644 --- a/src/lib/i18n/locales/fr-FR/translation.json +++ b/src/lib/i18n/locales/fr-FR/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Je reconnais avoir lu et compris les implications de mes actions. Je suis conscient des risques associés à l'exécution d'un code arbitraire et j'ai vérifié la fiabilité de la source.", "ID": "ID", "Ignite curiosity": "Éveiller la curiosité", + "Image Compression": "", "Image Generation (Experimental)": "Génération d'images (expérimental)", "Image Generation Engine": "Moteur de génération d'images", + "Image Max Compression Size": "", "Image Settings": "Paramètres de génération d'images", "Images": "Images", "Import Chats": "Importer les conversations", diff --git a/src/lib/i18n/locales/he-IL/translation.json b/src/lib/i18n/locales/he-IL/translation.json index 788a3e92ed..af38956210 100644 --- a/src/lib/i18n/locales/he-IL/translation.json +++ b/src/lib/i18n/locales/he-IL/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "יצירת תמונות (ניסיוני)", "Image Generation Engine": "מנוע יצירת תמונות", + "Image Max Compression Size": "", "Image Settings": "הגדרות תמונה", "Images": "תמונות", "Import Chats": "יבוא צ'אטים", diff --git a/src/lib/i18n/locales/hi-IN/translation.json b/src/lib/i18n/locales/hi-IN/translation.json index 4522cbcbe9..c4c899b1e4 100644 --- a/src/lib/i18n/locales/hi-IN/translation.json +++ b/src/lib/i18n/locales/hi-IN/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "छवि निर्माण (प्रायोगिक)", "Image Generation Engine": "छवि निर्माण इंजन", + "Image Max Compression Size": "", "Image Settings": "छवि सेटिंग्स", "Images": "इमेजिस", "Import Chats": "चैट आयात करें", diff --git a/src/lib/i18n/locales/hr-HR/translation.json b/src/lib/i18n/locales/hr-HR/translation.json index ae501cd81e..b14483ffa2 100644 --- a/src/lib/i18n/locales/hr-HR/translation.json +++ b/src/lib/i18n/locales/hr-HR/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Generiranje slika (eksperimentalno)", "Image Generation Engine": "Stroj za generiranje slika", + "Image Max Compression Size": "", "Image Settings": "Postavke slike", "Images": "Slike", "Import Chats": "Uvoz razgovora", diff --git a/src/lib/i18n/locales/hu-HU/translation.json b/src/lib/i18n/locales/hu-HU/translation.json index 84fbfdb54f..0a3a447aaf 100644 --- a/src/lib/i18n/locales/hu-HU/translation.json +++ b/src/lib/i18n/locales/hu-HU/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Elismerem, hogy elolvastam és megértem a cselekedetem következményeit. Tisztában vagyok a tetszőleges kód végrehajtásával járó kockázatokkal, és ellenőriztem a forrás megbízhatóságát.", "ID": "Azonosító", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Képgenerálás (kísérleti)", "Image Generation Engine": "Képgenerálási motor", + "Image Max Compression Size": "", "Image Settings": "Kép beállítások", "Images": "Képek", "Import Chats": "Beszélgetések importálása", diff --git a/src/lib/i18n/locales/id-ID/translation.json b/src/lib/i18n/locales/id-ID/translation.json index d0b431339c..f1475b0c99 100644 --- a/src/lib/i18n/locales/id-ID/translation.json +++ b/src/lib/i18n/locales/id-ID/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Pembuatan Gambar (Eksperimental)", "Image Generation Engine": "Mesin Pembuat Gambar", + "Image Max Compression Size": "", "Image Settings": "Pengaturan Gambar", "Images": "Gambar", "Import Chats": "Impor Obrolan", diff --git a/src/lib/i18n/locales/ie-GA/translation.json b/src/lib/i18n/locales/ie-GA/translation.json index 5b5651226b..29a71de992 100644 --- a/src/lib/i18n/locales/ie-GA/translation.json +++ b/src/lib/i18n/locales/ie-GA/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Admhaím gur léigh mé agus tuigim impleachtaí mo ghníomhaíochta. Táim ar an eolas faoi na rioscaí a bhaineann le cód treallach a fhorghníomhú agus tá iontaofacht na foinse fíoraithe agam.", "ID": "ID", "Ignite curiosity": "Las fiosracht", + "Image Compression": "", "Image Generation (Experimental)": "Giniúint Íomhá (Turgnaimh)", "Image Generation Engine": "Inneall Giniúna Íomh", + "Image Max Compression Size": "", "Image Settings": "Socruithe Íomhá", "Images": "Íomhánna", "Import Chats": "Comhráite iompórtá", diff --git a/src/lib/i18n/locales/it-IT/translation.json b/src/lib/i18n/locales/it-IT/translation.json index b88404f06a..7bb81042c4 100644 --- a/src/lib/i18n/locales/it-IT/translation.json +++ b/src/lib/i18n/locales/it-IT/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Generazione di immagini (sperimentale)", "Image Generation Engine": "Motore di generazione immagini", + "Image Max Compression Size": "", "Image Settings": "Impostazioni immagine", "Images": "Immagini", "Import Chats": "Importa chat", diff --git a/src/lib/i18n/locales/ja-JP/translation.json b/src/lib/i18n/locales/ja-JP/translation.json index 501ac4d4ab..ec8c82a0de 100644 --- a/src/lib/i18n/locales/ja-JP/translation.json +++ b/src/lib/i18n/locales/ja-JP/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "画像生成 (実験的)", "Image Generation Engine": "画像生成エンジン", + "Image Max Compression Size": "", "Image Settings": "画像設定", "Images": "画像", "Import Chats": "チャットをインポート", diff --git a/src/lib/i18n/locales/ka-GE/translation.json b/src/lib/i18n/locales/ka-GE/translation.json index 3f691e5fc4..5da8918230 100644 --- a/src/lib/i18n/locales/ka-GE/translation.json +++ b/src/lib/i18n/locales/ka-GE/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "სურათების გენერაცია (ექსპერიმენტული)", "Image Generation Engine": "სურათის გენერაციის ძრავა", + "Image Max Compression Size": "", "Image Settings": "სურათის პარამეტრები", "Images": "სურათები", "Import Chats": "მიმოწერების იმპორტი", diff --git a/src/lib/i18n/locales/ko-KR/translation.json b/src/lib/i18n/locales/ko-KR/translation.json index 1cdde256f2..fedb2b14e6 100644 --- a/src/lib/i18n/locales/ko-KR/translation.json +++ b/src/lib/i18n/locales/ko-KR/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "ID", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "이미지 생성(실험적)", "Image Generation Engine": "이미지 생성 엔진", + "Image Max Compression Size": "", "Image Settings": "이미지 설정", "Images": "이미지", "Import Chats": "채팅 가져오기", diff --git a/src/lib/i18n/locales/lt-LT/translation.json b/src/lib/i18n/locales/lt-LT/translation.json index 80cc413125..0b6e4d9b74 100644 --- a/src/lib/i18n/locales/lt-LT/translation.json +++ b/src/lib/i18n/locales/lt-LT/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Suprantu veiksmų ir kodo vykdymo rizikas.", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Vaizdų generavimas (eksperimentinis)", "Image Generation Engine": "Vaizdų generavimo variklis", + "Image Max Compression Size": "", "Image Settings": "Vaizdų nustatymai", "Images": "Vaizdai", "Import Chats": "Importuoti pokalbius", diff --git a/src/lib/i18n/locales/ms-MY/translation.json b/src/lib/i18n/locales/ms-MY/translation.json index e301180d08..59f5a67d4e 100644 --- a/src/lib/i18n/locales/ms-MY/translation.json +++ b/src/lib/i18n/locales/ms-MY/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Saya mengakui bahawa saya telah membaca dan saya memahami implikasi tindakan saya. Saya sedar tentang risiko yang berkaitan dengan melaksanakan kod sewenang-wenangnya dan saya telah mengesahkan kebolehpercayaan sumber tersebut.", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Penjanaan Imej (Percubaan)", "Image Generation Engine": "Enjin Penjanaan Imej", + "Image Max Compression Size": "", "Image Settings": "Tetapan Imej", "Images": "Imej", "Import Chats": "Import Perbualan", diff --git a/src/lib/i18n/locales/nb-NO/translation.json b/src/lib/i18n/locales/nb-NO/translation.json index 2ab3807890..ac8202b676 100644 --- a/src/lib/i18n/locales/nb-NO/translation.json +++ b/src/lib/i18n/locales/nb-NO/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Jeg bekrefter at jeg har lest og forstår konsekvensene av mine handlinger. Jeg er klar over risikoen forbundet med å kjøre vilkårlig kode, og jeg har verifisert kildens pålitelighet.", "ID": "ID", "Ignite curiosity": "Vekk nysgjerrigheten", + "Image Compression": "", "Image Generation (Experimental)": "Bildegenerering (eksperimentell)", "Image Generation Engine": "Bildegenereringsmotor", + "Image Max Compression Size": "", "Image Settings": "Bildeinnstillinger", "Images": "Bilder", "Import Chats": "Importer chatter", diff --git a/src/lib/i18n/locales/nl-NL/translation.json b/src/lib/i18n/locales/nl-NL/translation.json index e49a2575a9..26a48ef71a 100644 --- a/src/lib/i18n/locales/nl-NL/translation.json +++ b/src/lib/i18n/locales/nl-NL/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Ik bevestig dat ik de implicaties van mijn actie heb gelezen en begrepen. Ik ben me bewust van de risico's die gepaard gaan met het uitvoeren van willekeurige code en ik heb de betrouwbaarheid van de bron gecontroleerd.", "ID": "ID", "Ignite curiosity": "Wakker nieuwsgierigheid aan", + "Image Compression": "", "Image Generation (Experimental)": "Afbeeldingsgeneratie (Experimenteel)", "Image Generation Engine": "Afbeeldingsgeneratie Engine", + "Image Max Compression Size": "", "Image Settings": "Afbeeldingsinstellingen", "Images": "Afbeeldingen", "Import Chats": "Importeer Chats", diff --git a/src/lib/i18n/locales/pa-IN/translation.json b/src/lib/i18n/locales/pa-IN/translation.json index da3222f146..41a0feb8e2 100644 --- a/src/lib/i18n/locales/pa-IN/translation.json +++ b/src/lib/i18n/locales/pa-IN/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "ਚਿੱਤਰ ਜਨਰੇਸ਼ਨ (ਪਰਮਾਣੂਕ੍ਰਿਤ)", "Image Generation Engine": "ਚਿੱਤਰ ਜਨਰੇਸ਼ਨ ਇੰਜਣ", + "Image Max Compression Size": "", "Image Settings": "ਚਿੱਤਰ ਸੈਟਿੰਗਾਂ", "Images": "ਚਿੱਤਰ", "Import Chats": "ਗੱਲਾਂ ਆਯਾਤ ਕਰੋ", diff --git a/src/lib/i18n/locales/pl-PL/translation.json b/src/lib/i18n/locales/pl-PL/translation.json index dac2ac9d00..ba31ada0bd 100644 --- a/src/lib/i18n/locales/pl-PL/translation.json +++ b/src/lib/i18n/locales/pl-PL/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Generowanie obrazu (eksperymentalne)", "Image Generation Engine": "Silnik generowania obrazu", + "Image Max Compression Size": "", "Image Settings": "Ustawienia obrazu", "Images": "Obrazy", "Import Chats": "Importuj czaty", diff --git a/src/lib/i18n/locales/pt-BR/translation.json b/src/lib/i18n/locales/pt-BR/translation.json index 80b1415f37..e722a1b5dc 100644 --- a/src/lib/i18n/locales/pt-BR/translation.json +++ b/src/lib/i18n/locales/pt-BR/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Eu reconheço que li e entendi as implicações da minha ação. Estou ciente dos riscos associados à execução de código arbitrário e verifiquei a confiabilidade da fonte.", "ID": "", "Ignite curiosity": "Desperte a curiosidade", + "Image Compression": "", "Image Generation (Experimental)": "Geração de Imagem (Experimental)", "Image Generation Engine": "Motor de Geração de Imagem", + "Image Max Compression Size": "", "Image Settings": "Configurações de Imagem", "Images": "Imagens", "Import Chats": "Importar Chats", diff --git a/src/lib/i18n/locales/pt-PT/translation.json b/src/lib/i18n/locales/pt-PT/translation.json index 3cda27bc69..d491172623 100644 --- a/src/lib/i18n/locales/pt-PT/translation.json +++ b/src/lib/i18n/locales/pt-PT/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Geração de Imagens (Experimental)", "Image Generation Engine": "Mecanismo de Geração de Imagens", + "Image Max Compression Size": "", "Image Settings": "Configurações da Imagem", "Images": "Imagens", "Import Chats": "Importar Conversas", diff --git a/src/lib/i18n/locales/ro-RO/translation.json b/src/lib/i18n/locales/ro-RO/translation.json index be98200513..243384378f 100644 --- a/src/lib/i18n/locales/ro-RO/translation.json +++ b/src/lib/i18n/locales/ro-RO/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Recunosc că am citit și înțeleg implicațiile acțiunii mele. Sunt conștient de riscurile asociate cu executarea codului arbitrar și am verificat fiabilitatea sursei.", "ID": "ID", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Generare Imagine (Experimental)", "Image Generation Engine": "Motor de Generare a Imaginilor", + "Image Max Compression Size": "", "Image Settings": "Setări Imagine", "Images": "Imagini", "Import Chats": "Importă Conversațiile", diff --git a/src/lib/i18n/locales/ru-RU/translation.json b/src/lib/i18n/locales/ru-RU/translation.json index 195faaeb01..173a58a092 100644 --- a/src/lib/i18n/locales/ru-RU/translation.json +++ b/src/lib/i18n/locales/ru-RU/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Я подтверждаю, что прочитал и осознаю последствия своих действий. Я осознаю риски, связанные с выполнением произвольного кода, и я проверил достоверность источника.", "ID": "", "Ignite curiosity": "Разожгите любопытство", + "Image Compression": "", "Image Generation (Experimental)": "Генерация изображений (Экспериментально)", "Image Generation Engine": "Механизм генерации изображений", + "Image Max Compression Size": "", "Image Settings": "Настройки изображения", "Images": "Изображения", "Import Chats": "Импортировать Чаты", diff --git a/src/lib/i18n/locales/sk-SK/translation.json b/src/lib/i18n/locales/sk-SK/translation.json index 03a287c5d4..4bc879066c 100644 --- a/src/lib/i18n/locales/sk-SK/translation.json +++ b/src/lib/i18n/locales/sk-SK/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Beriem na vedomie, že som si prečítal a chápem dôsledky svojich činov. Som si vedomý rizík spojených s vykonávaním ľubovoľného kódu a overil som dôveryhodnosť zdroja.", "ID": "ID", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Generovanie obrázkov (experimentálne)", "Image Generation Engine": "Engine na generovanie obrázkov", + "Image Max Compression Size": "", "Image Settings": "Nastavenia obrázka", "Images": "Obrázky", "Import Chats": "Importovať konverzácie", diff --git a/src/lib/i18n/locales/sr-RS/translation.json b/src/lib/i18n/locales/sr-RS/translation.json index 35f24695d8..f351f15b4e 100644 --- a/src/lib/i18n/locales/sr-RS/translation.json +++ b/src/lib/i18n/locales/sr-RS/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Стварање слика (експериментално)", "Image Generation Engine": "Мотор за стварање слика", + "Image Max Compression Size": "", "Image Settings": "Подешавања слике", "Images": "Слике", "Import Chats": "Увези ћаскања", diff --git a/src/lib/i18n/locales/sv-SE/translation.json b/src/lib/i18n/locales/sv-SE/translation.json index be9d7e135c..f2fa63617b 100644 --- a/src/lib/i18n/locales/sv-SE/translation.json +++ b/src/lib/i18n/locales/sv-SE/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Bildgenerering (experimentell)", "Image Generation Engine": "Bildgenereringsmotor", + "Image Max Compression Size": "", "Image Settings": "Bildinställningar", "Images": "Bilder", "Import Chats": "Importera chattar", diff --git a/src/lib/i18n/locales/th-TH/translation.json b/src/lib/i18n/locales/th-TH/translation.json index 6d1138f127..8e542342f7 100644 --- a/src/lib/i18n/locales/th-TH/translation.json +++ b/src/lib/i18n/locales/th-TH/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "ฉันรับทราบว่าฉันได้อ่านและเข้าใจผลกระทบของการกระทำของฉัน ฉันทราบถึงความเสี่ยงที่เกี่ยวข้องกับการเรียกใช้โค้ดโดยพลการและฉันได้ตรวจสอบความน่าเชื่อถือของแหล่งที่มาแล้ว", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "การสร้างภาพ (การทดลอง)", "Image Generation Engine": "เครื่องยนต์การสร้างภาพ", + "Image Max Compression Size": "", "Image Settings": "การตั้งค่าภาพ", "Images": "ภาพ", "Import Chats": "นำเข้าการสนทนา", diff --git a/src/lib/i18n/locales/tk-TW/translation.json b/src/lib/i18n/locales/tk-TW/translation.json index 73768dda33..4ce5057ec8 100644 --- a/src/lib/i18n/locales/tk-TW/translation.json +++ b/src/lib/i18n/locales/tk-TW/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "", "Image Generation Engine": "", + "Image Max Compression Size": "", "Image Settings": "", "Images": "", "Import Chats": "", diff --git a/src/lib/i18n/locales/tr-TR/translation.json b/src/lib/i18n/locales/tr-TR/translation.json index c4317bcb29..8c342e8032 100644 --- a/src/lib/i18n/locales/tr-TR/translation.json +++ b/src/lib/i18n/locales/tr-TR/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Eylemimin sonuçlarını okuduğumu ve anladığımı kabul ediyorum. Rastgele kod çalıştırmayla ilgili risklerin farkındayım ve kaynağın güvenilirliğini doğruladım.", "ID": "", "Ignite curiosity": "Merak uyandırın", + "Image Compression": "", "Image Generation (Experimental)": "Görüntü Oluşturma (Deneysel)", "Image Generation Engine": "Görüntü Oluşturma Motoru", + "Image Max Compression Size": "", "Image Settings": "Görüntü Ayarları", "Images": "Görüntüler", "Import Chats": "Sohbetleri İçe Aktar", diff --git a/src/lib/i18n/locales/uk-UA/translation.json b/src/lib/i18n/locales/uk-UA/translation.json index 1afd18aa2c..2a68b13600 100644 --- a/src/lib/i18n/locales/uk-UA/translation.json +++ b/src/lib/i18n/locales/uk-UA/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Я підтверджую, що прочитав і розумію наслідки своїх дій. Я усвідомлюю ризики, пов'язані з виконанням довільного коду, і перевірив надійність джерела.", "ID": "ID", "Ignite curiosity": "Запаліть цікавість", + "Image Compression": "", "Image Generation (Experimental)": "Генерування зображень (експериментально)", "Image Generation Engine": "Механізм генерації зображень", + "Image Max Compression Size": "", "Image Settings": "Налаштування зображення", "Images": "Зображення", "Import Chats": "Імпорт чатів", diff --git a/src/lib/i18n/locales/ur-PK/translation.json b/src/lib/i18n/locales/ur-PK/translation.json index 3cec006264..fa42317bcd 100644 --- a/src/lib/i18n/locales/ur-PK/translation.json +++ b/src/lib/i18n/locales/ur-PK/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "میں اقرار کرتا ہوں کہ میں نے پڑھ لیا ہے اور میں اپنی کارروائی کے مضمرات سمجھتا ہوں میں اس بات سے واقف ہوں کہ بلاوجہ کوڈ چلانے کے ساتھ منسلک خطرات ہوتے ہیں اور میں نے ماخذ کی اعتمادیت کی تصدیق کی ہے", "ID": "شناخت", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "تصویر کی تخلیق (تجرباتی)", "Image Generation Engine": "امیج جنریشن انجن", + "Image Max Compression Size": "", "Image Settings": "تصویری ترتیبات", "Images": "تصاویر", "Import Chats": "چیٹس درآمد کریں", diff --git a/src/lib/i18n/locales/vi-VN/translation.json b/src/lib/i18n/locales/vi-VN/translation.json index 7e189d4ce2..f5d01dbd98 100644 --- a/src/lib/i18n/locales/vi-VN/translation.json +++ b/src/lib/i18n/locales/vi-VN/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "Tôi thừa nhận rằng tôi đã đọc và tôi hiểu ý nghĩa của hành động của mình. Tôi nhận thức được những rủi ro liên quan đến việc thực thi mã tùy ý và tôi đã xác minh độ tin cậy của nguồn.", "ID": "", "Ignite curiosity": "", + "Image Compression": "", "Image Generation (Experimental)": "Tạo ảnh (thử nghiệm)", "Image Generation Engine": "Công cụ tạo ảnh", + "Image Max Compression Size": "", "Image Settings": "Cài đặt ảnh", "Images": "Hình ảnh", "Import Chats": "Nạp lại nội dung chat", diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index 87962f99a0..98522374d1 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "我已阅读并理解我的行为所带来的影响,明白执行任意代码所涉及的风险。且我已验证代码来源可信度。", "ID": "ID", "Ignite curiosity": "点燃好奇心", + "Image Compression": "", "Image Generation (Experimental)": "图像生成(实验性)", "Image Generation Engine": "图像生成引擎", + "Image Max Compression Size": "", "Image Settings": "图像设置", "Images": "图像", "Import Chats": "导入对话记录", diff --git a/src/lib/i18n/locales/zh-TW/translation.json b/src/lib/i18n/locales/zh-TW/translation.json index 5517a66785..e3ff22b301 100644 --- a/src/lib/i18n/locales/zh-TW/translation.json +++ b/src/lib/i18n/locales/zh-TW/translation.json @@ -482,8 +482,10 @@ "I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.": "我確認已閱讀並理解我的操作所帶來的影響。我了解執行任意程式碼的相關風險,並已驗證來源的可信度。", "ID": "ID", "Ignite curiosity": "點燃好奇心", + "Image Compression": "", "Image Generation (Experimental)": "圖片生成(實驗性功能)", "Image Generation Engine": "圖片生成引擎", + "Image Max Compression Size": "", "Image Settings": "圖片設定", "Images": "圖片", "Import Chats": "匯入對話紀錄", diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 51deca3063..463738bb27 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -14,7 +14,6 @@ function escapeRegExp(string: string): string { return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); } - export const replaceTokens = (content, sourceIds, char, user) => { const charToken = /{{char}}/gi; const userToken = /{{user}}/gi; @@ -190,72 +189,67 @@ export const canvasPixelTest = () => { return true; }; +export const compressImage = async (imageUrl, maxWidth, maxHeight) => { + return new Promise((resolve, reject) => { + const img = new Image(); + img.onload = () => { + const canvas = document.createElement('canvas'); + let width = img.width; + let height = img.height; -export const compressImage = async (imageUrl, maxWidth, maxHeight) => { - return new Promise((resolve, reject) => { - const img = new Image(); - img.onload = () => { - const canvas = document.createElement('canvas'); - let width = img.width; - let height = img.height; + // Maintain aspect ratio while resizing - // Maintain aspect ratio while resizing - - - - if (maxWidth && maxHeight) { - // Resize with both dimensions defined (preserves aspect ratio) + if (maxWidth && maxHeight) { + // Resize with both dimensions defined (preserves aspect ratio) if (width <= maxWidth && height <= maxHeight) { resolve(imageUrl); return; } - - if (width / height > maxWidth / maxHeight) { - height = Math.round((maxWidth * height) / width); - width = maxWidth; - } else { - width = Math.round((maxHeight * width) / height); - height = maxHeight; - } - } else if (maxWidth) { - // Only maxWidth defined + if (width / height > maxWidth / maxHeight) { + height = Math.round((maxWidth * height) / width); + width = maxWidth; + } else { + width = Math.round((maxHeight * width) / height); + height = maxHeight; + } + } else if (maxWidth) { + // Only maxWidth defined if (width <= maxWidth) { resolve(imageUrl); return; } - - height = Math.round((maxWidth * height) / width); - width = maxWidth; - } else if (maxHeight) { - // Only maxHeight defined + height = Math.round((maxWidth * height) / width); + width = maxWidth; + } else if (maxHeight) { + // Only maxHeight defined if (height <= maxHeight) { resolve(imageUrl); return; } - width = Math.round((maxHeight * width) / height); - height = maxHeight; - } + width = Math.round((maxHeight * width) / height); + height = maxHeight; + } - canvas.width = width; - canvas.height = height; + canvas.width = width; + canvas.height = height; - const context = canvas.getContext('2d'); - context.drawImage(img, 0, 0, width, height); + const context = canvas.getContext('2d'); + context.drawImage(img, 0, 0, width, height); - // Get compressed image URL - const compressedUrl = canvas.toDataURL(); - resolve(compressedUrl); - }; - img.onerror = (error) => reject(error); - img.src = imageUrl; - }); -} + // Get compressed image URL + const compressedUrl = canvas.toDataURL(); + resolve(compressedUrl); + }; + img.onerror = (error) => reject(error); + img.src = imageUrl; + }); +}; export const generateInitialsImage = (name) => { const canvas = document.createElement('canvas'); const ctx = canvas.getContext('2d');