Merge branch 'main' into pr/idsoke/374

This commit is contained in:
Chesterkxng committed 2026-08-07 16:24:04 +02:00
commit d61b02bb5f
186 files changed
+6181 -3152

No files matched your search

+73 -44
View File
@@ -4,16 +4,22 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="b30e2810-c4c1-4aad-b134-794e52cc1c7d" name="Changes" comment="fix(i18n): Correct &quot;hireMe&quot; translation in navbar&#10;&#10;This commit corrects the translation of &quot;hireMe&quot; in the&#10;navigation bar across all supported languages. The order of&#10;the elements was also fixed to be consistent.">
<list default="true" id="b30e2810-c4c1-4aad-b134-794e52cc1c7d" name="Changes" comment="fix(ci): update image name for GitHub Container Registry">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/public/locales/es/translation.json" beforeDir="false" afterPath="$PROJECT_DIR$/public/locales/es/translation.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/public/locales/fr/translation.json" beforeDir="false" afterPath="$PROJECT_DIR$/public/locales/fr/translation.json" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CopilotPersistence">
<persistenceIdMap>
<entry key="_C:/Users/Ibrahima/IdeaProjects/omni-tools" value="2i6g3WkUxdCURKYvUIJ9LMY5Qsc" />
</persistenceIdMap>
</component>
<component name="EmbeddingIndexingInfo">
<option name="cachedIndexableFilesCount" value="808" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
@@ -366,11 +372,15 @@
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="McpProjectServerCommands">
<commands />
<urls />
</component>
<component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 0
}</component>
<component name="ProjectId" id="2i6g3WkUxdCURKYvUIJ9LMY5Qsc" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<component name="ProjectLevelVcsManager">
<OptionsSetting value="false" id="Update" />
<ConfirmationsSetting value="2" id="Add" />
</component>
@@ -391,9 +401,12 @@
&quot;Playwright.Create transparent PNG.should make png color transparent.executor&quot;: &quot;Run&quot;,
&quot;Playwright.JoinText Component.executor&quot;: &quot;Run&quot;,
&quot;Playwright.JoinText Component.should merge text pieces with specified join character.executor&quot;: &quot;Run&quot;,
&quot;RunOnceActivity.MCP Project settings loaded&quot;: &quot;true&quot;,
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252&quot;: &quot;true&quot;,
&quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
&quot;RunOnceActivity.typescript.service.memoryLimit.init&quot;: &quot;true&quot;,
&quot;Vitest.compute function (1).executor&quot;: &quot;Run&quot;,
&quot;Vitest.compute function.executor&quot;: &quot;Run&quot;,
&quot;Vitest.generatePassword.executor&quot;: &quot;Run&quot;,
@@ -407,8 +420,10 @@
&quot;Vitest.replaceText function (regexp mode).should return the original text when passed an invalid regexp.executor&quot;: &quot;Run&quot;,
&quot;Vitest.replaceText function.executor&quot;: &quot;Run&quot;,
&quot;Vitest.timeBetweenDates.executor&quot;: &quot;Run&quot;,
&quot;com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1&quot;: &quot;true&quot;,
&quot;git-widget-placeholder&quot;: &quot;main&quot;,
&quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
&quot;junie.onboarding.icon.badge.shown&quot;: &quot;true&quot;,
&quot;kotlin-language-version-configured&quot;: &quot;true&quot;,
&quot;last_opened_file_path&quot;: &quot;C:/Users/Ibrahima/IdeaProjects/omni-tools&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
@@ -434,6 +449,7 @@
&quot;project.structure.proportion&quot;: &quot;0.0&quot;,
&quot;project.structure.side.proportion&quot;: &quot;0.2&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
&quot;to.speed.mode.migration.done&quot;: &quot;true&quot;,
&quot;ts.external.directory.path&quot;: &quot;C:\\Users\\Ibrahima\\IdeaProjects\\omni-tools\\node_modules\\typescript\\lib&quot;,
&quot;ts.rename.search.for.js.occurrences&quot;: &quot;false&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
@@ -464,7 +480,7 @@
<recent name="C:\Users\Ibrahima\IdeaProjects\omni-tools\src\pages\categories" />
</key>
</component>
<component name="RunManager" selected="npm.dev">
<component name="RunManager" selected="npm.i18n:sync">
<configuration default="true" type="docker-deploy" factoryName="dockerfile" temporary="true">
<deployment type="dockerfile">
<settings />
@@ -527,16 +543,16 @@
<method v="2" />
</configuration>
<list>
<item itemvalue="npm.dev" />
<item itemvalue="npm.i18n:sync" />
<item itemvalue="npm.test" />
<item itemvalue="npm.test:e2e" />
<item itemvalue="npm.typecheck" />
<item itemvalue="npm.i18n:sync" />
<item itemvalue="npm.dev" />
</list>
<recent_temporary>
<list>
<item itemvalue="npm.dev" />
<item itemvalue="npm.i18n:sync" />
<item itemvalue="npm.dev" />
<item itemvalue="npm.test:e2e" />
<item itemvalue="npm.test" />
<item itemvalue="npm.typecheck" />
@@ -546,8 +562,8 @@
<component name="SharedIndexes">
<attachedChunks>
<set>
<option value="bundled-jdk-9823dce3aa75-125ca727e0f0-intellij.indexing.shared.core-IU-243.24978.46" />
<option value="bundled-js-predefined-d6986cc7102b-76f8388c3a79-JavaScript-IU-243.24978.46" />
<option value="bundled-jdk-30f59d01ecdd-26cb7f24e5b0-intellij.indexing.shared.core-IU-253.29346.138" />
<option value="bundled-js-predefined-d6986cc7102b-9b0f141eb926-JavaScript-IU-253.29346.138" />
</set>
</attachedChunks>
</component>
@@ -660,31 +676,12 @@
<workItem from="1753206561770" duration="119000" />
<workItem from="1753206717510" duration="3599000" />
<workItem from="1759497758761" duration="1012000" />
<workItem from="1759502144651" duration="1106000" />
</task>
<task id="LOCAL-00210" summary="feat: convert to jpg">
<option name="closed" value="true" />
<created>1752026153328</created>
<option name="number" value="00210" />
<option name="presentableId" value="LOCAL-00210" />
<option name="project" value="LOCAL" />
<updated>1752026153328</updated>
</task>
<task id="LOCAL-00211" summary="feat: edit image">
<option name="closed" value="true" />
<created>1752032092273</created>
<option name="number" value="00211" />
<option name="presentableId" value="LOCAL-00211" />
<option name="project" value="LOCAL" />
<updated>1752032092274</updated>
</task>
<task id="LOCAL-00212" summary="fix: favicons">
<option name="closed" value="true" />
<created>1752071147050</created>
<option name="number" value="00212" />
<option name="presentableId" value="LOCAL-00212" />
<option name="project" value="LOCAL" />
<updated>1752071147050</updated>
<workItem from="1759502144651" duration="2547000" />
<workItem from="1764631688250" duration="3567000" />
<workItem from="1764673514058" duration="21000" />
<workItem from="1766438480352" duration="697000" />
<workItem from="1775675776674" duration="2613000" />
<workItem from="1775761585858" duration="4794000" />
</task>
<task id="LOCAL-00213" summary="chore: examples button visibility">
<option name="closed" value="true" />
@@ -1054,7 +1051,31 @@
<option name="project" value="LOCAL" />
<updated>1759503051936</updated>
</task>
<option name="localTasksCounter" value="259" />
<task id="LOCAL-00259" summary="fix(i18n): Correct &quot;hireMe&quot; translation in navbar (main)&#10;&#10;This commit corrects the translation of &quot;hireMe&quot; in the&#10;navigation bar across all supported languages. The order of&#10;the elements was also fixed to be consistent.">
<option name="closed" value="true" />
<created>1759503311355</created>
<option name="number" value="00259" />
<option name="presentableId" value="LOCAL-00259" />
<option name="project" value="LOCAL" />
<updated>1759503311355</updated>
</task>
<task id="LOCAL-00260" summary="chore(i18n): sync">
<option name="closed" value="true" />
<created>1775676005437</created>
<option name="number" value="00260" />
<option name="presentableId" value="LOCAL-00260" />
<option name="project" value="LOCAL" />
<updated>1775676005437</updated>
</task>
<task id="LOCAL-00261" summary="fix(ci): update image name for GitHub Container Registry">
<option name="closed" value="true" />
<created>1775769625178</created>
<option name="number" value="00261" />
<option name="presentableId" value="LOCAL-00261" />
<option name="project" value="LOCAL" />
<updated>1775769625180</updated>
</task>
<option name="localTasksCounter" value="262" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@@ -1118,11 +1139,6 @@
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="CHECK_NEW_TODO" value="false" />
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
<MESSAGE value="feat: Upgrade Node.js versions in CI (main)&#10;&#10;This commit updates the Node.js versions used in the CI&#10;workflows to version 20. This ensures that the CI&#10;environment uses a more up-to-date and supported version&#10;of Node.js." />
<MESSAGE value="feat" />
<MESSAGE value="feat: Upgrade onnxruntime-web and onnxruntime-common (main)&#10;&#10;Up" />
<MESSAGE value="feat: Upgrade onnxruntime-web and onnxruntime-common (main)&#10;&#10;Upgrades onnxruntime-web and onnxruntime-common to versions&#10;1" />
<MESSAGE value="feat: Upgrade onnxruntime-web and onnxruntime-common (main)&#10;&#10;Upgrades onnxruntime-web and onnxruntime-common to versions&#10;1.23.0. This includes updates to dependencies and related&#10;packages.&#10;" />
<MESSAGE value="feat: Upgrade onnxruntime-web and onnxruntime-common (main)&#10;&#10;Upgrades onnxruntime-web and onnxruntime-common to versions&#10;1.23.0. This includes updates to dependencies and related&#10;packages." />
<MESSAGE value="```&#10;feat: Replace &quot;Buy me a coffee&quot; with &quot;Hire me&quot; (main)&#10;&#10;" />
<MESSAGE value="```&#10;feat: Replace &quot;Buy me a coffee&quot; with &quot;Hire me&quot; (main)&#10;&#10;This commit replaces the &quot;Buy me a coffee&quot; button with a&#10;&quot;Hire" />
@@ -1138,12 +1154,17 @@
<MESSAGE value="```&#10;feat: Update workspace and translation files (main)&#10;&#10;This commit includes the following changes:&#10;&#10;- Updated the workspace configuration in .idea/workspace.xml to&#10; reflect the recent npm script execution.&#10;- Modified the English translation file (translation.json) by&#10; reordering the &quot;navbar&quot; keys.&#10;-" />
<MESSAGE value="```&#10;feat: Update workspace and translation files (main)&#10;&#10;This commit includes the following changes:&#10;&#10;- Updated the workspace configuration in .idea/workspace.xml to&#10; reflect the recent npm script execution.&#10;- Modified the English translation file (translation.json) by&#10; reordering the &quot;navbar&quot; keys.&#10;- Updated translation files in other languages with &quot;hireMe&quot;.&#10;```&#10;" />
<MESSAGE value="feat: Update workspace and translation files (main)&#10;&#10;This commit includes the following changes:&#10;&#10;- Updated the workspace configuration in .idea/workspace.xml to&#10; reflect the recent npm script execution.&#10;- Modified the English translation file (translation.json) by&#10; reordering the &quot;navbar&quot; keys.&#10;- Updated translation files in other languages with &quot;hireMe&quot;." />
<MESSAGE value="```" />
<MESSAGE value="```&#10;fix(i18n): Correct &quot;hireMe&quot; translation in navbar" />
<MESSAGE value="```&#10;fix(i18n): Correct &quot;hireMe&quot; translation in navbar&#10;&#10;This commit corrects the translation of &quot;hireMe&quot; in the&#10;navigation bar" />
<MESSAGE value="```&#10;fix(i18n): Correct &quot;hireMe&quot; translation in navbar&#10;&#10;This commit corrects the translation of &quot;hireMe&quot; in the&#10;navigation bar across all supported languages. The order of&#10;the elements was also fixed to be consistent.&#10;```&#10;" />
<MESSAGE value="fix(i18n): Correct &quot;hireMe&quot; translation in navbar&#10;&#10;This commit corrects the translation of &quot;hireMe&quot; in the&#10;navigation bar across all supported languages. The order of&#10;the elements was also fixed to be consistent." />
<option name="LAST_COMMIT_MESSAGE" value="fix(i18n): Correct &quot;hireMe&quot; translation in navbar&#10;&#10;This commit corrects the translation of &quot;hireMe&quot; in the&#10;navigation bar across all supported languages. The order of&#10;the elements was also fixed to be consistent." />
<MESSAGE value="```" />
<MESSAGE value="```&#10;fix(i18n): Correct &quot;hireMe&quot; translation in navbar" />
<MESSAGE value="```&#10;fix(i18n): Correct &quot;hireMe&quot; translation in navbar (main)&#10;&#10;This commit corrects the translation of &quot;hireMe&quot; in the" />
<MESSAGE value="```&#10;fix(i18n): Correct &quot;hireMe&quot; translation in navbar (main)&#10;&#10;This commit corrects the translation of &quot;hireMe&quot; in the&#10;navigation bar across all supported languages. The order of&#10;the elements was also fixed to be consistent.&#10;```&#10;" />
<MESSAGE value="fix(i18n): Correct &quot;hireMe&quot; translation in navbar (main)&#10;&#10;This commit corrects the translation of &quot;hireMe&quot; in the&#10;navigation bar across all supported languages. The order of&#10;the elements was also fixed to be consistent." />
<MESSAGE value="chore(i18n): sync" />
<MESSAGE value="fix(ci): update image name for GitHub Container Registry" />
<option name="LAST_COMMIT_MESSAGE" value="fix(ci): update image name for GitHub Container Registry" />
</component>
<component name="VgoProject">
<integration-enabled>false</integration-enabled>
@@ -1153,4 +1174,12 @@
<expand />
<select />
</component>
<component name="github-copilot-workspace">
<instructionFileLocations>
<option value=".github/instructions" />
</instructionFileLocations>
<promptFileLocations>
<option value=".github/prompts" />
</promptFileLocations>
</component>
</project>
+32 -2
View File
@@ -1,12 +1,12 @@
{
"name": "omni-tools",
"version": "0.1.0",
"version": "0.6.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "omni-tools",
"version": "0.1.0",
"version": "0.6.0",
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
@@ -43,6 +43,7 @@
"i18next-http-backend": "^3.0.2",
"jimp": "^0.22.12",
"js-quantities": "^1.8.0",
"json5": "^2.2.3",
"jspdf": "^3.0.3",
"jszip": "^3.10.1",
"lint-staged": "^15.4.3",
@@ -69,6 +70,7 @@
"react-router-dom": "^6.23.1",
"styled-components": "^6.1.19",
"tesseract.js": "^6.0.0",
"to-words": "^5.6.1",
"type-fest": "^4.35.0",
"use-deep-compare-effect": "^1.8.1",
"yup": "^1.4.0"
@@ -8675,6 +8677,18 @@
"dev": true,
"license": "MIT"
},
"node_modules/json5": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
"license": "MIT",
"bin": {
"json5": "lib/cli.js"
},
"engines": {
"node": ">=6"
}
},
"node_modules/jsonparse": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
@@ -13031,6 +13045,22 @@
"node": ">=8.0"
}
},
"node_modules/to-words": {
"version": "5.6.1",
"resolved": "https://registry.npmjs.org/to-words/-/to-words-5.6.1.tgz",
"integrity": "sha512-I2tQDzfUjFUbBiRFkoN4qYvm88us5h/hXayyfsszlWK21NY5fGRU0BOURrejmh55isf6lEt1rCstW9ezkdXFyw==",
"license": "MIT",
"bin": {
"to-words": "dist/cjs/cli.js"
},
"engines": {
"node": ">=20.0.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/mastermunj"
}
},
"node_modules/token-types": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/token-types/-/token-types-4.2.1.tgz",
+3 -1
View File
@@ -1,7 +1,7 @@
{
"name": "omni-tools",
"description": "This project offers a variety of online tools to help with everyday tasks, \nall available for free and open for community contributions",
"version": "0.1.0",
"version": "0.6.0",
"private": true,
"author": {
"name": "Ibrahima Gaye Coulibaly",
@@ -62,6 +62,7 @@
"i18next-http-backend": "^3.0.2",
"jimp": "^0.22.12",
"js-quantities": "^1.8.0",
"json5": "^2.2.3",
"jspdf": "^3.0.3",
"jszip": "^3.10.1",
"lint-staged": "^15.4.3",
@@ -88,6 +89,7 @@
"react-router-dom": "^6.23.1",
"styled-components": "^6.1.19",
"tesseract.js": "^6.0.0",
"to-words": "^5.6.1",
"type-fest": "^4.35.0",
"use-deep-compare-effect": "^1.8.1",
"yup": "^1.4.0"
+2 -7
View File
@@ -8,10 +8,7 @@
"settingSpeed": "Geschwindigkeit einstellen",
"shortDescription": "Ändern Sie die Geschwindigkeit von Audiodateien",
"speedDescription": "Standardmultiplikator: 2 bedeutet 2x schneller",
"title": "Audiogeschwindigkeit ändern",
"toolInfo": {
"title": "Was ist {{title}}?"
}
"title": "Audiogeschwindigkeit ändern"
},
"extractAudio": {
"description": "Extrahieren Sie Audiospuren aus Videodateien.",
@@ -31,7 +28,6 @@
"description": "Kombinieren Sie mehrere Audiodateien zu einer einzigen Audiodatei, indem Sie sie der Reihe nach aneinanderreihen.",
"inputTitle": "Audiodateien eingeben",
"longDescription": "Mit diesem Tool können Sie mehrere Audiodateien in der Reihenfolge des Hochladens zu einer einzigen Datei zusammenfügen. Ideal zum Kombinieren von Podcast-Segmenten, Musiktiteln oder anderen Audiodateien. Unterstützt verschiedene Audioformate, darunter MP3, AAC und WAV.",
"mergingAudio": "Audio zusammenführen",
"outputFormat": "Ausgabeformat",
"resultTitle": "Zusammengeführtes Audio",
"shortDescription": "Mehrere Audiodateien zu einer zusammenführen (MP3, AAC, WAV).",
@@ -55,7 +51,6 @@
"title": "Audio trimmen",
"toolInfo": {
"title": "Was ist {{title}}?"
},
"trimmingAudio": "Audio trimmen"
}
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
"includeNumbers": "Zahlen einschließen (0-9)",
"includeSymbols": "Sonderzeichen einschließen",
"includeUppercase": "Großbuchstaben einschließen (A-Z)",
"lengthDesc": "Länge des Passwortes",
"lengthDesc": "Länge des Passwortes (>3 & <257)",
"lengthPlaceholder": "z.B. 12",
"optionsTitle": "Passwortoptionen",
"resultTitle": "Generiertes Passwort",
+2 -3
View File
@@ -64,7 +64,6 @@
"date-to-unix": "Datum → Unix",
"description": "Unix-Zeitstempel in lesbare Daten und Datumsangaben in Unix-Zeitstempel konvertieren (beide Richtungen).",
"optionsTitle": "Konvertierungsmodus",
"outputOptions": "Ausgabeoptionen",
"shortDescription": "Unix-Zeitstempel und Daten in beide Richtungen konvertieren.",
"title": "Unix ↔ Datum konvertieren",
"toolInfo": {
@@ -78,10 +77,10 @@
"useUTC": "UTC verwenden"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "Analysieren und erklären Sie Cron-Ausdrücke auf Deutsch. Verstehen Sie sofort, was ein Cron-Zeitplan bewirkt, validieren Sie die Syntax und verarbeiten Sie mehrere Ausdrücke gleichzeitig.",
"longDescription": "Crontab Guru ist ein Cron-Ausdruck-Parser und -Validator, der komplexe Cron-Syntax in klare, lesbare Beschreibungen übersetzt. Egal ob Sie automatische Backups, Systemwartungsaufgaben oder CI/CD-Pipelines planen – dieses Tool hilft Ihnen zu verstehen, wann genau Ihre Jobs ausgeführt werden. Unterstützt standardmäßige 5-Feld-Cron-Ausdrücke, validiert die Syntax in Echtzeit und verarbeitet mehrere Ausdrücke gleichzeitig – einen pro Zeile. Verfügbar auf Englisch, Französisch, Spanisch, Deutsch, Japanisch, Chinesisch, Portugiesisch, Niederländisch und Russisch.",
"shortDescription": "Cron-Ausdrücke analysieren und verständlich erklären",
"longDescription": "Crontab Guru ist ein Cron-Ausdruck-Parser und -Validator, der komplexe Cron-Syntax in klare, lesbare Beschreibungen übersetzt. Egal ob Sie automatische Backups, Systemwartungsaufgaben oder CI/CD-Pipelines planen – dieses Tool hilft Ihnen zu verstehen, wann genau Ihre Jobs ausgeführt werden. Unterstützt standardmäßige 5-Feld-Cron-Ausdrücke, validiert die Syntax in Echtzeit und verarbeitet mehrere Ausdrücke gleichzeitig – einen pro Zeile. Verfügbar auf Englisch, Französisch, Spanisch, Deutsch, Japanisch, Chinesisch, Portugiesisch, Niederländisch und Russisch."
"title": "Crontab Guru"
},
"timeBetweenDates": {
"description": "Berechnen Sie die Zeitdifferenz zwischen zwei Daten. Ermitteln Sie die genaue Dauer in Tagen, Stunden, Minuten und Sekunden.",
+4 -4
View File
@@ -95,8 +95,8 @@
"trimVideo": "Video zuschneiden"
},
"search": {
"placeholder": "Alle Tools durchsuchen",
"noResult": "Keine Ergebnisse gefunden, versuchen Sie Ihre Suche oder Filterkriterien anzupassen"
"noResult": "Keine Ergebnisse gefunden, versuchen Sie Ihre Suche oder Filterkriterien anzupassen",
"placeholder": "Alle Tools durchsuchen"
},
"title": "Erledigen Sie Dinge schnell mit"
},
@@ -229,9 +229,9 @@
"result": "Ergebnis"
},
"toolMultipleInput": {
"deleteFile": "Datei löschen",
"inputTitle": "Eingabe {{type}}",
"noFilesSelected": "Keine Dateien ausgewählt",
"deleteFile": "Datei löschen"
"noFilesSelected": "Keine Dateien ausgewählt"
},
"toolOptions": {
"title": "Werkzeugoptionen"
-11
View File
@@ -1,11 +1,8 @@
{
"changeSpeed": {
"defaultMultiplier": "Standardmultiplikator: 2 bedeutet 2x schneller",
"description": "Ändern Sie die Wiedergabegeschwindigkeit von Videodateien. Beschleunigen oder verlangsamen Sie Videos, während die Audiosynchronisation erhalten bleibt. Unterstützt verschiedene Geschwindigkeitsmultiplikatoren und gängige Videoformate.",
"inputTitle": "Eingangsvideo",
"newVideoSpeed": "Neue Videogeschwindigkeit",
"resultTitle": "Bearbeitetes Video",
"settingSpeed": "Geschwindigkeit einstellen",
"shortDescription": "Ändern der Videowiedergabegeschwindigkeit",
"title": "Videogeschwindigkeit ändern",
"toolInfo": {
@@ -54,7 +51,6 @@
},
"flip": {
"description": "Drehen Sie Videodateien horizontal oder vertikal. Spiegeln Sie Videos für Spezialeffekte oder zum Korrigieren von Ausrichtungsproblemen.",
"flippingVideo": "Video spiegeln",
"horizontalLabel": "Horizontal (Spiegel)",
"inputTitle": "Eingangsvideo",
"orientation": "Orientierung",
@@ -73,7 +69,6 @@
"loop": {
"description": "Erstellen Sie ein Loop-Video, indem Sie das Originalvideo mehrmals wiederholen.",
"inputTitle": "Eingangsvideo",
"loopingVideo": "Videoschleife",
"loops": "Schleifen",
"numberOfLoops": "Anzahl der Schleifen",
"resultTitle": "Videoschleife",
@@ -97,7 +92,6 @@
"description": "Drehen Sie Videodateien um 90, 180 oder 270 Grad. Korrigieren Sie die Videoausrichtung oder erstellen Sie Spezialeffekte mit präziser Rotationssteuerung.",
"inputTitle": "Eingangsvideo",
"resultTitle": "Gedrehtes Video",
"rotatingVideo": "Rotierendes Video",
"rotation": "Drehung",
"shortDescription": "Video um angegebene Gradzahlen drehen",
"title": "Video drehen"
@@ -111,10 +105,5 @@
"startTime": "Startzeit",
"timestamps": "Zeitstempel",
"title": "Video trimmen"
},
"videoToGif": {
"description": "Konvertieren Sie Videodateien in das animierte GIF-Format. Extrahieren Sie bestimmte Zeitbereiche und erstellen Sie gemeinsam nutzbare animierte Bilder.",
"shortDescription": "Video in animiertes GIF konvertieren",
"title": "Video zu GIF"
}
}
+3 -7
View File
@@ -8,10 +8,7 @@
"settingSpeed": "Setting Speed",
"shortDescription": "Change the speed of audio files",
"speedDescription": "Default multiplier: 2 means 2x faster",
"title": "Change audio speed",
"toolInfo": {
"title": "What is {{title}}?"
}
"title": "Change audio speed"
},
"extractAudio": {
"description": "Extract audio track from video files.",
@@ -31,7 +28,6 @@
"description": "Combine multiple audio files into a single audio file by concatenating them in sequence.",
"inputTitle": "Input Audio Files",
"longDescription": "This tool allows you to merge multiple audio files into a single file by concatenating them in the order you upload them. Perfect for combining podcast segments, music tracks, or any audio files that need to be joined together. Supports various audio formats including MP3, AAC, and WAV.",
"mergingAudio": "Merging Audio",
"outputFormat": "Output Format",
"resultTitle": "Merged Audio",
"shortDescription": "Merge multiple audio files into one (MP3, AAC, WAV).",
@@ -54,8 +50,8 @@
"timeSettings": "Time Settings",
"title": "Trim Audio",
"toolInfo": {
"longDescription": "This tool allows you to trim audio files by specifying start and end times with sub-second precision. You can extract specific segments from longer audio files, remove unwanted parts, or create shorter clips. Supports various audio formats including MP3, AAC, and WAV. Perfect for podcast editing, music production, or any audio editing needs.",
"title": "What is {{title}}?"
},
"trimmingAudio": "Trimming Audio"
}
}
}
+17
View File
@@ -36,5 +36,22 @@
"resultTitle": "WEBP Images",
"shortDescription": "Convert Images to WebP Format with quality control.",
"title": "Convert Images to WebP"
},
"videoToGif": {
"description": "Convert video files to animated GIF format. Extract specific time ranges and create shareable animated images.",
"inputTitle": "Input Video",
"options": {
"endTime": "End Time",
"high": "High",
"low": "Low",
"mid": "Medium",
"quality": "Quality",
"startTime": "Start Time",
"timestamps": "Timestamps",
"ultra": "Ultra"
},
"resultTitle": "Output GIF",
"shortDescription": "Convert video to animated GIF",
"title": "Video to GIF"
}
}
+198 -32
View File
@@ -1,22 +1,22 @@
{
"changeColors": {
"description": "Change specific colors in an image by selecting a source color and replacing it with a new one.",
"shortDescription": "Quickly swap colors in a image",
"title": "Change colors in image",
"fromColor": {
"colorOption": "Replace a specific color",
"selectorDescription": "Replace this color (from color)",
"similarityDescription": "Match this % of similar colors of the from color. For example, 10% white will match white and a little bit of gray.",
"title": "From color",
"transparentOption": "Replace transparent pixels"
},
"inputTitle": "Input image",
"resultTitle": "Result image",
"fromColor": {
"title": "From color",
"colorOption": "Replace a specific color",
"transparentOption": "Replace transparent pixels",
"selectorDescription": "Replace this color (from color)",
"similarityDescription": "Match this % of similar colors of the from color. For example, 10% white will match white and a little bit of gray."
},
"shortDescription": "Quickly swap colors in a image",
"title": "Change colors in image",
"toColor": {
"title": "To color",
"colorOption": "Replace with a specific color",
"transparentOption": "Replace with transparent",
"selectorDescription": "With this color (to color)"
"selectorDescription": "With this color (to color)",
"title": "To color",
"transparentOption": "Replace with transparent"
}
},
"changeOpacity": {
@@ -74,6 +74,127 @@
},
"qrCode": {
"description": "Generate QR codes for different data types: URL, Text, Email, Phone, SMS, WiFi, vCard, and more.",
"groups": {
"details": {
"email": {
"address": {
"description": "Email Address",
"placeholder": "example@example.com"
},
"body": {
"description": "Email Body (optional)",
"placeholder": "Body text"
},
"subject": {
"description": "Email Subject (optional)",
"placeholder": "Subject line"
}
},
"phone": {
"description": "Phone Number",
"placeholder": "+1234567890"
},
"sms": {
"message": {
"description": "Message (optional)",
"placeholder": "Your message here"
},
"number": {
"description": "Phone Number",
"placeholder": "+1234567890"
}
},
"text": {
"description": "Enter the text",
"placeholder": "Enter your text here"
},
"title": "{{type}} Details",
"url": {
"description": "Enter the URL",
"placeholder": "https://example.com"
},
"vcard": {
"address": {
"description": "Address",
"placeholder": "123 Main St, City, Country"
},
"company": {
"description": "Company (optional)",
"placeholder": "Company name"
},
"email": {
"description": "Email",
"placeholder": "john@example.com"
},
"name": {
"description": "Full Name",
"placeholder": "John Doe"
},
"phone": {
"description": "Phone",
"placeholder": "+1234567890"
},
"title": {
"description": "Job Title (optional)",
"placeholder": "Software Developer"
},
"website": {
"description": "Website (optional)",
"placeholder": "https://example.com"
}
},
"wifi": {
"encryption": {
"label": "Encryption Type",
"options": {
"none": "None",
"wep": "WEP",
"wpa": "WPA"
}
},
"password": {
"description": "Password",
"placeholder": "Password"
},
"ssid": {
"description": "Network Name (SSID)",
"placeholder": "Network name"
}
}
},
"settings": {
"bgColor": "Background Color",
"correctionLevel": {
"helperText": "Higher levels survive more damage but encode less data",
"label": "Error Correction Level",
"options": {
"h": "H (~30%)",
"l": "L (~7%)",
"m": "M (~15%)",
"q": "Q (~25%)"
}
},
"fgColor": "Foreground Color",
"size": {
"description": "Size in pixels (100-1000)"
},
"title": "QR Code Settings"
},
"type": {
"label": "Select QR Code Type",
"options": {
"email": "Email",
"phone": "Phone",
"sms": "SMS",
"text": "Text",
"url": "URL",
"vcard": "vCard (Contact)",
"wifi": "WiFi"
},
"title": "QR Code Type"
}
},
"longDescription": "Generate QR codes for different data types: URL, Text, Email, Phone, SMS, WiFi, vCard, and more. Customize the size and colors to create the perfect QR code for your needs.",
"options": {
"address": "Address",
"company": "Company (optional)",
@@ -94,6 +215,9 @@
"url": "Enter the URL",
"website": "Website (optional)"
},
"result": {
"title": "Generated QR code"
},
"resultOutput": "Generated QR code",
"shortDescription": "Create customized QR codes for various data formats.",
"title": "QR Code Generator"
@@ -132,47 +256,89 @@
},
"rotate": {
"description": "Rotate an image by a specified angle.",
"inputTitle": "Input Images",
"options": {
"angle": "Angle",
"customDesc": "Rotate by a custom angle in degrees.",
"customTitle": "Custom Angle",
"method": "Rotation Method",
"presetDesc": "Rotate by a specific angle in degrees.",
"presetTitle": "Preset Angle"
},
"resultTitle": "Rotated images",
"shortDescription": "Rotate an image easily.",
"title": "Rotate Image"
},
"split": {
"title": "Split Image into Pages",
"shortDescription": "Split a large image into multiple pages (PDF).",
"description": "Split a map or large image into pages matching the selected paper format and padding. Specify pixels per printing square and square count to scale the image correctly.",
"inputTitle": "Input image",
"resultTitle": "Split PDF",
"loadingText": "Loading... This may take a moment.",
"pageParameters": {
"title": "Page parameters",
"selectPageFormat": "Select page format",
"padding": {
"label": "Padding",
"description": "Padding around the map on each page (in selected units)"
}
"description": "Padding around the map on each page (in selected units)",
"label": "Padding"
},
"selectPageFormat": "Select page format",
"title": "Page parameters"
},
"resultTitle": "Split PDF",
"scaleParameters": {
"title": "Scale parameters",
"pxPerSquareQuantity": {
"label": "Pixels per squares quantity",
"description": "How many pixels correspond to the specified number of squares on the original image (horizontal or vertical)"
"description": "How many pixels correspond to the specified number of squares on the original image (horizontal or vertical)",
"label": "Pixels per squares quantity"
},
"squareQuantity": {
"label": "Squares quantity",
"description": "Number of play squares across (horizontal or vertical) used for scaling"
"description": "Number of play squares across (horizontal or vertical) used for scaling",
"label": "Squares quantity"
},
"title": "Scale parameters",
"unitsPerOneSquare": {
"label": "Units per square",
"description": "Physical size of one square in the selected units"
"description": "Physical size of one square in the selected units",
"label": "Units per square"
}
},
"shortDescription": "Split a large image into multiple pages (PDF).",
"title": "Split Image into Pages",
"units": {
"title": "Units",
"select": "Select measurement units",
"options": {
"pt": "Points (pt)",
"in": "Inches (in)",
"mm": "Millimeters (mm)",
"in": "Inches (in)"
}
"pt": "Points (pt)"
},
"select": "Select measurement units",
"title": "Units"
}
},
"watermark": {
"description": "Add text watermarks to one or more images using each filename or custom text.",
"failedToProcess": "Failed to watermark one or more images. Please try again.",
"inputTitle": "Input Images",
"options": {
"color": "Watermark color.",
"customStringWatermarkDesc": "Apply the same custom text to every image.",
"customStringWatermarkTitle": "Use Custom Watermark",
"filenameWatermarkDesc": "Use each image's filename as the watermark.",
"filenameWatermarkTitle": "Use Filename",
"fontSize": "Font size.",
"opacity": "Watermark transparency.",
"position": {
"bottomLeft": "Bottom Left",
"bottomRight": "Bottom Right",
"center": "Center",
"topLeft": "Top Left",
"topRight": "Top Right"
},
"positionTitle": "Position",
"styleTitle": "Style",
"watermark": "Watermark text.",
"watermarkTitle": "Source"
},
"outputTitle": "Watermarked Images",
"shortDescription": "Add text watermarks to images",
"title": "Watermark Images",
"toolInfo": {
"longDescription": "An image watermark tool lets you add customizable text watermarks to one or more images. You can automatically use each image's filename as the watermark or apply the same custom text to every image. Watermarks help protect your work, identify ownership, promote your brand, and organize image collections. Customize the font size, opacity, color, and position while preserving the original image quality.",
"title": "What is Watermark Images ?"
}
}
}
+55 -20
View File
@@ -6,8 +6,13 @@
},
"escapeJson": {
"description": "Escape special characters in JSON strings. Convert JSON data to properly escaped format for safe transmission or storage.",
"inputTitle": "Input JSON",
"longDescription": "JSON escaping converts special characters inside JSON data into escaped sequences that can be safely stored, transmitted, or embedded inside another JSON document or programming language string. This tool escapes characters such as double quotes, backslashes, and line breaks while preserving the original data structure. Use it when you need to transform JSON into a string-safe representation for APIs, configuration files, databases, or source code.",
"resultTitle": "Escaped JSON String",
"shortDescription": "Escape special characters in JSON",
"title": "Escape JSON"
"title": "Escape JSON",
"wrapOutputDescription": "Add double quotes around the escaped JSON output to create a JSON string.",
"wrapOutputTitle": "Wrap Output In Quotes"
},
"jsonToCsv": {
"delimiterOption": "Delimiter",
@@ -36,6 +41,20 @@
},
"jsonToXml": {
"description": "Convert JSON data to XML format. Transform structured JSON objects into well-formed XML documents.",
"inputTitle": "Input JSON",
"options": {
"addMetaTagDesc": "Add a meta tag at the beginning of the XML output",
"addMetaTagTitle": "Add an XML Meta Tag",
"indentationTitle": "Indentation Options",
"metaInfoTitle": "XML Meta Information",
"noIdentDesc": "Output XML without any indentation.",
"noIdentTitle": "No indentation",
"useSpaceDesc": "Use spaces to visualize the hierarchical structure of XML.",
"useSpaceTitle": "Use Spaces for indentation",
"useTabDesc": "Use tabs to visualize the hierarchical structure of XML.",
"useTabTitle": "Use Tabs for indentation"
},
"outputTitle": "Output XML",
"shortDescription": "Convert JSON to XML format",
"title": "JSON to XML"
},
@@ -66,10 +85,44 @@
"useTabs": "Use Tabs",
"useTabsDescription": "Indent output with tabs."
},
"sortJson": {
"description": "Sort JSON data by organizing arrays of objects based on a selected key in ascending or descending order, or alphabetically sort the keys of a JSON object.",
"inputTitle": "Input JSON",
"longDescription": "This tool allows you to easily sort JSON data in a structured and predictable way. You can sort an array of objects by any key, choosing either ascending or descending order, which is useful for organizing data such as lists of users, products, or records. Alternatively, you can sort the keys of a JSON object alphabetically to improve readability and consistency. The tool supports flexible sorting modes and handles common JSON structures, making it ideal for developers, data analysts, and anyone working with JSON data who needs clean, ordered output.",
"options": {
"ascending": "Ascending (A → Z)",
"descending": "Descending (Z → A)",
"keyDescription": "Select the key to sort by",
"modeDescription": "Choose whether to sort array items by a key's value, or sort the keys of an object alphabetically",
"orderDescription": "Choose the sort order",
"sortByKey": "Sort object keys alphabetically",
"sortByValue": "Sort array by key value",
"title": "Sorting Options"
},
"resultTitle": "Sorted JSON",
"shortDescription": "Sort JSON arrays by value or object keys alphabetically",
"title": "Sort JSON"
},
"stringify": {
"description": "Convert JavaScript objects to JSON string format. Serialize data structures into JSON strings for storage or transmission.",
"inputTitle": "JavaScript Object/Array",
"options": {
"escapeHtmlDesc": "Convert HTML special characters to their entity references",
"escapeHtmlTitle": "Escape HTML Characters",
"indentationTitle": "Indentation Options",
"optionsTitle": "Options",
"useSpaceDesc": "Indent output with spaces",
"useSpaceTitle": "Use Spaces",
"useTabDesc": "Indent output with tabs",
"useTabTitle": "Use Tabs for indentation"
},
"resultTitle": "JSON String",
"shortDescription": "Convert objects to JSON string",
"title": "Stringify JSON"
"title": "Stringify JSON",
"toolInfo": {
"description": "JSON Stringify is a tool that converts JavaScript objects and arrays into their JSON string representation. It properly formats the output with customizable indentation and offers the option to escape HTML special characters, making it safe for web usage. This tool is particularly useful when you need to serialize data structures for storage or transmission, or when you need to prepare JSON data for HTML embedding.",
"title": "What Is JSON Stringify ?"
}
},
"tsvToJson": {
"description": "Convert TSV (Tab-Separated Values) data to JSON format. Transform tabular data into structured JSON objects.",
@@ -88,23 +141,5 @@
"title": "What is JSON Validation?"
},
"validJson": "✅ Valid JSON"
},
"sortJson": {
"title": "Sort JSON",
"description": "Sort JSON data by organizing arrays of objects based on a selected key in ascending or descending order, or alphabetically sort the keys of a JSON object.",
"shortDescription": "Sort JSON arrays by value or object keys alphabetically",
"longDescription": "This tool allows you to easily sort JSON data in a structured and predictable way. You can sort an array of objects by any key, choosing either ascending or descending order, which is useful for organizing data such as lists of users, products, or records. Alternatively, you can sort the keys of a JSON object alphabetically to improve readability and consistency. The tool supports flexible sorting modes and handles common JSON structures, making it ideal for developers, data analysts, and anyone working with JSON data who needs clean, ordered output.",
"inputTitle": "Input JSON",
"resultTitle": "Sorted JSON",
"options": {
"title": "Sorting Options",
"sortByKey": "Sort object keys alphabetically",
"sortByValue": "Sort array by key value",
"ascending": "Ascending (A → Z)",
"descending": "Descending (Z → A)",
"modeDescription": "Choose whether to sort array items by a key's value, or sort the keys of an object alphabetically",
"keyDescription": "Select the key to sort by",
"orderDescription": "Choose the sort order"
}
}
}
+18
View File
@@ -44,6 +44,24 @@
"title": "Generate numbers"
}
},
"numberToWords": {
"description": "Convert numbers into words in your selected language. The output automatically matches your current app language.",
"inputTitle": "Numbers",
"options": {
"title": "Options",
"uppercase": "Uppercase",
"uppercaseDescription": "Display the converted words in uppercase, commonly used for cheques, invoices, and legal documents.",
"useAnd": "Include \"and\"",
"useAndDescription": "Insert \"and\" where appropriate (for example, \"One Hundred and Twenty\" in English)."
},
"outputTitle": "Words",
"shortDescription": "Convert numbers to words",
"title": "Number to Words",
"toolInfo": {
"description": "This tool converts numeric values into their written form. The output automatically follows your current app language, so no additional configuration is required. Enter one number per line to convert multiple values independently.",
"title": "What Is a Number to Words Converter?"
}
},
"ohmsLaw": {
"description": "Calculates voltage, current and resistance",
"longDescription": "This calculator applies Ohm's Law (V = I × R) to determine any of the three electrical parameters when the other two are known. Ohm's Law is a fundamental principle in electrical engineering that describes the relationship between voltage (V), current (I), and resistance (R). This tool is essential for electronics hobbyists, electrical engineers, and students working with circuits to quickly solve for unknown values in their electrical designs.",
+8 -8
View File
@@ -43,6 +43,14 @@
"shortDescription": "Edit PDFs with advanced annotation, signing and editing tools",
"title": "PDF Editor"
},
"extractImagesFromPdf": {
"description": "Extract all embedded images from your PDF file in their original quality.",
"inputTitle": "Input PDF",
"longDescription": "Upload a PDF document to automatically extract all embedded images. The tool preserves the original image quality and supports common formats such as JPG, PNG, and more. Ideal for recovering illustrations, photos, scanned pages, or assets from PDF documents.",
"resultTitle": "Extracted Images",
"shortDescription": "Extract images from a PDF file.",
"title": "Extract Images from PDF"
},
"merge": {
"inputTitle": "Input PDF",
"loadingText": "Extracting pages",
@@ -127,13 +135,5 @@
"description": "This tool allows you to extract specific pages from a PDF document. You can specify individual pages or ranges of pages to extract.",
"title": "Split PDF"
}
},
"extractImagesFromPdf": {
"description": "Extract all embedded images from your PDF file in their original quality.",
"shortDescription": "Extract images from a PDF file.",
"longDescription": "Upload a PDF document to automatically extract all embedded images. The tool preserves the original image quality and supports common formats such as JPG, PNG, and more. Ideal for recovering illustrations, photos, scanned pages, or assets from PDF documents.",
"title": "Extract Images from PDF",
"inputTitle": "Input PDF",
"resultTitle": "Extracted Images"
}
}
+55 -15
View File
@@ -23,6 +23,16 @@
"shortDescription": "Create text that reads the same forward and backward",
"title": "Create palindrome"
},
"emailExtractor": {
"description": "Extract all email addresses from any text. Simply paste your text and instantly get a clean list of the email addresses found.",
"options": {
"title": "Extraction options",
"uniqueDesc": "Keep only unique email addresses in the results",
"uniqueTitle": "Remove duplicates"
},
"shortDescription": "Extract email addresses from text",
"title": "Email Extractor"
},
"extractSubstring": {
"description": "World's simplest browser-based utility for extracting substrings from text. Input your text and specify start and end positions to extract the desired portion. Perfect for data processing, text analysis, or extracting specific content from larger text blocks.",
"shortDescription": "Extract a portion of text between specified positions",
@@ -84,7 +94,7 @@
"includeNumbers": "Include numbers (0-9)",
"includeSymbols": "Include special characters",
"includeUppercase": "Include uppercase letters (A-Z)",
"lengthDesc": "Length of the password",
"lengthDesc": "Length of the password (>3 & <257)",
"lengthPlaceholder": "e.g. 12",
"optionsTitle": "Password Options",
"resultTitle": "Generated Password",
@@ -235,6 +245,20 @@
"wordFrequencyAnalysis": "Word Frequency Analysis",
"wordFrequencyAnalysisDescription": "Count how often each word appears in the text"
},
"textCompare": {
"description": "Analyze two text blocks to highlight differences, including additions, deletions, and changes.",
"inputTitle": "Input Text",
"longDescription": "This tool helps you quickly identify differences between two versions of a text. It highlights inserted, removed, and modified content, making it ideal for reviewing edits, tracking changes, or comparing documents. You can choose the level of precision to detect differences at the word or character level depending on your needs.",
"options": {
"charLevel": "Character level",
"levelDesc": "Choose how detailed the comparison should be. Word level highlights changes by words, while character level detects more granular differences.",
"title": "Comparison Settings",
"wordLevel": "Word level"
},
"resultTitle": "Highlighted differences",
"shortDescription": "Compare two texts and spot differences instantly",
"title": "Compare Texts"
},
"textReplacer": {
"description": "Replace text patterns with new content.",
"findPatternInText": "Find This Pattern in Text",
@@ -322,6 +346,36 @@
"title": "String URL decoder"
}
},
"urlEditor": {
"addParameter": "Add Parameter",
"credentialsNotSupported": "URLs with username or password are not supported.",
"delete": "Delete",
"deleteParamAriaLabel": "Delete parameter row {{row}}",
"generatedUrl": "Generated URL",
"hash": "Fragment",
"hashPlaceholder": "section",
"host": "Host",
"hostPlaceholder": "example.com",
"inputTitle": "Enter URL",
"invalidUrl": "Invalid URL",
"key": "Key",
"noParameters": "No query parameters",
"paramKeyAriaLabel": "Parameter key, row {{row}}",
"paramValueAriaLabel": "Parameter value, row {{row}}",
"parseButton": "Parse URL",
"path": "Path",
"pathPlaceholder": "search",
"protocol": "Protocol",
"queryParameters": "Query Parameters",
"toolInfo": {
"description": "Paste a URL and click \"Parse URL\" to inspect and edit its components.",
"longDescription": "This tool parses a URL into its components and lets you edit the protocol, host, path, fragment, and query parameters visually. After changing the input URL, click \"Parse URL\" again to refresh the parsed details. You can add, remove, or modify any part and copy the generated URL. No server requests.",
"shortDescription": "Inspect and edit URL components and query parameters.",
"title": "URL Editor"
},
"urlDetails": "URL Details",
"value": "Value"
},
"urlEncode": {
"encodingOption": {
"nonSpecialCharDescription": "If selected, then all characters in the input string will be converted to URL-encoding (not just special).",
@@ -336,19 +390,5 @@
"shortDescription": "Quickly URL-escape a string.",
"title": "String URL encoder"
}
},
"textCompare": {
"title": "Compare Texts",
"description": "Analyze two text blocks to highlight differences, including additions, deletions, and changes.",
"shortDescription": "Compare two texts and spot differences instantly",
"longDescription": "This tool helps you quickly identify differences between two versions of a text. It highlights inserted, removed, and modified content, making it ideal for reviewing edits, tracking changes, or comparing documents. You can choose the level of precision to detect differences at the word or character level depending on your needs.",
"inputTitle": "Input Text",
"resultTitle": "Highlighted differences",
"options": {
"title": "Comparison Settings",
"wordLevel": "Word level",
"charLevel": "Character level",
"levelDesc": "Choose how detailed the comparison should be. Word level highlights changes by words, while character level detects more granular differences."
}
}
}
+105 -50
View File
@@ -12,6 +12,19 @@
"title": "What is a Leap Year?"
}
},
"convertDateToUnix": {
"description": "Convert a human-readable date to a Unix Timestamp.",
"options": "Options",
"outputOptions": "Output Options",
"shortDescription": "Convert date to Unix timestamp.",
"title": "Convert Date to Unix",
"toolInfo": {
"description": "This tool converts a human-readable date format (e.g., YYYY-MM-DD HH:MM:SS) into a Unix Timestamp. The user can choose to specify a given UTC offset (e.g., YYYY-MM-DD HH:MM:SS +XX:XX) or use the local timezone. If the user doesn't provide either an offset or choose to use the local timezone, the result is given with an offset of +00:00. ",
"title": "Convert Date to Unix"
},
"useLocalTime": "Use Local Time",
"useLocalTimeDescription": "The input time and date is processed as your browser's time zone. Additional specifications will be ignored."
},
"convertDaysToHours": {
"addHoursName": "Add Hours Name",
"addHoursNameDescription": "Append the string hours to output values",
@@ -67,26 +80,108 @@
"convertUnixToDate": {
"addUtcLabel": "Add 'UTC' suffix",
"addUtcLabelDescription": "Append 'UTC' after the converted date (available only in UTC mode)",
"date-to-unix": "Date → Unix",
"description": "Convert Unix timestamps to readable dates and convert dates back to Unix timestamps.",
"optionsTitle": "Conversion Mode",
"shortDescription": "Convert Unix timestamps and dates in both directions.",
"title": "Convert Unix ↔ Date",
"toolInfo": {
"title": "Convert Unix ↔ Date",
"description": "This tool converts Unix timestamps (in seconds) into human-readable date formats such as YYYY-MM-DD HH:MM:SS, and also converts formatted dates back into Unix timestamps. You can choose UTC output, local timezone output, or provide a custom UTC offset (for example: YYYY-MM-DD HH:MM:SS +XX:XX). If no offset is provided and local timezone is not selected, UTC (+00:00) is used by default."
"description": "This tool converts Unix timestamps (in seconds) into human-readable date formats such as YYYY-MM-DD HH:MM:SS, and also converts formatted dates back into Unix timestamps. You can choose UTC output, local timezone output, or provide a custom UTC offset (for example: YYYY-MM-DD HH:MM:SS +XX:XX). If no offset is provided and local timezone is not selected, UTC (+00:00) is used by default.",
"title": "Convert Unix ↔ Date"
},
"useLocalTime": "Use Local Time",
"useUTC": "Use UTC",
"useLocalTimeDescription": "Display the converted date in your local timezone instead of UTC",
"tzOptions": "Timezone Options",
"optionsTitle": "Conversion Mode",
"date-to-unix": "Date → Unix",
"unix-to-date": "Unix → Date"
"unix-to-date": "Unix → Date",
"useLocalTime": "Use Local Time",
"useLocalTimeDescription": "Display the converted date in your local timezone instead of UTC",
"useUTC": "Use UTC"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "Parse and explain cron expressions in plain English. Instantly understand what any cron schedule does, validate syntax, and process multiple expressions at once.",
"longDescription": "Crontab Guru is a cron expression parser and validator that translates complex cron syntax into plain, human-readable descriptions. Whether you're scheduling automated backups, system maintenance tasks, or CI/CD pipelines, this tool helps you understand exactly when your jobs will run. Supports standard 5-field cron expressions, validates syntax in real time, and processes multiple expressions at once — one per line. Available in English, French, Spanish, German, Japanese, Chinese, Portuguese, Dutch, and Russian.",
"shortDescription": "Parse and explain cron expressions in plain English",
"longDescription": "Crontab Guru is a cron expression parser and validator that translates complex cron syntax into plain, human-readable descriptions. Whether you're scheduling automated backups, system maintenance tasks, or CI/CD pipelines, this tool helps you understand exactly when your jobs will run. Supports standard 5-field cron expressions, validates syntax in real time, and processes multiple expressions at once — one per line. Available in English, French, Spanish, German, Japanese, Chinese, Portuguese, Dutch, and Russian."
"title": "Crontab Guru"
},
"dateWeekdayCalculator": {
"dateSelection": "Date",
"dayDescription": "Day",
"description": "Find every year in a range where a month and day fall on a chosen weekday.",
"endYearDescription": "End year",
"errors": {
"emptyInput": "All fields are required",
"fallback": "Invalid input",
"invalidDate": "Invalid day for the selected month",
"invalidDay": "Day must be between 1 and 31",
"invalidMonth": "Month must be between 1 and 12",
"invalidWeekday": "Invalid weekday",
"invalidYear": "Years must be integers between 1 and 9999",
"invalidYearRange": "Start year must be less than or equal to end year"
},
"foundMatches_one": "Found {{count}} matching year",
"foundMatches_other": "Found {{count}} matching years",
"longDescription": "Select a month, day, and target weekday, then choose a start and end year. The calculator scans each year in the range and lists every match as a full formatted date. February 29 is supported: non-leap years are skipped automatically. Invalid dates (such as April 31) and invalid year ranges show clear error messages.",
"monthDescription": "Month",
"months": [
null,
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
],
"noMatches": "No matching years found in the selected range.",
"resultTitle": "Matching years",
"shortDescription": "Find years when a date falls on a weekday",
"startYearDescription": "Start year",
"title": "Date Weekday Calculator",
"toolInfo": {
"title": "What is a {{title}}?"
},
"weekdayDescription": "Target weekday",
"weekdaySelection": "Weekday",
"weekdays": {
"friday": "Friday",
"monday": "Monday",
"saturday": "Saturday",
"sunday": "Sunday",
"thursday": "Thursday",
"tuesday": "Tuesday",
"wednesday": "Wednesday"
},
"yearRange": "Year range"
},
"discordTimestamp": {
"description": "Convert dates and times into Discord's special timestamp format that automatically adapts to each user's local timezone and language",
"formats": {
"description": "Choose how the timestamp will appear in Discord — hover over each option to see an example",
"long_date": "Long Date (ex: 1 January 2025)",
"long_datetime": "Long Date & Time (ex: Monday, 1 January 2025 14:30)",
"long_time": "Long Time (ex: 14:30:00)",
"relative": "Relative (ex: 2 hours ago)",
"short_date": "Short Date (ex: 01/01/2025)",
"short_datetime": "Short Date & Time (ex: 1 January 2025 14:30)",
"short_time": "Short Time (ex: 14:30)",
"title": "Timestamp Format"
},
"inputTitle": "Input Datetimes",
"name": "Discord Timestamp Generator",
"outputTitle": "Discord Timestamps",
"shortDescription": "Generate Discord timestamps from dates",
"toolInfo": {
"description": "Discord timestamps are a special syntax that displays dates and times dynamically. Instead of showing a fixed time, they automatically convert to each viewer's local timezone and language — so everyone sees the correct time for their location. Simply enter one datetime per line, choose a format, and paste the results directly into Discord. The tool processes each line independently — blank lines are preserved in the output, invalid lines are flagged with ❌, and valid datetimes are converted instantly. Enable UTC mode to ensure consistent results regardless of your local timezone.",
"title": "What is a Discord Timestamp?"
},
"utc": {
"description": "Treat input datetimes as UTC. Disable to use your local timezone instead",
"label": "Enforce UTC",
"title": "Input Options"
}
},
"timeBetweenDates": {
"description": "Calculate the time difference between two dates. Get the exact duration in days, hours, minutes, and seconds.",
@@ -123,45 +218,5 @@
"zeroPaddingDescription": "Make all time components always be two digits wide.",
"zeroPrintDescription": "Display the dropped parts as zero values \"00\".",
"zeroPrintTruncatedParts": "Zero-print Truncated Parts"
},
"discordTimestamp": {
"name": "Discord Timestamp Generator",
"description": "Convert dates and times into Discord's special timestamp format that automatically adapts to each user's local timezone and language",
"shortDescription": "Generate Discord timestamps from dates",
"inputTitle": "Input Datetimes",
"outputTitle": "Discord Timestamps",
"formats": {
"title": "Timestamp Format",
"description": "Choose how the timestamp will appear in Discord — hover over each option to see an example",
"short_time": "Short Time (ex: 14:30)",
"long_time": "Long Time (ex: 14:30:00)",
"short_date": "Short Date (ex: 01/01/2025)",
"long_date": "Long Date (ex: 1 January 2025)",
"short_datetime": "Short Date & Time (ex: 1 January 2025 14:30)",
"long_datetime": "Long Date & Time (ex: Monday, 1 January 2025 14:30)",
"relative": "Relative (ex: 2 hours ago)"
},
"utc": {
"title": "Input Options",
"label": "Enforce UTC",
"description": "Treat input datetimes as UTC. Disable to use your local timezone instead"
},
"toolInfo": {
"title": "What is a Discord Timestamp?",
"description": "Discord timestamps are a special syntax that displays dates and times dynamically. Instead of showing a fixed time, they automatically convert to each viewer's local timezone and language — so everyone sees the correct time for their location. Simply enter one datetime per line, choose a format, and paste the results directly into Discord. The tool processes each line independently — blank lines are preserved in the output, invalid lines are flagged with ❌, and valid datetimes are converted instantly. Enable UTC mode to ensure consistent results regardless of your local timezone."
}
},
"convertDateToUnix": {
"description": "Convert a human-readable date to a Unix Timestamp.",
"outputOptions": "Output Options",
"shortDescription": "Convert date to Unix timestamp.",
"title": "Convert Date to Unix",
"toolInfo": {
"description": "This tool converts a human-readable date format (e.g., YYYY-MM-DD HH:MM:SS) into a Unix Timestamp. The user can choose to specify a given UTC offset (e.g., YYYY-MM-DD HH:MM:SS +XX:XX) or use the local timezone. If the user doesn't provide either an offset or choose to use the local timezone, the result is given with an offset of +00:00. ",
"title": "Convert Date to Unix"
},
"useLocalTime": "Use Local Time",
"useLocalTimeDescription": "The input time and date is processed as your browser's time zone. Additional specifications will be ignored.",
"options": "Options"
}
}
+4 -4
View File
@@ -107,8 +107,8 @@
"trimVideo": "Trim video"
},
"search": {
"placeholder": "Search all tools",
"noResult": "No results found, Try adjusting your search or filter criteria"
"noResult": "No results found, Try adjusting your search or filter criteria",
"placeholder": "Search all tools"
},
"title": "Get Things Done Quickly with"
},
@@ -241,9 +241,9 @@
"result": "Result"
},
"toolMultipleInput": {
"deleteFile": "Delete file",
"inputTitle": "Input {{type}}",
"noFilesSelected": "No files selected",
"deleteFile": "Delete file"
"noFilesSelected": "No files selected"
},
"toolOptions": {
"title": "Tool options"
+12 -12
View File
@@ -29,15 +29,15 @@
"volumeDesc": "Volume level for the new audio track."
},
"changeSpeed": {
"defaultMultiplier": "Default multiplier: 2 means 2x faster",
"description": "Change the playback speed of video files. Speed up or slow down videos while maintaining audio synchronization. Supports various speed multipliers and common video formats.",
"inputTitle": "Input Video",
"newVideoSpeed": "New Video Speed",
"options": "Options",
"resultTitle": "Edited Video",
"settingSpeed": "Setting Speed",
"shortDescription": "Change video playback speed",
"speedLabel": "Speed : x",
"title": "Change Video Speed",
"toolInfo": {
"longDescription": "{{title}} allows you to adjust the playback speed of your videos directly in your browser. Speed up videos for fast-motion effects or slow them down for slow-motion playback while keeping the audio synchronized. Choose a speed multiplier between 0.25x and 4x to customize your video, then process it easily without installing additional software. This tool supports common video formats and preserves the original video quality as much as possible during processing.",
"title": "What is a {{title}}?"
}
},
@@ -83,7 +83,6 @@
},
"flip": {
"description": "Flip video files horizontally or vertically. Mirror videos for special effects or correct orientation issues.",
"flippingVideo": "Flipping Video",
"horizontalLabel": "Horizontal (Mirror)",
"inputTitle": "Input Video",
"orientation": "Orientation",
@@ -95,6 +94,12 @@
"gif": {
"changeSpeed": {
"description": "Change the playback speed of GIF animations. Speed up or slow down GIFs while maintaining smooth animation.",
"inputTitle": "Input GIF",
"options": {
"speedLabel": "Speed : x",
"title": "Options"
},
"resultTitle": "output GIF",
"shortDescription": "Change GIF animation speed",
"title": "Change GIF Speed"
},
@@ -112,7 +117,6 @@
"loop": {
"description": "Create a looping video by repeating the original video multiple times.",
"inputTitle": "Input Video",
"loopingVideo": "Looping Video",
"loops": "Loops",
"numberOfLoops": "Number of Loops",
"resultTitle": "Looped Video",
@@ -120,12 +124,14 @@
"title": "Loop Video",
"toolInfo": {
"description": "This tool allows you to create a looping video by repeating the original video multiple times. You can specify how many times the video should loop.",
"title": "What is a {{title}}?"
"title": "What is {{title}}?"
}
},
"mergeVideo": {
"description": "Combine multiple video files into one continuous video.",
"inputTitle": "Input Videos",
"longDescription": "This tool allows you to merge or append multiple video files into a single continuous video. Simply upload your video files, arrange them in the desired order, and merge them into one file for easy sharing or editing.",
"resultTitle": "Merged Video",
"shortDescription": "Append and merge videos easily.",
"title": "Merge videos"
},
@@ -136,7 +142,6 @@
"description": "Rotate video files by 90, 180, or 270 degrees. Correct video orientation or create special effects with precise rotation control.",
"inputTitle": "Input Video",
"resultTitle": "Rotated Video",
"rotatingVideo": "Rotating Video",
"rotation": "Rotation",
"shortDescription": "Rotate video by specified degrees",
"title": "Rotate Video"
@@ -150,10 +155,5 @@
"startTime": "Start Time",
"timestamps": "Timestamps",
"title": "Trim Video"
},
"videoToGif": {
"description": "Convert video files to animated GIF format. Extract specific time ranges and create shareable animated images.",
"shortDescription": "Convert video to animated GIF",
"title": "Video to GIF"
}
}
+2 -7
View File
@@ -8,10 +8,7 @@
"settingSpeed": "Ajuste de velocidad",
"shortDescription": "Cambiar la velocidad de los archivos de audio",
"speedDescription": "Multiplicador predeterminado: 2 significa 2 veces más rápido",
"title": "Cambiar la velocidad del audio",
"toolInfo": {
"title": "Qué es {{title}}?"
}
"title": "Cambiar la velocidad del audio"
},
"extractAudio": {
"description": "Extraer pistas de audio de archivos de vídeo.",
@@ -31,7 +28,6 @@
"description": "Combine varios archivos de audio en un solo archivo de audio concatenándolos en secuencia.",
"inputTitle": "Archivos de audio de entrada",
"longDescription": "Esta herramienta te permite fusionar varios archivos de audio en uno solo concatenándolos en el orden en que los subes. Es perfecta para combinar segmentos de podcast, pistas de música o cualquier archivo de audio que necesite unirse. Admite varios formatos de audio, como MP3, AAC y WAV.",
"mergingAudio": "Fusión de audio",
"outputFormat": "Formato de salida",
"resultTitle": "Audio fusionado",
"shortDescription": "Fusionar varios archivos de audio en uno (MP3, AAC, WAV).",
@@ -55,7 +51,6 @@
"title": "Recortar audio",
"toolInfo": {
"title": "Qué es {{title}}?"
},
"trimmingAudio": "Recorte de audio"
}
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
"includeNumbers": "Incluir números (0-9)",
"includeSymbols": "Incluir caracteres especiales",
"includeUppercase": "Incluir letras mayúsculas (A-Z)",
"lengthDesc": "Longitud de la contraseña",
"lengthDesc": "Longitud de la contraseña (>3 & <257)",
"lengthPlaceholder": "p. ej. 12",
"optionsTitle": "Opciones de contraseña",
"resultTitle": "Contraseña generada",
+2 -3
View File
@@ -64,7 +64,6 @@
"date-to-unix": "Fecha → Unix",
"description": "Convierte marcas de tiempo de Unix en fechas legibles y convierte fechas formateadas nuevamente en marcas de tiempo de Unix (en ambas direcciones).",
"optionsTitle": "Modo de conversión",
"outputOptions": "Opciones de salida",
"shortDescription": "Convierte marcas de tiempo de Unix y fechas en ambas direcciones.",
"title": "Convertir Unix ↔ Fecha",
"toolInfo": {
@@ -78,10 +77,10 @@
"useUTC": "Usar UTC"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "Analiza y explica expresiones cron en español. Entiende al instante qué hace cualquier programación cron, valida la sintaxis y procesa múltiples expresiones a la vez.",
"longDescription": "Crontab Guru es un analizador y validador de expresiones cron que traduce la compleja sintaxis cron en descripciones claras y legibles. Ya sea que estés programando copias de seguridad automáticas, tareas de mantenimiento del sistema o pipelines CI/CD, esta herramienta te ayuda a entender exactamente cuándo se ejecutarán tus tareas. Admite expresiones cron estándar de 5 campos, valida la sintaxis en tiempo real y procesa múltiples expresiones a la vez — una por línea. Disponible en inglés, francés, español, alemán, japonés, chino, portugués, neerlandés y ruso.",
"shortDescription": "Analiza y explica expresiones cron en lenguaje claro",
"longDescription": "Crontab Guru es un analizador y validador de expresiones cron que traduce la compleja sintaxis cron en descripciones claras y legibles. Ya sea que estés programando copias de seguridad automáticas, tareas de mantenimiento del sistema o pipelines CI/CD, esta herramienta te ayuda a entender exactamente cuándo se ejecutarán tus tareas. Admite expresiones cron estándar de 5 campos, valida la sintaxis en tiempo real y procesa múltiples expresiones a la vez — una por línea. Disponible en inglés, francés, español, alemán, japonés, chino, portugués, neerlandés y ruso."
"title": "Crontab Guru"
},
"timeBetweenDates": {
"description": "Calcula la diferencia horaria entre dos fechas. Obtén la duración exacta en días, horas, minutos y segundos.",
+4 -4
View File
@@ -95,8 +95,8 @@
"trimVideo": "Recortar vídeo"
},
"search": {
"placeholder": "Buscar todas las herramientas",
"noResult": "No se encontraron resultados, intenta ajustar tu búsqueda o los criterios de filtro"
"noResult": "No se encontraron resultados, intenta ajustar tu búsqueda o los criterios de filtro",
"placeholder": "Buscar todas las herramientas"
},
"title": "Haga las cosas rápidamente con"
},
@@ -229,9 +229,9 @@
"result": "Resultado"
},
"toolMultipleInput": {
"deleteFile": "Eliminar archivo",
"inputTitle": "Entrada {{type}}",
"noFilesSelected": "Ningún archivo seleccionado",
"deleteFile": "Eliminar archivo"
"noFilesSelected": "Ningún archivo seleccionado"
},
"toolOptions": {
"title": "Opciones de herramientas"
-11
View File
@@ -1,11 +1,8 @@
{
"changeSpeed": {
"defaultMultiplier": "Multiplicador predeterminado: 2 significa 2 veces más rápido",
"description": "Cambia la velocidad de reproducción de tus archivos de video. Acelera o ralentiza los videos manteniendo la sincronización del audio. Compatible con varios multiplicadores de velocidad y formatos de video comunes.",
"inputTitle": "Vídeo de entrada",
"newVideoSpeed": "Nueva velocidad de video",
"resultTitle": "Vídeo editado",
"settingSpeed": "Ajuste de velocidad",
"shortDescription": "Cambiar la velocidad de reproducción del vídeo",
"title": "Cambiar la velocidad del video",
"toolInfo": {
@@ -54,7 +51,6 @@
},
"flip": {
"description": "Voltee archivos de video horizontal o verticalmente. Refleje videos para efectos especiales o corregir problemas de orientación.",
"flippingVideo": "Vídeo invertido",
"horizontalLabel": "Horizontal (Espejo)",
"inputTitle": "Vídeo de entrada",
"orientation": "Orientación",
@@ -73,7 +69,6 @@
"loop": {
"description": "Crea un vídeo en bucle repitiendo el vídeo original varias veces.",
"inputTitle": "Vídeo de entrada",
"loopingVideo": "Vídeo en bucle",
"loops": "Bucles",
"numberOfLoops": "Número de bucles",
"resultTitle": "Vídeo en bucle",
@@ -97,7 +92,6 @@
"description": "Gira archivos de vídeo 90, 180 o 270 grados. Corrige la orientación del vídeo o crea efectos especiales con un control de rotación preciso.",
"inputTitle": "Vídeo de entrada",
"resultTitle": "Vídeo rotado",
"rotatingVideo": "Vídeo giratorio",
"rotation": "Rotación",
"shortDescription": "Girar el vídeo en grados específicos",
"title": "Girar vídeo"
@@ -111,10 +105,5 @@
"startTime": "Hora de inicio",
"timestamps": "Marcas de tiempo",
"title": "Recortar vídeo"
},
"videoToGif": {
"description": "Convierte archivos de vídeo a formato GIF animado. Extrae intervalos de tiempo específicos y crea imágenes animadas para compartir.",
"shortDescription": "Convertir vídeo a GIF animado",
"title": "Vídeo a GIF"
}
}
+2 -7
View File
@@ -8,10 +8,7 @@
"settingSpeed": "Réglage de la vitesse",
"shortDescription": "Modifier la vitesse des fichiers audio",
"speedDescription": "Multiplicateur par défaut : 2 signifie 2x plus rapide",
"title": "Changer la vitesse audio",
"toolInfo": {
"title": "Qu'est-ce que {{title}}?"
}
"title": "Changer la vitesse audio"
},
"extractAudio": {
"description": "Extraire la piste audio des fichiers vidéo.",
@@ -31,7 +28,6 @@
"description": "Combinez plusieurs fichiers audio en un seul fichier audio en les concaténant en séquence.",
"inputTitle": "Fichiers audio d'entrée",
"longDescription": "Cet outil vous permet de fusionner plusieurs fichiers audio en un seul fichier en les concaténant dans l'ordre de leur mise en ligne. Idéal pour combiner des segments de podcast, des morceaux de musique ou tout autre fichier audio à assembler. Compatible avec différents formats audio, dont MP3, AAC et WAV.",
"mergingAudio": "Fusion audio",
"outputFormat": "Format de sortie",
"resultTitle": "Audio fusionné",
"shortDescription": "Fusionnez plusieurs fichiers audio en un seul (MP3, AAC, WAV).",
@@ -55,7 +51,6 @@
"title": "Couper le son",
"toolInfo": {
"title": "Qu'est-ce que {{title}}?"
},
"trimmingAudio": "Découpage audio"
}
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
"includeNumbers": "Inclure des chiffres (0-9)",
"includeSymbols": "Inclure des caractères spéciaux",
"includeUppercase": "Inclure des lettres majuscules (A-Z)",
"lengthDesc": "Longueur du mot de passe",
"lengthDesc": "Longueur du mot de passe (>3 & <257)",
"lengthPlaceholder": "par exemple 12",
"optionsTitle": "Options de mot de passe",
"resultTitle": "Mot de passe généré",
+2 -3
View File
@@ -64,7 +64,6 @@
"date-to-unix": "Date → Unix",
"description": "Convertir les horodatages Unix en dates lisibles et reconvertir les dates formatées en horodatages Unix (dans les deux directions).",
"optionsTitle": "Mode de conversion",
"outputOptions": "Options de sortie",
"shortDescription": "Convertir les horodatages Unix et les dates dans les deux directions.",
"title": "Convertir Unix ↔ Date",
"toolInfo": {
@@ -78,10 +77,10 @@
"useUTC": "Utiliser l'UTC"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "Analysez et expliquez les expressions cron en français. Comprenez instantanément ce que fait un planning cron, validez la syntaxe et traitez plusieurs expressions à la fois.",
"longDescription": "Crontab Guru est un analyseur et validateur d'expressions cron qui traduit la syntaxe complexe des crons en descriptions claires et lisibles. Que vous planifiiez des sauvegardes automatiques, des tâches de maintenance système ou des pipelines CI/CD, cet outil vous aide à comprendre exactement quand vos tâches s'exécuteront. Prend en charge les expressions cron standard à 5 champs, valide la syntaxe en temps réel et traite plusieurs expressions à la fois — une par ligne. Disponible en anglais, français, espagnol, allemand, japonais, chinois, portugais, néerlandais et russe.",
"shortDescription": "Analysez et expliquez les expressions cron en clair",
"longDescription": "Crontab Guru est un analyseur et validateur d'expressions cron qui traduit la syntaxe complexe des crons en descriptions claires et lisibles. Que vous planifiiez des sauvegardes automatiques, des tâches de maintenance système ou des pipelines CI/CD, cet outil vous aide à comprendre exactement quand vos tâches s'exécuteront. Prend en charge les expressions cron standard à 5 champs, valide la syntaxe en temps réel et traite plusieurs expressions à la fois — une par ligne. Disponible en anglais, français, espagnol, allemand, japonais, chinois, portugais, néerlandais et russe."
"title": "Crontab Guru"
},
"timeBetweenDates": {
"description": "Calculez le décalage horaire entre deux dates. Obtenez la durée exacte en jours, heures, minutes et secondes.",
+4 -4
View File
@@ -95,8 +95,8 @@
"trimVideo": "Découper la vidéo"
},
"search": {
"placeholder": "Rechercher tous les outils",
"noResult": "Aucun résultat trouvé, essayez d'ajuster votre recherche ou vos critères de filtre"
"noResult": "Aucun résultat trouvé, essayez d'ajuster votre recherche ou vos critères de filtre",
"placeholder": "Rechercher tous les outils"
},
"title": "Faites avancer les choses rapidement avec"
},
@@ -229,9 +229,9 @@
"result": "Résultat"
},
"toolMultipleInput": {
"deleteFile": "Supprimer le fichier",
"inputTitle": "Entrée {{type}}",
"noFilesSelected": "Aucun fichier sélectionné",
"deleteFile": "Supprimer le fichier"
"noFilesSelected": "Aucun fichier sélectionné"
},
"toolOptions": {
"title": "Options d'outils"
-11
View File
@@ -1,11 +1,8 @@
{
"changeSpeed": {
"defaultMultiplier": "Multiplicateur par défaut : 2 signifie 2x plus rapide",
"description": "Modifiez la vitesse de lecture des fichiers vidéo. Accélérez ou ralentissez les vidéos tout en conservant la synchronisation audio. Prise en charge de divers multiplicateurs de vitesse et formats vidéo courants.",
"inputTitle": "Entrée vidéo",
"newVideoSpeed": "Nouvelle vitesse vidéo",
"resultTitle": "Vidéo éditée",
"settingSpeed": "Réglage de la vitesse",
"shortDescription": "Modifier la vitesse de lecture vidéo",
"title": "Modifier la vitesse de la vidéo",
"toolInfo": {
@@ -54,7 +51,6 @@
},
"flip": {
"description": "Retournez les fichiers vidéo horizontalement ou verticalement. Inversez les vidéos pour obtenir des effets spéciaux ou corriger les problèmes d'orientation.",
"flippingVideo": "Retournement vidéo",
"horizontalLabel": "Horizontal (miroir)",
"inputTitle": "Entrée vidéo",
"orientation": "Orientation",
@@ -73,7 +69,6 @@
"loop": {
"description": "Créez une vidéo en boucle en répétant la vidéo originale plusieurs fois.",
"inputTitle": "Entrée vidéo",
"loopingVideo": "Vidéo en boucle",
"loops": "Boucles",
"numberOfLoops": "Nombre de boucles",
"resultTitle": "Vidéo en boucle",
@@ -97,7 +92,6 @@
"description": "Faites pivoter vos fichiers vidéo de 90, 180 ou 270 degrés. Corrigez l'orientation de vos vidéos ou créez des effets spéciaux grâce à un contrôle précis de la rotation.",
"inputTitle": "Entrée vidéo",
"resultTitle": "Vidéo tournée",
"rotatingVideo": "Vidéo rotative",
"rotation": "Rotation",
"shortDescription": "Faire pivoter la vidéo selon les degrés spécifiés",
"title": "Faire pivoter la vidéo"
@@ -111,10 +105,5 @@
"startTime": "Heure de début",
"timestamps": "Horodatages",
"title": "Découper la vidéo"
},
"videoToGif": {
"description": "Convertissez des fichiers vidéo au format GIF animé. Extrayez des plages horaires spécifiques et créez des images animées partageables.",
"shortDescription": "Convertir une vidéo en GIF animé",
"title": "Vidéo en GIF"
}
}
+2 -7
View File
@@ -15,10 +15,7 @@
"speedDescription": "डिफ़ॉल्ट गुणक: 2 का अर्थ है 2x तेज़",
"speedFactor": "गति कारक",
"speedOptions": "गति विकल्प",
"title": "ऑडियो गति बदलें",
"toolInfo": {
"title": "क्या है {{title}}?"
}
"title": "ऑडियो गति बदलें"
},
"extractAudio": {
"audioFormat": "ऑडियो प्रारूप",
@@ -53,7 +50,6 @@
"longDescription": "यह टूल आपको कई ऑडियो फ़ाइलों को अपलोड करने के क्रम में जोड़कर उन्हें एक ही फ़ाइल में मर्ज करने की सुविधा देता है। पॉडकास्ट सेगमेंट, म्यूज़िक ट्रैक या किसी भी ऑडियो फ़ाइल को एक साथ जोड़ने के लिए यह बिल्कुल सही है। MP3, AAC और WAV सहित विभिन्न ऑडियो फ़ॉर्मेट को सपोर्ट करता है।",
"mergeMethod": "मर्ज विधि",
"mergeOptions": "मर्ज विकल्प",
"mergingAudio": "ऑडियो मर्ज करना",
"methodConcat": "क्रमबद्ध जोड़ना",
"methodMix": "मिश्रण",
"outputFormat": "आउटपुट प्रारूप",
@@ -88,7 +84,6 @@
"toolInfo": {
"title": "क्या है {{title}}?"
},
"trimOptions": "ट्रिम विकल्प",
"trimmingAudio": "ऑडियो ट्रिमिंग"
"trimOptions": "ट्रिम विकल्प"
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
"includeNumbers": "संख्याएँ शामिल करें (0-9)",
"includeSymbols": "विशेष वर्ण शामिल करें",
"includeUppercase": "बड़े अक्षर (A-Z) शामिल करें",
"lengthDesc": "पासवर्ड की लंबाई",
"lengthDesc": "पासवर्ड की लंबाई (>3 & <257)",
"lengthPlaceholder": "उदाहरणार्थ 12",
"optionsTitle": "पासवर्ड विकल्प",
"resultTitle": "जनरेट किया गया पासवर्ड",
+2 -3
View File
@@ -95,7 +95,6 @@
"date-to-unix": "दिनांक → यूनिक्स",
"description": "यूनिक्स टाइमस्टैम्प को पठनीय दिनांकों में परिवर्तित करें और स्वरूपित दिनांकों को वापस यूनिक्स टाइमस्टैम्प में परिवर्तित करें (दोनों दिशाओं में)।",
"optionsTitle": "रूपांतरण मोड",
"outputOptions": "आउटपुट विकल्प",
"shortDescription": "यूनिक्स टाइमस्टैम्प और दिनांकों को दोनों दिशाओं में परिवर्तित करें।",
"title": "यूनिक्स ↔ दिनांक रूपांतरित करें",
"toolInfo": {
@@ -109,10 +108,10 @@
"useUTC": "UTC का उपयोग करें"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "क्रॉन एक्सप्रेशन को हिंदी में पार्स और समझाएं। किसी भी क्रॉन शेड्यूल को तुरंत समझें, सिंटैक्स को वैलिडेट करें और एक साथ कई एक्सप्रेशन प्रोसेस करें।",
"longDescription": "Crontab Guru एक क्रॉन एक्सप्रेशन पार्सर और वैलिडेटर है जो जटिल क्रॉन सिंटैक्स को स्पष्ट, पठनीय विवरणों में अनुवाद करता है। चाहे आप स्वचालित बैकअप, सिस्टम रखरखाव कार्य, या CI/CD पाइपलाइन शेड्यूल कर रहे हों, यह टूल आपको यह समझने में मदद करता है कि आपके जॉब्स ठीक कब चलेंगे। मानक 5-फील्ड क्रॉन एक्सप्रेशन का समर्थन करता है, रियल टाइम में सिंटैक्स वैलिडेट करता है और एक साथ कई एक्सप्रेशन प्रोसेस करता है — एक प्रति पंक्ति।",
"shortDescription": "क्रॉन एक्सप्रेशन को सरल भाषा में पार्स और समझाएं",
"longDescription": "Crontab Guru एक क्रॉन एक्सप्रेशन पार्सर और वैलिडेटर है जो जटिल क्रॉन सिंटैक्स को स्पष्ट, पठनीय विवरणों में अनुवाद करता है। चाहे आप स्वचालित बैकअप, सिस्टम रखरखाव कार्य, या CI/CD पाइपलाइन शेड्यूल कर रहे हों, यह टूल आपको यह समझने में मदद करता है कि आपके जॉब्स ठीक कब चलेंगे। मानक 5-फील्ड क्रॉन एक्सप्रेशन का समर्थन करता है, रियल टाइम में सिंटैक्स वैलिडेट करता है और एक साथ कई एक्सप्रेशन प्रोसेस करता है — एक प्रति पंक्ति।"
"title": "Crontab Guru"
},
"timeBetweenDates": {
"dateOptions": "तिथि विकल्प",
+4 -4
View File
@@ -95,8 +95,8 @@
"trimVideo": "वीडियो ट्रिम करें"
},
"search": {
"placeholder": "सभी टूल खोजें",
"noResult": "कोई परिणाम नहीं मिला, अपनी खोज या फ़िल्टर मानदंड समायोजित करने का प्रयास करें"
"noResult": "कोई परिणाम नहीं मिला, अपनी खोज या फ़िल्टर मानदंड समायोजित करने का प्रयास करें",
"placeholder": "सभी टूल खोजें"
},
"title": "के साथ जल्दी काम करें"
},
@@ -229,9 +229,9 @@
"result": "परिणाम"
},
"toolMultipleInput": {
"deleteFile": "फ़ाइल हटाएं",
"inputTitle": "{{type}} इनपुट करें",
"noFilesSelected": "कोई फ़ाइल नहीं चुनी गई",
"deleteFile": "फ़ाइल हटाएं"
"noFilesSelected": "कोई फ़ाइल नहीं चुनी गई"
},
"toolOptions": {
"title": "टूल विकल्प"
-25
View File
@@ -1,17 +1,14 @@
{
"changeSpeed": {
"defaultMultiplier": "डिफ़ॉल्ट गुणक: 2 का अर्थ है 2x तेज़",
"description": "वीडियो फ़ाइलों की प्लेबैक गति बदलें।",
"factorPlaceholder": "कारक (जैसे 0.5, 1.5, 2.0)",
"formatAvi": "AVI",
"formatMov": "MOV",
"formatMp4": "MP4",
"inputTitle": "इनपुट वीडियो",
"newVideoSpeed": "नई वीडियो स्पीड",
"outputFormat": "आउटपुट प्रारूप",
"preserveAudio": "ऑडियो संरक्षित करें",
"resultTitle": "गति बदली गई वीडियो",
"settingSpeed": "गति सेट करना",
"shortDescription": "वीडियो प्लेबैक गति बदलें",
"speedFactor": "गति कारक",
"speedOptions": "गति विकल्प",
@@ -94,7 +91,6 @@
"directionVertical": "लंबवत",
"flipDirection": "फ्लिप दिशा",
"flipOptions": "फ्लिप विकल्प",
"flippingVideo": "फ़्लिपिंग वीडियो",
"horizontalLabel": "क्षैतिज (दर्पण)",
"inputTitle": "इनपुट वीडियो",
"orientation": "अभिविन्यास",
@@ -128,7 +124,6 @@
"loopCount": "लूप की संख्या",
"loopInfinitely": "अनंत लूप",
"loopOptions": "लूप विकल्प",
"loopingVideo": "पाशन वीडियो",
"loops": "छोरों",
"numberOfLoops": "लूपों की संख्या",
"resultTitle": "लूप वीडियो",
@@ -158,7 +153,6 @@
"inputTitle": "इनपुट वीडियो",
"preserveAudio": "ऑडियो संरक्षित करें",
"resultTitle": "घुमाया गया वीडियो",
"rotatingVideo": "घूमता हुआ वीडियो",
"rotation": "ROTATION",
"rotationAngle": "घुमाने का कोण",
"rotationOptions": "घुमाने के विकल्प",
@@ -178,24 +172,5 @@
"timestamps": "मुहर",
"title": "वीडियो ट्रिम करें",
"trimOptions": "ट्रिम विकल्प"
},
"videoToGif": {
"conversionOptions": "रूपांतरण विकल्प",
"description": "वीडियो को GIF एनिमेटेड फ़ाइल में बदलें।",
"frameRate": "फ्रेम दर",
"frameRatePlaceholder": "FPS",
"height": "ऊंचाई",
"heightPlaceholder": "पिक्सेल",
"inputTitle": "इनपुट वीडियो",
"quality": "गुणवत्ता",
"qualityHigh": "उच्च",
"qualityLow": "कम",
"qualityMedium": "मध्यम",
"resize": "आकार बदलें",
"resultTitle": "GIF फ़ाइल",
"shortDescription": "वीडियो को एनिमेटेड GIF में बदलें",
"title": "वीडियो से GIF",
"width": "चौड़ाई",
"widthPlaceholder": "पिक्सेल"
}
}
+2 -7
View File
@@ -8,10 +8,7 @@
"settingSpeed": "速度設定",
"shortDescription": "オーディオファイルの速度を変更する",
"speedDescription": "デフォルトの乗数: 2は2倍速を意味します",
"title": "オーディオ速度を変更する",
"toolInfo": {
"title": "何ですか {{title}}?"
}
"title": "オーディオ速度を変更する"
},
"extractAudio": {
"description": "ビデオ ファイルからオーディオ トラックを抽出します。",
@@ -31,7 +28,6 @@
"description": "複数のオーディオ ファイルを順番に連結して 1 つのオーディオ ファイルに結合します。",
"inputTitle": "入力オーディオファイル",
"longDescription": "このツールを使えば、複数のオーディオファイルをアップロード順に連結し、1つのファイルにまとめることができます。ポッドキャストのセグメント、音楽トラック、その他様々なオーディオファイルを結合するのに最適です。MP3、AAC、WAVなど、様々なオーディオ形式に対応しています。",
"mergingAudio": "オーディオの結合",
"outputFormat": "出力形式",
"resultTitle": "統合オーディオ",
"shortDescription": "複数のオーディオ ファイルを 1 つに結合します (MP3、AAC、WAV)。",
@@ -55,7 +51,6 @@
"title": "オーディオをトリムする",
"toolInfo": {
"title": "何ですか {{title}}?"
},
"trimmingAudio": "オーディオのトリミング"
}
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
"includeNumbers": "数字を含める(0~9)",
"includeSymbols": "特殊文字を含める",
"includeUppercase": "大文字(A~Z)を含める",
"lengthDesc": "パスワードの長さ",
"lengthDesc": "パスワードの長さ (>3 & <257)",
"lengthPlaceholder": "例:12",
"optionsTitle": "パスワードオプション",
"resultTitle": "生成されたパスワード",
+2 -3
View File
@@ -64,7 +64,6 @@
"date-to-unix": "日付 → Unix",
"description": "Unix タイムスタンプを読み取り可能な日付に変換し、フォーマットされた日付を Unix タイムスタンプに変換します(両方向)。",
"optionsTitle": "変換モード",
"outputOptions": "出力オプション",
"shortDescription": "Unix タイムスタンプと日付を両方向に変換します。",
"title": "Unix ↔ 日付を変換する",
"toolInfo": {
@@ -78,10 +77,10 @@
"useUTC": "UTC を使用する"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "cron式を日本語で解析・説明します。任意のcronスケジュールの動作を即座に理解し、構文を検証し、複数の式を一度に処理できます。",
"longDescription": "Crontab Guruは、複雑なcron構文をわかりやすい説明に変換するcron式パーサー・バリデーターです。自動バックアップ、システムメンテナンスタスク、CI/CDパイプラインのスケジュール設定など、ジョブがいつ実行されるかを正確に把握できます。標準的な5フィールドのcron式をサポートし、構文をリアルタイムで検証し、複数の式を一度に処理します(1行に1つ)。英語、フランス語、スペイン語、ドイツ語、日本語、中国語、ポルトガル語、オランダ語、ロシア語に対応しています。",
"shortDescription": "cron式をわかりやすく解析・説明する",
"longDescription": "Crontab Guruは、複雑なcron構文をわかりやすい説明に変換するcron式パーサー・バリデーターです。自動バックアップ、システムメンテナンスタスク、CI/CDパイプラインのスケジュール設定など、ジョブがいつ実行されるかを正確に把握できます。標準的な5フィールドのcron式をサポートし、構文をリアルタイムで検証し、複数の式を一度に処理します(1行に1つ)。英語、フランス語、スペイン語、ドイツ語、日本語、中国語、ポルトガル語、オランダ語、ロシア語に対応しています。"
"title": "Crontab Guru"
},
"timeBetweenDates": {
"description": "2つの日付間の時差を計算します。正確な日数、時間、分、秒を取得します。",
+4 -4
View File
@@ -95,8 +95,8 @@
"trimVideo": "ビデオをトリミングする"
},
"search": {
"placeholder": "すべてのツールを検索",
"noResult": "結果が見つかりません。検索条件またはフィルター条件を調整してみてください"
"noResult": "結果が見つかりません。検索条件またはフィルター条件を調整してみてください",
"placeholder": "すべてのツールを検索"
},
"title": "物事を素早く終わらせる"
},
@@ -229,9 +229,9 @@
"result": "結果"
},
"toolMultipleInput": {
"deleteFile": "ファイルを削除",
"inputTitle": "{{type}}を入力",
"noFilesSelected": "ファイルが選択されていません",
"deleteFile": "ファイルを削除"
"noFilesSelected": "ファイルが選択されていません"
},
"toolOptions": {
"title": "ツールオプション"
-11
View File
@@ -1,11 +1,8 @@
{
"changeSpeed": {
"defaultMultiplier": "デフォルトの乗数: 2は2倍速を意味します",
"description": "動画ファイルの再生速度を変更できます。音声の同期を維持しながら、動画の再生速度を上げたり下げたりできます。様々な速度調整機能と一般的な動画形式に対応しています。",
"inputTitle": "入力ビデオ",
"newVideoSpeed": "新しいビデオ速度",
"resultTitle": "編集されたビデオ",
"settingSpeed": "速度設定",
"shortDescription": "ビデオの再生速度を変更する",
"title": "ビデオ速度の変更",
"toolInfo": {
@@ -54,7 +51,6 @@
},
"flip": {
"description": "ビデオファイルを水平または垂直に反転します。特殊効果や向きの問題を修正するためにビデオをミラーリングします。",
"flippingVideo": "反転ビデオ",
"horizontalLabel": "水平(ミラー)",
"inputTitle": "入力ビデオ",
"orientation": "オリエンテーション",
@@ -73,7 +69,6 @@
"loop": {
"description": "元のビデオを複数回繰り返してループビデオを作成します。",
"inputTitle": "入力ビデオ",
"loopingVideo": "ループビデオ",
"loops": "ループ",
"numberOfLoops": "ループ数",
"resultTitle": "ループ動画",
@@ -97,7 +92,6 @@
"description": "ビデオファイルを90度、180度、または270度回転できます。正確な回転制御により、ビデオの向きを修正したり、特殊効果を作成したりできます。",
"inputTitle": "入力ビデオ",
"resultTitle": "回転したビデオ",
"rotatingVideo": "回転するビデオ",
"rotation": "回転",
"shortDescription": "指定した角度でビデオを回転する",
"title": "ビデオを回転する"
@@ -111,10 +105,5 @@
"startTime": "開始時間",
"timestamps": "タイムスタンプ",
"title": "ビデオをトリムする"
},
"videoToGif": {
"description": "ビデオファイルをアニメーションGIF形式に変換します。特定の時間範囲を抽出し、共有可能なアニメーション画像を作成します。",
"shortDescription": "ビデオをアニメーションGIFに変換する",
"title": "ビデオをGIFに変換"
}
}
+2 -7
View File
@@ -8,10 +8,7 @@
"settingSpeed": "Snelheid instellen",
"shortDescription": "De snelheid van audiobestanden wijzigen",
"speedDescription": "Standaardvermenigvuldiger: 2 betekent 2x sneller",
"title": "Wijzig audiosnelheid",
"toolInfo": {
"title": "Wat is {{title}}?"
}
"title": "Wijzig audiosnelheid"
},
"extractAudio": {
"description": "Haal een audiotrack uit videobestanden.",
@@ -31,7 +28,6 @@
"description": "Combineer meerdere audiobestanden tot één audiobestand door ze in volgorde te plaatsen.",
"inputTitle": "Invoer audiobestanden",
"longDescription": "Met deze tool kun je meerdere audiobestanden samenvoegen tot één bestand door ze te combineren in de volgorde waarin je ze uploadt. Perfect voor het combineren van podcastfragmenten, muzieknummers of andere audiobestanden die moeten worden samengevoegd. Ondersteunt diverse audioformaten, waaronder MP3, AAC en WAV.",
"mergingAudio": "Audio samenvoegen",
"outputFormat": "Uitvoerformaat",
"resultTitle": "Samengevoegde audio",
"shortDescription": "Voeg meerdere audiobestanden samen tot één bestand (MP3, AAC, WAV).",
@@ -55,7 +51,6 @@
"title": "Audio bijsnijden",
"toolInfo": {
"title": "Wat is {{title}}?"
},
"trimmingAudio": "Audio bijsnijden"
}
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
"includeNumbers": "Inclusief cijfers (0-9)",
"includeSymbols": "Speciale tekens toevoegen",
"includeUppercase": "Inclusief hoofdletters (A-Z)",
"lengthDesc": "Lengte van het wachtwoord",
"lengthDesc": "Lengte van het wachtwoord (>3 & <257)",
"lengthPlaceholder": "bijv. 12",
"optionsTitle": "Wachtwoordopties",
"resultTitle": "gegenereerd wachtwoord",
+2 -3
View File
@@ -64,7 +64,6 @@
"date-to-unix": "Datum → Unix",
"description": "Converteer Unix-tijdstempels naar leesbare datums en converteer geformatteerde datums terug naar Unix-tijdstempels (in beide richtingen).",
"optionsTitle": "Conversie-modus",
"outputOptions": "Uitvoeropties",
"shortDescription": "Converteer Unix-tijdstempels en datums in beide richtingen.",
"title": "Unix ↔ Datum converteren",
"toolInfo": {
@@ -78,10 +77,10 @@
"useUTC": "UTC gebruiken"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "Parseer en verklaar cron-expressies in het Nederlands. Begrijp direct wat een cron-schema doet, valideer de syntaxis en verwerk meerdere expressies tegelijk.",
"longDescription": "Crontab Guru is een cron-expressie-parser en -validator die complexe cron-syntaxis vertaalt naar duidelijke, leesbare beschrijvingen. Of u nu automatische back-ups, systeemonderhoudstaken of CI/CD-pipelines plant, deze tool helpt u precies te begrijpen wanneer uw taken worden uitgevoerd. Ondersteunt standaard cron-expressies met 5 velden, valideert de syntaxis in realtime en verwerkt meerdere expressies tegelijk — één per regel. Beschikbaar in het Engels, Frans, Spaans, Duits, Japans, Chinees, Portugees, Nederlands en Russisch.",
"shortDescription": "Cron-expressies parseren en in begrijpelijke taal uitleggen",
"longDescription": "Crontab Guru is een cron-expressie-parser en -validator die complexe cron-syntaxis vertaalt naar duidelijke, leesbare beschrijvingen. Of u nu automatische back-ups, systeemonderhoudstaken of CI/CD-pipelines plant, deze tool helpt u precies te begrijpen wanneer uw taken worden uitgevoerd. Ondersteunt standaard cron-expressies met 5 velden, valideert de syntaxis in realtime en verwerkt meerdere expressies tegelijk — één per regel. Beschikbaar in het Engels, Frans, Spaans, Duits, Japans, Chinees, Portugees, Nederlands en Russisch."
"title": "Crontab Guru"
},
"timeBetweenDates": {
"description": "Bereken het tijdsverschil tussen twee datums. Bereken de exacte duur in dagen, uren, minuten en seconden.",
+4 -4
View File
@@ -95,8 +95,8 @@
"trimVideo": "Video bijsnijden"
},
"search": {
"placeholder": "Alle tools doorzoeken",
"noResult": "Geen resultaten gevonden, probeer uw zoekopdracht of filtercriteria aan te passen"
"noResult": "Geen resultaten gevonden, probeer uw zoekopdracht of filtercriteria aan te passen",
"placeholder": "Alle tools doorzoeken"
},
"title": "Krijg dingen snel gedaan met"
},
@@ -229,9 +229,9 @@
"result": "Resultaat"
},
"toolMultipleInput": {
"deleteFile": "Bestand verwijderen",
"inputTitle": "Invoer {{type}}",
"noFilesSelected": "Geen bestanden geselecteerd",
"deleteFile": "Bestand verwijderen"
"noFilesSelected": "Geen bestanden geselecteerd"
},
"toolOptions": {
"title": "Gereedschapsopties"
-11
View File
@@ -1,11 +1,8 @@
{
"changeSpeed": {
"defaultMultiplier": "Standaardvermenigvuldiger: 2 betekent 2x sneller",
"description": "Wijzig de afspeelsnelheid van videobestanden. Versnel of vertraag video's met behoud van audiosynchronisatie. Ondersteunt diverse snelheidsvermenigvuldigers en gangbare videoformaten.",
"inputTitle": "Invoervideo",
"newVideoSpeed": "Nieuwe videosnelheid",
"resultTitle": "Bewerkte video",
"settingSpeed": "Snelheid instellen",
"shortDescription": "Wijzig de afspeelsnelheid van video",
"title": "Videosnelheid wijzigen",
"toolInfo": {
@@ -54,7 +51,6 @@
},
"flip": {
"description": "Draai videobestanden horizontaal of verticaal. Spiegel video's voor speciale effecten of om problemen met de oriëntatie te corrigeren.",
"flippingVideo": "Flipping Video",
"horizontalLabel": "Horizontaal (Spiegel)",
"inputTitle": "Invoervideo",
"orientation": "Oriëntatie",
@@ -73,7 +69,6 @@
"loop": {
"description": "Maak een herhalende video door de originele video meerdere keren te herhalen.",
"inputTitle": "Invoervideo",
"loopingVideo": "Video herhalen",
"loops": "Lussen",
"numberOfLoops": "Aantal lussen",
"resultTitle": "Geloopte video",
@@ -97,7 +92,6 @@
"description": "Roteer videobestanden 90, 180 of 270 graden. Corrigeer de video-oriëntatie of creëer speciale effecten met nauwkeurige rotatiecontrole.",
"inputTitle": "Invoervideo",
"resultTitle": "Gedraaide video",
"rotatingVideo": "Roterende video",
"rotation": "Rotatie",
"shortDescription": "Video met opgegeven graden roteren",
"title": "Video roteren"
@@ -111,10 +105,5 @@
"startTime": "Starttijd",
"timestamps": "Tijdstempels",
"title": "Video bijsnijden"
},
"videoToGif": {
"description": "Converteer videobestanden naar geanimeerde GIF-indeling. Extraheer specifieke tijdsperioden en maak deelbare geanimeerde afbeeldingen.",
"shortDescription": "Converteer video naar geanimeerde GIF",
"title": "Video naar GIF"
}
}
+2 -7
View File
@@ -8,10 +8,7 @@
"settingSpeed": "Definindo a velocidade",
"shortDescription": "Alterar a velocidade dos arquivos de áudio",
"speedDescription": "Multiplicador padrão: 2 significa 2x mais rápido",
"title": "Alterar velocidade do áudio",
"toolInfo": {
"title": "O que é {{title}}?"
}
"title": "Alterar velocidade do áudio"
},
"extractAudio": {
"description": "Extraia faixas de áudio de arquivos de vídeo.",
@@ -31,7 +28,6 @@
"description": "Combine vários arquivos de áudio em um único arquivo de áudio concatenando-os em sequência.",
"inputTitle": "Arquivos de áudio de entrada",
"longDescription": "Esta ferramenta permite mesclar vários arquivos de áudio em um único arquivo, concatenando-os na ordem em que foram enviados. Perfeito para combinar segmentos de podcast, faixas de música ou qualquer arquivo de áudio que precise ser unido. Suporta vários formatos de áudio, incluindo MP3, AAC e WAV.",
"mergingAudio": "Mesclando áudio",
"outputFormat": "Formato de saída",
"resultTitle": "Áudio mesclado",
"shortDescription": "Mescle vários arquivos de áudio em um (MP3, AAC, WAV).",
@@ -55,7 +51,6 @@
"title": "Aparar áudio",
"toolInfo": {
"title": "O que é {{title}}?"
},
"trimmingAudio": "Cortando áudio"
}
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
"includeNumbers": "Incluir números (0-9)",
"includeSymbols": "Incluir caracteres especiais",
"includeUppercase": "Incluir letras maiúsculas (A-Z)",
"lengthDesc": "Comprimento da senha",
"lengthDesc": "Comprimento da senha (>3 & <257)",
"lengthPlaceholder": "por exemplo 12",
"optionsTitle": "Opções de senha",
"resultTitle": "Senha gerada",
+2 -3
View File
@@ -64,7 +64,6 @@
"date-to-unix": "Data → Unix",
"description": "Converta registros de data e hora Unix em datas legíveis e converta datas formatadas de volta para registros de data e hora Unix (em ambas as direções).",
"optionsTitle": "Modo de conversão",
"outputOptions": "Opções de saída",
"shortDescription": "Converta registros de data e hora Unix e datas em ambas as direções.",
"title": "Converter Unix ↔ Data",
"toolInfo": {
@@ -78,10 +77,10 @@
"useUTC": "Usar UTC"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "Analise e explique expressões cron em português. Entenda instantaneamente o que qualquer agendamento cron faz, valide a sintaxe e processe múltiplas expressões de uma vez.",
"longDescription": "O Crontab Guru é um analisador e validador de expressões cron que traduz a sintaxe complexa do cron em descrições claras e legíveis. Seja para agendar backups automáticos, tarefas de manutenção do sistema ou pipelines de CI/CD, esta ferramenta ajuda-o a perceber exatamente quando os seus trabalhos serão executados. Suporta expressões cron padrão de 5 campos, valida a sintaxe em tempo real e processa múltiplas expressões de uma vez — uma por linha. Disponível em inglês, francês, espanhol, alemão, japonês, chinês, português, neerlandês e russo.",
"shortDescription": "Analise e explique expressões cron em linguagem simples",
"longDescription": "O Crontab Guru é um analisador e validador de expressões cron que traduz a sintaxe complexa do cron em descrições claras e legíveis. Seja para agendar backups automáticos, tarefas de manutenção do sistema ou pipelines de CI/CD, esta ferramenta ajuda-o a perceber exatamente quando os seus trabalhos serão executados. Suporta expressões cron padrão de 5 campos, valida a sintaxe em tempo real e processa múltiplas expressões de uma vez — uma por linha. Disponível em inglês, francês, espanhol, alemão, japonês, chinês, português, neerlandês e russo."
"title": "Crontab Guru"
},
"timeBetweenDates": {
"description": "Calcule a diferença de tempo entre duas datas. Obtenha a duração exata em dias, horas, minutos e segundos.",
+4 -4
View File
@@ -95,8 +95,8 @@
"trimVideo": "Cortar vídeo"
},
"search": {
"placeholder": "Pesquisar todas as ferramentas",
"noResult": "Nenhum resultado encontrado, tente ajustar a sua pesquisa ou os critérios de filtro"
"noResult": "Nenhum resultado encontrado, tente ajustar a sua pesquisa ou os critérios de filtro",
"placeholder": "Pesquisar todas as ferramentas"
},
"title": "Faça as coisas rapidamente com"
},
@@ -229,9 +229,9 @@
"result": "Resultado"
},
"toolMultipleInput": {
"deleteFile": "Eliminar ficheiro",
"inputTitle": "Entrada {{type}}",
"noFilesSelected": "Nenhum ficheiro selecionado",
"deleteFile": "Eliminar ficheiro"
"noFilesSelected": "Nenhum ficheiro selecionado"
},
"toolOptions": {
"title": "Opções de ferramentas"
-11
View File
@@ -1,11 +1,8 @@
{
"changeSpeed": {
"defaultMultiplier": "Multiplicador padrão: 2 significa 2x mais rápido",
"description": "Altere a velocidade de reprodução de arquivos de vídeo. Acelere ou desacelere vídeos, mantendo a sincronização do áudio. Suporta vários multiplicadores de velocidade e formatos de vídeo comuns.",
"inputTitle": "Entrada de vídeo",
"newVideoSpeed": "Nova velocidade de vídeo",
"resultTitle": "Vídeo editado",
"settingSpeed": "Definindo a velocidade",
"shortDescription": "Alterar a velocidade de reprodução do vídeo",
"title": "Alterar velocidade do vídeo",
"toolInfo": {
@@ -54,7 +51,6 @@
},
"flip": {
"description": "Inverta arquivos de vídeo horizontal ou verticalmente. Espelhe vídeos para obter efeitos especiais ou corrigir problemas de orientação.",
"flippingVideo": "Invertendo o vídeo",
"horizontalLabel": "Horizontal (Espelho)",
"inputTitle": "Entrada de vídeo",
"orientation": "Orientação",
@@ -73,7 +69,6 @@
"loop": {
"description": "Crie um vídeo em loop repetindo o vídeo original várias vezes.",
"inputTitle": "Entrada de vídeo",
"loopingVideo": "Vídeo em loop",
"loops": "Laços",
"numberOfLoops": "Número de Loops",
"resultTitle": "Vídeo em loop",
@@ -97,7 +92,6 @@
"description": "Gire arquivos de vídeo em 90, 180 ou 270 graus. Corrija a orientação do vídeo ou crie efeitos especiais com controle de rotação preciso.",
"inputTitle": "Entrada de vídeo",
"resultTitle": "Vídeo girado",
"rotatingVideo": "Vídeo rotativo",
"rotation": "Rotação",
"shortDescription": "Girar o vídeo em graus especificados",
"title": "Girar vídeo"
@@ -111,10 +105,5 @@
"startTime": "Hora de início",
"timestamps": "Carimbos de data e hora",
"title": "Cortar vídeo"
},
"videoToGif": {
"description": "Converta arquivos de vídeo para o formato GIF animado. Extraia intervalos de tempo específicos e crie imagens animadas compartilháveis.",
"shortDescription": "Converter vídeo em GIF animado",
"title": "Vídeo para GIF"
}
}
+2 -7
View File
@@ -8,10 +8,7 @@
"settingSpeed": "Скорость установки",
"shortDescription": "Изменить скорость аудиофайлов",
"speedDescription": "Множитель по умолчанию: 2 означает в 2 раза быстрее",
"title": "Изменить скорость звука",
"toolInfo": {
"title": "Что такое {{title}}?"
}
"title": "Изменить скорость звука"
},
"extractAudio": {
"description": "Извлечь звуковую дорожку из видеофайлов.",
@@ -31,7 +28,6 @@
"description": "Объедините несколько аудиофайлов в один, объединив их последовательно.",
"inputTitle": "Входные аудиофайлы",
"longDescription": "Этот инструмент позволяет объединить несколько аудиофайлов в один, объединяя их в порядке загрузки. Идеально подходит для объединения фрагментов подкастов, музыкальных треков и любых других аудиофайлов, которые необходимо объединить. Поддерживает различные аудиоформаты, включая MP3, AAC и WAV.",
"mergingAudio": "Объединение аудио",
"outputFormat": "Формат вывода",
"resultTitle": "Объединенный аудио",
"shortDescription": "Объединить несколько аудиофайлов в один (MP3, AAC, WAV).",
@@ -55,7 +51,6 @@
"title": "Обрезать аудио",
"toolInfo": {
"title": "Что такое {{title}}?"
},
"trimmingAudio": "Обрезка аудио"
}
}
}
+20 -20
View File
@@ -98,43 +98,43 @@
"title": "Повернуть изображение"
},
"split": {
"title": "Разбить изображение по страницам",
"shortDescription": "Разбивает большое изображение на несколько страниц (PDF).",
"description": "Разбивает карту или большое изображение на страницы выбранного формата с учётом полей. Укажите количество пикселей на заданное число клеток и их количество для корректного масштабирования.",
"inputTitle": "Входное изображение",
"resultTitle": "PDF с разрезанными страницами",
"loadingText": "Загрузка... Это может занять некоторое время.",
"pageParameters": {
"title": "Параметры страницы",
"selectPageFormat": "Выберите формат страницы",
"padding": {
"label": "Отступ",
"description": "Отступ вокруг карты на каждой странице (в выбранных единицах)"
}
"description": "Отступ вокруг карты на каждой странице (в выбранных единицах)",
"label": "Отступ"
},
"selectPageFormat": "Выберите формат страницы",
"title": "Параметры страницы"
},
"resultTitle": "PDF с разрезанными страницами",
"scaleParameters": {
"title": "Параметры масштаба",
"pxPerSquareQuantity": {
"label": "Пикселей на количество клеток",
"description": "Сколько пикселей соответствует указанному количеству клеток на исходном изображении (по горизонтали или вертикали)"
"description": "Сколько пикселей соответствует указанному количеству клеток на исходном изображении (по горизонтали или вертикали)",
"label": "Пикселей на количество клеток"
},
"squareQuantity": {
"label": "Количество клеток",
"description": "Число игровых клеток по горизонтали или вертикали, используемое для масштабирования"
"description": "Число игровых клеток по горизонтали или вертикали, используемое для масштабирования",
"label": "Количество клеток"
},
"title": "Параметры масштаба",
"unitsPerOneSquare": {
"label": "Размер клетки",
"description": "Физический размер одной клетки в выбранных единицах"
"description": "Физический размер одной клетки в выбранных единицах",
"label": "Размер клетки"
}
},
"shortDescription": "Разбивает большое изображение на несколько страниц (PDF).",
"title": "Разбить изображение по страницам",
"units": {
"title": "Единицы измерения",
"select": "Выберите единицы измерения",
"options": {
"pt": "Пункты (pt)",
"in": "Дюймы (in)",
"mm": "Миллиметры (мм)",
"in": "Дюймы (in)"
}
"pt": "Пункты (pt)"
},
"select": "Выберите единицы измерения",
"title": "Единицы измерения"
}
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
"includeNumbers": "Включить цифры (0-9)",
"includeSymbols": "Включить специальные символы",
"includeUppercase": "Включайте заглавные буквы (A–Z)",
"lengthDesc": "Длина пароля",
"lengthDesc": "Длина пароля (>3 & <257)",
"lengthPlaceholder": "например, 12",
"optionsTitle": "Параметры пароля",
"resultTitle": "Сгенерированный пароль",
+2 -3
View File
@@ -64,7 +64,6 @@
"date-to-unix": "Дата → Unix",
"description": "Преобразуйте временные метки Unix в читаемые даты и обратно преобразуйте отформатированные даты в временные метки Unix (в обе стороны).",
"optionsTitle": "Режим преобразования",
"outputOptions": "Параметры вывода",
"shortDescription": "Преобразуйте временные метки Unix и даты в обе стороны.",
"title": "Преобразовать Unix ↔ Дату",
"toolInfo": {
@@ -78,10 +77,10 @@
"useUTC": "Использовать UTC"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "Разбирайте и объясняйте cron-выражения на русском языке. Мгновенно понимайте, что делает любое cron-расписание, проверяйте синтаксис и обрабатывайте несколько выражений одновременно.",
"longDescription": "Crontab Guru — это парсер и валидатор cron-выражений, который переводит сложный синтаксис cron в понятные человеку описания. Независимо от того, планируете ли вы автоматическое резервное копирование, задачи обслуживания системы или CI/CD-пайплайны, этот инструмент поможет вам точно понять, когда будут выполняться ваши задания. Поддерживает стандартные 5-польные cron-выражения, проверяет синтаксис в реальном времени и обрабатывает несколько выражений одновременно — по одному на строку. Доступно на английском, французском, испанском, немецком, японском, китайском, португальском, нидерландском и русском языках.",
"shortDescription": "Разбор и объяснение cron-выражений простым языком",
"longDescription": "Crontab Guru — это парсер и валидатор cron-выражений, который переводит сложный синтаксис cron в понятные человеку описания. Независимо от того, планируете ли вы автоматическое резервное копирование, задачи обслуживания системы или CI/CD-пайплайны, этот инструмент поможет вам точно понять, когда будут выполняться ваши задания. Поддерживает стандартные 5-польные cron-выражения, проверяет синтаксис в реальном времени и обрабатывает несколько выражений одновременно — по одному на строку. Доступно на английском, французском, испанском, немецком, японском, китайском, португальском, нидерландском и русском языках."
"title": "Crontab Guru"
},
"timeBetweenDates": {
"description": "Рассчитайте разницу во времени между двумя датами. Получите точную продолжительность в днях, часах, минутах и секундах.",
+4 -4
View File
@@ -95,8 +95,8 @@
"trimVideo": "Обрезать видео"
},
"search": {
"placeholder": "Поиск по всем инструментам",
"noResult": "Результаты не найдены, попробуйте изменить параметры поиска или фильтрации"
"noResult": "Результаты не найдены, попробуйте изменить параметры поиска или фильтрации",
"placeholder": "Поиск по всем инструментам"
},
"title": "Выполняйте задачи быстро с помощью"
},
@@ -229,9 +229,9 @@
"result": "Результат"
},
"toolMultipleInput": {
"deleteFile": "Удалить файл",
"inputTitle": "Ввод {{type}}",
"noFilesSelected": "Файлы не выбраны",
"deleteFile": "Удалить файл"
"noFilesSelected": "Файлы не выбраны"
},
"toolOptions": {
"title": "Параметры инструмента"
-11
View File
@@ -1,11 +1,8 @@
{
"changeSpeed": {
"defaultMultiplier": "Множитель по умолчанию: 2 означает в 2 раза быстрее",
"description": "Изменяйте скорость воспроизведения видеофайлов. Ускоряйте или замедляйте видео, сохраняя синхронизацию со звуком. Поддерживает различные коэффициенты ускорения и распространённые видеоформаты.",
"inputTitle": "Входное видео",
"newVideoSpeed": "Новая скорость видео",
"resultTitle": "Отредактированное видео",
"settingSpeed": "Скорость установки",
"shortDescription": "Изменить скорость воспроизведения видео",
"title": "Изменить скорость видео",
"toolInfo": {
@@ -54,7 +51,6 @@
},
"flip": {
"description": "Переворачивайте видеофайлы по горизонтали или вертикали. Зеркально отображайте видео для создания спецэффектов или исправления проблем с ориентацией.",
"flippingVideo": "Перелистывание видео",
"horizontalLabel": "Горизонтальный (Зеркальный)",
"inputTitle": "Входное видео",
"orientation": "Ориентация",
@@ -73,7 +69,6 @@
"loop": {
"description": "Создайте зацикленное видео, повторив исходное видео несколько раз.",
"inputTitle": "Входное видео",
"loopingVideo": "Зацикливание видео",
"loops": "Петли",
"numberOfLoops": "Количество петель",
"resultTitle": "Зацикленное видео",
@@ -97,7 +92,6 @@
"description": "Поворачивайте видеофайлы на 90, 180 или 270 градусов. Корректируйте ориентацию видео или создавайте спецэффекты с помощью точного управления поворотом.",
"inputTitle": "Входное видео",
"resultTitle": "Повернутое видео",
"rotatingVideo": "Вращение видео",
"rotation": "Вращение",
"shortDescription": "Повернуть видео на указанный угол",
"title": "Повернуть видео"
@@ -111,10 +105,5 @@
"startTime": "Время начала",
"timestamps": "Временные метки",
"title": "Обрезать видео"
},
"videoToGif": {
"description": "Конвертируйте видеофайлы в анимированный GIF-формат. Извлекайте определённые временные диапазоны и создавайте анимированные изображения для публикации.",
"shortDescription": "Конвертировать видео в анимированный GIF",
"title": "Видео в GIF"
}
}
+2 -7
View File
@@ -8,10 +8,7 @@
"settingSpeed": "设定速度",
"shortDescription": "更改音频文件的速度",
"speedDescription": "默认乘数:2 表示速度快 2 倍",
"title": "更改音频速度",
"toolInfo": {
"title": "什么是 {{title}}?"
}
"title": "更改音频速度"
},
"extractAudio": {
"description": "从视频文件中提取音轨。",
@@ -31,7 +28,6 @@
"description": "按顺序连接多个音频文件,将其合并为一个音频文件。",
"inputTitle": "输入音频文件",
"longDescription": "此工具允许您将多个音频文件按照上传顺序串联成一个文件。非常适合合并播客片段、音乐曲目或任何需要合并的音频文件。支持多种音频格式,包括 MP3、AAC 和 WAV。",
"mergingAudio": "合并音频",
"outputFormat": "输出格式",
"resultTitle": "合并音频",
"shortDescription": "将多个音频文件合并为一个(MP3、AAC、WAV)。",
@@ -55,7 +51,6 @@
"title": "修剪音频",
"toolInfo": {
"title": "什么是 {{title}}?"
},
"trimmingAudio": "修剪音频"
}
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
"includeNumbers": "包含数字 (0-9)",
"includeSymbols": "包含特殊字符",
"includeUppercase": "包含大写字母(A-Z)",
"lengthDesc": "密码长度",
"lengthDesc": "密码长度 (>3 & <257)",
"lengthPlaceholder": "例如 12",
"optionsTitle": "密码选项",
"resultTitle": "生成的密码",
+2 -3
View File
@@ -70,7 +70,6 @@
"date-to-unix": "日期 → Unix",
"description": "将 Unix 时间戳转换为可读日期,并将格式化日期转换回 Unix 时间戳(双向转换)。",
"optionsTitle": "转换模式",
"outputOptions": "输出选项",
"shortDescription": "双向转换 Unix 时间戳和日期。",
"title": "转换 Unix ↔ 日期",
"toolInfo": {
@@ -84,10 +83,10 @@
"useUTC": "使用 UTC"
},
"crontabGuru": {
"title": "Crontab Guru",
"description": "用中文解析和解释 cron 表达式。即时了解任何 cron 计划的作用,验证语法,并一次处理多个表达式。",
"longDescription": "Crontab Guru 是一个 cron 表达式解析器和验证器,可将复杂的 cron 语法转换为清晰易读的描述。无论您是在安排自动备份、系统维护任务还是 CI/CD 流水线,此工具都能帮助您准确了解您的任务何时运行。支持标准的 5 字段 cron 表达式,实时验证语法,并一次处理多个表达式——每行一个。支持英语、法语、西班牙语、德语、日语、中文、葡萄牙语、荷兰语和俄语。",
"shortDescription": "用简单语言解析和解释 cron 表达式",
"longDescription": "Crontab Guru 是一个 cron 表达式解析器和验证器,可将复杂的 cron 语法转换为清晰易读的描述。无论您是在安排自动备份、系统维护任务还是 CI/CD 流水线,此工具都能帮助您准确了解您的任务何时运行。支持标准的 5 字段 cron 表达式,实时验证语法,并一次处理多个表达式——每行一个。支持英语、法语、西班牙语、德语、日语、中文、葡萄牙语、荷兰语和俄语。"
"title": "Crontab Guru"
},
"discordTimestamp": {
"description": "将日期和时间转换为 Discord 的特殊时间戳格式,自动适应每位用户的本地时区和语言",
+8 -8
View File
@@ -99,8 +99,8 @@
"trimVideo": "修剪视频"
},
"search": {
"placeholder": "搜索所有工具",
"noResult": "未找到结果 请尝试调整搜索或筛选条件"
"noResult": "未找到结果 请尝试调整搜索或筛选条件",
"placeholder": "搜索所有工具"
},
"title": "快速完成工作"
},
@@ -226,10 +226,6 @@
"toolLayout": {
"allToolsTitle": "全部 {{type}}"
},
"toolsByCategory": {
"noResultsTitle": "未找到工具",
"noResultsDescription": "请尝试调整搜索条件或筛选条件"
},
"toolMultiFileResult": {
"copied": "文件已复制",
"copyFailed": "复制失败: {{error}}",
@@ -237,9 +233,9 @@
"result": "结果"
},
"toolMultipleInput": {
"deleteFile": "删除文件",
"inputTitle": "输入 {{type}}",
"noFilesSelected": "未选择任何文件",
"deleteFile": "删除文件"
"noFilesSelected": "未选择任何文件"
},
"toolOptions": {
"title": "工具选项"
@@ -256,6 +252,10 @@
"loading": "正在加载...这可能需要一点时间。",
"result": "结果"
},
"toolsByCategory": {
"noResultsDescription": "请尝试调整搜索条件或筛选条件",
"noResultsTitle": "未找到工具"
},
"userTypes": {
"developers": "开发人员",
"generalUsers": "普通用户"
-11
View File
@@ -1,11 +1,8 @@
{
"changeSpeed": {
"defaultMultiplier": "默认乘数:2 表示速度快 2 倍",
"description": "更改视频文件的播放速度。在保持音频同步的同时,加快或减慢视频速度。支持各种倍速器和常见视频格式。",
"inputTitle": "输入视频",
"newVideoSpeed": "新视频速度",
"resultTitle": "编辑视频",
"settingSpeed": "设定速度",
"shortDescription": "更改视频播放速度",
"title": "更改视频速度",
"toolInfo": {
@@ -54,7 +51,6 @@
},
"flip": {
"description": "水平或垂直翻转视频文件。镜像视频以获得特殊效果或纠正方向问题。",
"flippingVideo": "翻转视频",
"horizontalLabel": "水平(镜像)",
"inputTitle": "输入视频",
"orientation": "方向",
@@ -73,7 +69,6 @@
"loop": {
"description": "通过多次重复播放原始视频来创建循环视频。",
"inputTitle": "输入视频",
"loopingVideo": "循环视频",
"loops": "循环",
"numberOfLoops": "循环次数",
"resultTitle": "循环视频",
@@ -97,7 +92,6 @@
"description": "将视频文件旋转 90 度、180 度或 270 度。通过精确的旋转控制来校正视频方向或创建特殊效果。",
"inputTitle": "输入视频",
"resultTitle": "旋转视频",
"rotatingVideo": "旋转视频",
"rotation": "旋转",
"shortDescription": "按指定角度旋转视频",
"title": "旋转视频"
@@ -111,10 +105,5 @@
"startTime": "开始时间",
"timestamps": "时间戳",
"title": "修剪视频"
},
"videoToGif": {
"description": "将视频文件转换为 GIF 动画格式。提取特定时间范围并创建可共享的动画图像。",
"shortDescription": "将视频转换为动画 GIF",
"title": "视频转GIF"
}
}
+2
View File
@@ -0,0 +1,2 @@
declare const __APP_VERSION__: string;
declare const __COMMIT_HASH__: string;
+30 -7
View File
@@ -16,7 +16,8 @@ import {
Stack,
Select,
MenuItem,
FormControl
FormControl,
Typography
} from '@mui/material';
import useMediaQuery from '@mui/material/useMediaQuery';
import { useTheme } from '@mui/material/styles';
@@ -178,12 +179,34 @@ const Navbar: React.FC<NavbarProps> = ({
mx: { md: '50px', lg: '150px' }
}}
>
<Link to="/">
<img
src={theme.palette.mode === 'light' ? logo : logoWhite}
width={isMobile ? '120px' : '200px'}
/>
</Link>
<Stack direction="row" spacing={1.5} alignItems="center">
<Link to="/">
<img
src={theme.palette.mode === 'light' ? logo : logoWhite}
width={isMobile ? '120px' : '200px'}
/>
</Link>
<Typography
component="span"
variant="caption"
sx={{
color: 'text.secondary',
fontWeight: 600,
whiteSpace: 'nowrap'
}}
>
v{__APP_VERSION__} (
<a
href={`https://github.com/iib0011/omni-tools/tree/${__COMMIT_HASH__}`}
target="_blank"
rel="noopener noreferrer"
style={{ color: 'inherit' }}
>
{__COMMIT_HASH__}
</a>
)
</Typography>
</Stack>
{isMobile ? (
<>
<IconButton
+8 -1
View File
@@ -65,7 +65,8 @@ export default function ToolCodeInput({
>
<Box
sx={(theme) => ({
height: '100%',
flex: 1,
minHeight: 0,
display: 'flex',
flexDirection: 'column',
backgroundColor: 'background.paper',
@@ -92,6 +93,9 @@ export default function ToolCodeInput({
},
'.decorationsOverviewRuler': {
display: 'none !important'
},
'.codicon': {
fontFamily: 'codicon !important'
}
})}
>
@@ -102,6 +106,9 @@ export default function ToolCodeInput({
value={value}
onChange={(value) => onChange(value ?? '')}
options={{
automaticLayout: true,
folding: true,
showFoldingControls: 'always',
scrollbar: {
vertical: 'visible',
horizontal: 'visible',
+147
View File
@@ -0,0 +1,147 @@
import { Box, CircularProgress, Typography, useTheme } from '@mui/material';
import React, { useContext } from 'react';
import { CustomSnackBarContext } from '../../contexts/CustomSnackBarContext';
import InputHeader from '../InputHeader';
import ResultFooter from './ResultFooter';
import { useTranslation } from 'react-i18next';
import Editor from '@monaco-editor/react';
import mime from 'mime';
import {
globalInputHeight,
codeInputHeightOffset
} from '../../config/uiConfig';
export default function ToolCodeResult({
title = 'Result',
value,
language,
extension = language,
loading
}: {
title?: string;
value: string;
language: string;
extension?: string;
loading?: boolean;
}) {
const { t } = useTranslation();
const { showSnackBar } = useContext(CustomSnackBarContext);
const theme = useTheme();
const handleCopy = () => {
navigator.clipboard
.writeText(value)
.then(() => showSnackBar(t('toolTextResult.copied'), 'success'))
.catch((err) => {
showSnackBar(t('toolTextResult.copyFailed', { error: err }), 'error');
});
};
const handleDownload = () => {
const filename = `output-omni-tools.${extension}`;
const mimeType = mime.getType(extension) || 'text/plain';
const blob = new Blob([value], {
type: mimeType
});
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = filename;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
window.URL.revokeObjectURL(url);
};
return (
<Box>
<InputHeader title={title || t('toolTextResult.result')} />
<Box
height={`${globalInputHeight + codeInputHeightOffset}px`} // Same fixed height formula as ToolCodeInput, with the footer inside this box too, so both components render at an identical total height.
sx={{
display: 'flex',
flexDirection: 'column'
}}
>
{loading ? (
<Box
sx={{
flex: 1,
minHeight: 0,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center'
}}
>
<CircularProgress />
<Typography variant="body2" sx={{ mt: 2 }}>
{t('toolTextResult.loading')}
</Typography>
</Box>
) : (
<Box
sx={(theme) => ({
flex: 1,
minHeight: 0,
display: 'flex',
flexDirection: 'column',
backgroundColor: 'background.paper',
'.monaco-editor': {
height: '100% !important',
outline: 'none !important',
'.overflow-guard': {
height: '100% !important',
border:
theme.palette.mode === 'light'
? '1px solid rgba(0, 0, 0, 0.23)'
: '1px solid rgba(255, 255, 255, 0.23)',
borderRadius: 1,
transition: theme.transitions.create(
['border-color', 'background-color'],
{
duration: theme.transitions.duration.shorter
}
)
},
'&:hover .overflow-guard': {
borderColor: theme.palette.text.primary
}
},
'.decorationsOverviewRuler': {
display: 'none !important'
},
'.codicon': {
fontFamily: 'codicon !important'
}
})}
>
<Editor
height="100%"
language={language}
theme={theme.palette.mode === 'dark' ? 'vs-dark' : 'light'}
value={value}
options={{
readOnly: true,
domReadOnly: true,
automaticLayout: true,
folding: true,
showFoldingControls: 'always',
scrollbar: {
vertical: 'visible',
horizontal: 'visible',
verticalScrollbarSize: 10,
horizontalScrollbarSize: 10,
alwaysConsumeMouseWheel: false
}
}}
/>
</Box>
)}
<ResultFooter handleCopy={handleCopy} handleDownload={handleDownload} />
</Box>
</Box>
);
}
+97
View File
@@ -0,0 +1,97 @@
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { toBlobURL } from '@ffmpeg/util';
const CORE_VERSION = '0.12.6';
const BASE_URL = `https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/esm`;
let ffmpegInstance: FFmpeg | null = null;
let loadingPromise: Promise<FFmpeg> | null = null;
type FFmpegTaskContext = {
ffmpeg: FFmpeg;
tempFile: (extension: string) => string;
};
async function getFFmpeg(): Promise<FFmpeg> {
if (ffmpegInstance?.loaded) {
return ffmpegInstance;
}
if (!loadingPromise) {
loadingPromise = (async () => {
const ffmpeg = new FFmpeg();
await ffmpeg.load({
coreURL: await toBlobURL(
`${BASE_URL}/ffmpeg-core.js`,
'text/javascript'
),
wasmURL: await toBlobURL(
`${BASE_URL}/ffmpeg-core.wasm`,
'application/wasm'
)
});
ffmpegInstance = ffmpeg;
return ffmpeg;
})();
}
try {
return await loadingPromise;
} finally {
loadingPromise = null;
}
}
/**
* Destroy the current FFmpeg instance.
*
* Normally not needed because the instance is reused.
* Use only after worker crashes or when explicitly freeing memory.
*/
export function resetFFmpeg(): void {
ffmpegInstance?.terminate();
ffmpegInstance = null;
loadingPromise = null;
}
// FFmpeg worker is not safe for concurrent operations.
let taskQueue: Promise<unknown> = Promise.resolve();
export async function runFFmpegTask<T>(
task: (context: FFmpegTaskContext) => Promise<T>
): Promise<T> {
const ffmpeg = await getFFmpeg();
const run = taskQueue
.catch(() => {})
.then(async () => {
const tempFiles = new Set<string>();
const tempFile = (extension: string) => {
const filename = `${crypto.randomUUID()}${extension}`;
tempFiles.add(filename);
return filename;
};
try {
return await task({
ffmpeg,
tempFile
});
} finally {
await Promise.all(
[...tempFiles].map((file) => ffmpeg.deleteFile(file).catch(() => {}))
);
}
});
taskQueue = run.catch(() => {});
return run;
}
@@ -1,46 +0,0 @@
import { expect, describe, it, vi } from 'vitest';
// Mock FFmpeg since it doesn't support Node.js
vi.mock('@ffmpeg/ffmpeg', () => ({
FFmpeg: vi.fn().mockImplementation(() => ({
loaded: false,
load: vi.fn().mockResolvedValue(undefined),
writeFile: vi.fn().mockResolvedValue(undefined),
exec: vi.fn().mockResolvedValue(undefined),
readFile: vi.fn().mockResolvedValue(new Uint8Array([1, 2, 3, 4, 5])),
deleteFile: vi.fn().mockResolvedValue(undefined)
}))
}));
vi.mock('@ffmpeg/util', () => ({
fetchFile: vi.fn().mockResolvedValue(new Uint8Array([1, 2, 3, 4, 5]))
}));
import { changeAudioSpeed } from './service';
import { InitialValuesType } from './types';
describe('changeAudioSpeed', () => {
it('should return a new File with the correct name and type', async () => {
const mockAudioData = new Uint8Array([0, 1, 2, 3, 4, 5]);
const mockFile = new File([mockAudioData], 'test.mp3', {
type: 'audio/mp3'
});
const options: InitialValuesType = {
newSpeed: 2,
outputFormat: 'mp3'
};
const result = await changeAudioSpeed(mockFile, options);
expect(result).toBeInstanceOf(File);
expect(result?.name).toBe('test-2x.mp3');
expect(result?.type).toBe('audio/mp3');
});
it('should return null if input is null', async () => {
const options: InitialValuesType = {
newSpeed: 2,
outputFormat: 'mp3'
};
const result = await changeAudioSpeed(null, options);
expect(result).toBeNull();
});
});
+15 -27
View File
@@ -7,12 +7,11 @@ import { InitialValuesType } from './types';
import ToolAudioInput from '@components/input/ToolAudioInput';
import ToolFileResult from '@components/result/ToolFileResult';
import TextFieldWithDesc from '@components/options/TextFieldWithDesc';
import RadioWithTextField from '@components/options/RadioWithTextField';
import { changeAudioSpeed } from './service';
import { useTranslation } from 'react-i18next';
const initialValues: InitialValuesType = {
newSpeed: 2,
speed: 2,
outputFormat: 'mp3'
};
@@ -22,10 +21,7 @@ const formatOptions = [
{ label: 'WAV', value: 'wav' }
];
export default function ChangeSpeed({
title,
longDescription
}: ToolComponentProps) {
export default function ChangeSpeed({ title }: ToolComponentProps) {
const { t } = useTranslation('audio');
const [input, setInput] = useState<File | null>(null);
const [result, setResult] = useState<File | null>(null);
@@ -35,10 +31,12 @@ export default function ChangeSpeed({
optionsValues: InitialValuesType,
input: File | null
) => {
if (!input) return;
setLoading(true);
try {
const newFile = await changeAudioSpeed(input, optionsValues);
setResult(newFile);
const resultFile = await changeAudioSpeed(input, optionsValues);
setResult(resultFile);
} catch (err) {
setResult(null);
} finally {
@@ -55,9 +53,10 @@ export default function ChangeSpeed({
component: (
<Box>
<TextFieldWithDesc
value={values.newSpeed.toString()}
onOwnChange={(val) => updateField('newSpeed', Number(val))}
value={values.speed.toString()}
onOwnChange={(val) => updateField('speed', Number(val))}
description={t('changeSpeed.speedDescription')}
inputProps={{ min: 0 }}
type="number"
/>
</Box>
@@ -102,28 +101,17 @@ export default function ChangeSpeed({
/>
}
resultComponent={
loading ? (
<ToolFileResult
title={t('changeSpeed.settingSpeed')}
value={null}
loading={true}
/>
) : (
<ToolFileResult
title={t('changeSpeed.resultTitle')}
value={result}
extension={result ? result.name.split('.').pop() : undefined}
/>
)
<ToolFileResult
title={t('changeSpeed.resultTitle')}
loading={loading}
value={result}
extension={result ? result.name.split('.').pop() : undefined}
/>
}
initialValues={initialValues}
getGroups={getGroups}
setInput={setInput}
compute={compute}
toolInfo={{
title: t('changeSpeed.toolInfo.title', { title }),
description: longDescription
}}
/>
);
}
+21 -29
View File
@@ -1,6 +1,7 @@
import { InitialValuesType } from './types';
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { runFFmpegTask } from 'lib/ffmpeg';
import { fetchFile } from '@ffmpeg/util';
import { getFileExtension } from '@utils/file';
function computeAudioFilter(speed: number): string {
if (speed <= 2 && speed >= 0.5) {
@@ -21,27 +22,19 @@ function computeAudioFilter(speed: number): string {
}
export async function changeAudioSpeed(
input: File | null,
input: File,
options: InitialValuesType
): Promise<File | null> {
if (!input) return null;
const { newSpeed, outputFormat } = options;
let ffmpeg: FFmpeg | null = null;
let ffmpegLoaded = false;
try {
ffmpeg = new FFmpeg();
if (!ffmpegLoaded) {
await ffmpeg.load({
wasmURL:
'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.9/dist/esm/ffmpeg-core.wasm'
});
ffmpegLoaded = true;
}
const fileName = input.name;
const outputName = `output.${outputFormat}`;
): Promise<File> {
return runFFmpegTask(async ({ ffmpeg, tempFile }) => {
const { speed, outputFormat } = options;
const fileName = tempFile(`.${getFileExtension(input.name)}`);
const outputName = tempFile(`.${outputFormat}`);
await ffmpeg.writeFile(fileName, await fetchFile(input));
const audioFilter = computeAudioFilter(newSpeed);
const audioFilter = computeAudioFilter(speed);
const args = ['-i', fileName, '-filter:a', audioFilter];
if (outputFormat === 'mp3') {
args.push('-b:a', '192k', '-f', 'mp3', outputName);
} else if (outputFormat === 'aac') {
@@ -61,20 +54,19 @@ export async function changeAudioSpeed(
}
await ffmpeg.exec(args);
const data = await ffmpeg.readFile(outputName);
let mimeType = 'audio/mp3';
if (outputFormat === 'aac') mimeType = 'audio/aac';
if (outputFormat === 'wav') mimeType = 'audio/wav';
const blob = new Blob([data as any], { type: mimeType });
const newFile = new File(
const blob = new Blob([new Uint8Array(data as Uint8Array)], {
type: mimeType
});
return new File(
[blob],
fileName.replace(/\.[^/.]+$/, `-${newSpeed}x.${outputFormat}`),
fileName.replace(/\.[^/.]+$/, `-${speed}x.${outputFormat}`),
{ type: mimeType }
);
await ffmpeg.deleteFile(fileName);
await ffmpeg.deleteFile(outputName);
return newFile;
} catch (err) {
console.error(`Failed to process audio: ${err}`);
return null;
}
});
}
+1 -1
View File
@@ -1,4 +1,4 @@
export type InitialValuesType = {
newSpeed: number;
speed: number;
outputFormat: 'mp3' | 'aac' | 'wav';
};
+10 -18
View File
@@ -9,15 +9,13 @@ import { GetGroupsType } from '@components/options/ToolOptions';
import ToolFileResult from '@components/result/ToolFileResult';
import SelectWithDesc from '@components/options/SelectWithDesc';
import { useTranslation } from 'react-i18next';
import { getFileExtension } from '@utils/file';
const initialValues: InitialValuesType = {
outputFormat: 'aac'
};
export default function ExtractAudio({
title,
longDescription
}: ToolComponentProps) {
export default function ExtractAudio({ title }: ToolComponentProps) {
const { t } = useTranslation('audio');
const [file, setFile] = useState<File | null>(null);
const [audioFile, setAudioFile] = useState<File | null>(null);
@@ -35,7 +33,7 @@ export default function ExtractAudio({
<SelectWithDesc
selected={values.outputFormat}
onChange={(value) => {
updateField('outputFormat', value.toString());
updateField('outputFormat', value);
}}
options={[
{ label: 'AAC', value: 'aac' },
@@ -75,25 +73,19 @@ export default function ExtractAudio({
/>
}
resultComponent={
loading ? (
<ToolFileResult
title={t('extractAudio.extractingAudio')}
value={null}
loading={true}
/>
) : (
<ToolFileResult
title={t('extractAudio.resultTitle')}
value={audioFile}
/>
)
<ToolFileResult
title={t('extractAudio.resultTitle')}
loading={loading}
value={audioFile}
extension={audioFile ? getFileExtension(audioFile.name) : undefined}
/>
}
initialValues={initialValues}
getGroups={getGroups}
compute={compute}
toolInfo={{
title: t('extractAudio.toolInfo.title', { title }),
description: longDescription
description: t('extractAudio.toolInfo.description')
}}
setInput={setFile}
/>
+51 -59
View File
@@ -1,70 +1,62 @@
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { runFFmpegTask } from 'lib/ffmpeg';
import { fetchFile } from '@ffmpeg/util';
import { InitialValuesType } from './types';
const ffmpeg = new FFmpeg();
export async function extractAudioFromVideo(
input: File,
options: InitialValuesType
): Promise<File> {
if (!ffmpeg.loaded) {
await ffmpeg.load({
wasmURL:
'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.9/dist/esm/ffmpeg-core.wasm'
return runFFmpegTask(async ({ ffmpeg, tempFile }) => {
const { outputFormat } = options;
const inputName = tempFile('.mp4');
const outputName = tempFile(`.${outputFormat}`);
await ffmpeg.writeFile(inputName, await fetchFile(input));
const args: string[] = ['-i', inputName, '-vn'];
if (outputFormat === 'mp3') {
args.push(
'-ar',
'44100',
'-ac',
'2',
'-b:a',
'192k',
'-f',
'mp3',
outputName
);
} else if (outputFormat === 'wav') {
args.push(
'-acodec',
'pcm_s16le',
'-ar',
'44100',
'-ac',
'2',
'-f',
'wav',
outputName
);
} else {
// Default to AAC or copy
args.push('-acodec', 'copy', outputName);
}
await ffmpeg.exec(args);
const extractedAudio = await ffmpeg.readFile(outputName);
const blob = new Blob([new Uint8Array(extractedAudio as Uint8Array)], {
type: `audio/${outputFormat}`
});
}
const inputName = 'input.mp4';
await ffmpeg.writeFile(inputName, await fetchFile(input));
const configuredOutputAudioFormat = options.outputFormat;
const outputName = `output.${configuredOutputAudioFormat}`;
const args: string[] = ['-i', inputName, '-vn'];
if (configuredOutputAudioFormat === 'mp3') {
args.push(
'-ar',
'44100',
'-ac',
'2',
'-b:a',
'192k',
'-f',
'mp3',
outputName
return new File(
[blob],
`${input.name.replace(/\.[^/.]+$/, '')}_audio.${outputFormat}`,
{ type: `audio/${outputFormat}` }
);
} else if (configuredOutputAudioFormat === 'wav') {
args.push(
'-acodec',
'pcm_s16le',
'-ar',
'44100',
'-ac',
'2',
'-f',
'wav',
outputName
);
} else {
// Default to AAC or copy
args.push('-acodec', 'copy', outputName);
}
await ffmpeg.exec(args);
const extractedAudio = await ffmpeg.readFile(outputName);
return new File(
[
new Blob([extractedAudio as any], {
type: `audio/${configuredOutputAudioFormat}`
})
],
`${input.name.replace(
/\.[^/.]+$/,
''
)}_audio.${configuredOutputAudioFormat}`,
{ type: `audio/${configuredOutputAudioFormat}` }
);
});
}
+3 -1
View File
@@ -1,3 +1,5 @@
type AudioFormat = 'aac' | 'mp3' | 'wav';
export type InitialValuesType = {
outputFormat: string;
outputFormat: AudioFormat;
};
+7 -14
View File
@@ -34,7 +34,7 @@ export default function MergeAudio({
optionsValues: InitialValuesType,
input: MultiAudioInput[]
) => {
if (input.length === 0) return;
if (input.length < 2) return;
setLoading(true);
try {
const files = input.map((item) => item.file);
@@ -94,19 +94,12 @@ export default function MergeAudio({
/>
}
resultComponent={
loading ? (
<ToolFileResult
title={t('mergeAudio.mergingAudio')}
value={null}
loading={true}
/>
) : (
<ToolFileResult
title={t('mergeAudio.resultTitle')}
value={result}
extension={result ? result.name.split('.').pop() : undefined}
/>
)
<ToolFileResult
title={t('mergeAudio.resultTitle')}
loading={loading}
value={result}
extension={result ? result.name.split('.').pop() : undefined}
/>
}
initialValues={initialValues}
getGroups={getGroups}
@@ -1,73 +0,0 @@
import { expect, describe, it, vi } from 'vitest';
// Mock FFmpeg since it doesn't support Node.js
vi.mock('@ffmpeg/ffmpeg', () => ({
FFmpeg: vi.fn().mockImplementation(() => ({
loaded: false,
load: vi.fn().mockResolvedValue(undefined),
writeFile: vi.fn().mockResolvedValue(undefined),
exec: vi.fn().mockResolvedValue(undefined),
readFile: vi.fn().mockResolvedValue(new Uint8Array([1, 2, 3, 4, 5])),
deleteFile: vi.fn().mockResolvedValue(undefined)
}))
}));
vi.mock('@ffmpeg/util', () => ({
fetchFile: vi.fn().mockResolvedValue(new Uint8Array([1, 2, 3, 4, 5]))
}));
import { mergeAudioFiles } from './service';
describe('mergeAudioFiles', () => {
it('should merge multiple audio files', async () => {
// Create mock audio files
const mockAudioData1 = new Uint8Array([0, 1, 2, 3, 4, 5]);
const mockAudioData2 = new Uint8Array([6, 7, 8, 9, 10, 11]);
const mockFile1 = new File([mockAudioData1], 'test1.mp3', {
type: 'audio/mp3'
});
const mockFile2 = new File([mockAudioData2], 'test2.mp3', {
type: 'audio/mp3'
});
const options = {
outputFormat: 'mp3' as const
};
const result = await mergeAudioFiles([mockFile1, mockFile2], options);
expect(result).toBeInstanceOf(File);
expect(result.name).toBe('merged_audio.mp3');
expect(result.type).toBe('audio/mp3');
});
it('should handle different output formats', async () => {
const mockAudioData = new Uint8Array([0, 1, 2, 3, 4, 5]);
const mockFile = new File([mockAudioData], 'test.wav', {
type: 'audio/wav'
});
const options = {
outputFormat: 'aac' as const
};
const result = await mergeAudioFiles([mockFile], options);
expect(result).toBeInstanceOf(File);
expect(result.name).toBe('merged_audio.aac');
expect(result.type).toBe('audio/aac');
});
it('should throw error when no input files provided', async () => {
const options = {
outputFormat: 'mp3' as const
};
try {
await mergeAudioFiles([], options);
expect.fail('Should have thrown an error');
} catch (error) {
expect(error).toBeInstanceOf(Error);
expect((error as Error).message).toBe('No input files provided');
}
});
});
+72 -94
View File
@@ -1,115 +1,93 @@
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { runFFmpegTask } from 'lib/ffmpeg';
import { fetchFile } from '@ffmpeg/util';
import { InitialValuesType } from './types';
const ffmpeg = new FFmpeg();
export async function mergeAudioFiles(
inputs: File[],
options: InitialValuesType
): Promise<File> {
if (!ffmpeg.loaded) {
await ffmpeg.load({
wasmURL:
'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.9/dist/esm/ffmpeg-core.wasm'
});
}
return runFFmpegTask(async ({ ffmpeg, tempFile }) => {
const { outputFormat } = options;
if (inputs.length === 0) {
throw new Error('No input files provided');
}
const tempWavNames: string[] = [];
const fileListName = tempFile('.txt');
const concatWavName = tempFile('.wav');
const outputName = tempFile(`.${outputFormat}`);
const { outputFormat } = options;
const outputName = `output.${outputFormat}`;
for (let i = 0; i < inputs.length; i++) {
const inputName = tempFile(
`.${inputs[i].name.split('.').pop() ?? 'tmp'}`
);
const tempWavName = tempFile('.wav');
// 1. Convert all inputs to WAV
const tempWavNames: string[] = [];
for (let i = 0; i < inputs.length; i++) {
const inputName = `input${i}`;
const tempWavName = `temp${i}.wav`;
await ffmpeg.writeFile(inputName, await fetchFile(inputs[i]));
await ffmpeg.exec([
'-i',
inputName,
'-acodec',
'pcm_s16le',
'-ar',
'44100',
'-ac',
'2',
tempWavName
]);
tempWavNames.push(tempWavName);
await ffmpeg.deleteFile(inputName);
}
await ffmpeg.writeFile(inputName, await fetchFile(inputs[i]));
// 2. Create file list for concat
const fileListName = 'filelist.txt';
const fileListContent = tempWavNames
.map((name) => `file '${name}'`)
.join('\n');
await ffmpeg.writeFile(fileListName, fileListContent);
// 3. Concatenate WAV files
const concatWav = 'concat.wav';
await ffmpeg.exec([
'-f',
'concat',
'-safe',
'0',
'-i',
fileListName,
'-c',
'copy',
concatWav
]);
// 4. Convert concatenated WAV to requested output format
let finalOutput = concatWav;
if (outputFormat !== 'wav') {
const args = ['-i', concatWav];
if (outputFormat === 'mp3') {
args.push(
await ffmpeg.exec([
'-i',
inputName,
'-acodec',
'pcm_s16le',
'-ar',
'44100',
'-ac',
'2',
'-b:a',
'192k',
'-f',
'mp3',
outputName
);
} else if (outputFormat === 'aac') {
args.push('-c:a', 'aac', '-b:a', '192k', '-f', 'adts', outputName);
tempWavName
]);
tempWavNames.push(tempWavName);
}
await ffmpeg.exec(args);
finalOutput = outputName;
}
const mergedAudio = await ffmpeg.readFile(finalOutput);
// Build concat file list
const fileListContent = tempWavNames
.map((name) => `file '${name}'`)
.join('\n');
let mimeType = 'audio/wav';
if (outputFormat === 'mp3') mimeType = 'audio/mp3';
if (outputFormat === 'aac') mimeType = 'audio/aac';
await ffmpeg.writeFile(fileListName, fileListContent);
// Clean up files
for (const tempWavName of tempWavNames) {
await ffmpeg.deleteFile(tempWavName);
}
await ffmpeg.deleteFile(fileListName);
await ffmpeg.deleteFile(concatWav);
if (outputFormat !== 'wav') {
await ffmpeg.deleteFile(outputName);
}
// Concatenate WAV files
await ffmpeg.exec([
'-f',
'concat',
'-safe',
'0',
'-i',
fileListName,
'-c',
'copy',
concatWavName
]);
return new File(
[
new Blob([mergedAudio as any], {
type: mimeType
})
],
`merged_audio.${outputFormat}`,
{ type: mimeType }
);
let finalOutput = concatWavName;
if (outputFormat !== 'wav') {
const args = ['-i', concatWavName];
switch (outputFormat) {
case 'mp3':
args.push('-b:a', '192k', '-f', 'mp3', outputName);
break;
case 'aac':
args.push('-c:a', 'aac', '-b:a', '192k', '-f', 'adts', outputName);
break;
}
await ffmpeg.exec(args);
finalOutput = outputName;
}
const data = await ffmpeg.readFile(finalOutput);
return new File(
[
new Blob([new Uint8Array(data as Uint8Array)], {
type: `audio/${outputFormat}`
})
],
`merged_audio.${outputFormat}`,
{
type: `audio/${outputFormat}`
}
);
});
}
+9 -15
View File
@@ -9,6 +9,7 @@ import ToolAudioInput from '@components/input/ToolAudioInput';
import ToolFileResult from '@components/result/ToolFileResult';
import TextFieldWithDesc from '@components/options/TextFieldWithDesc';
import { trimAudio } from './service';
import { getFileExtension } from '@utils/file';
const initialValues: InitialValuesType = {
startTime: '00:00:00',
@@ -22,7 +23,7 @@ const formatOptions = [
{ label: 'WAV', value: 'wav' }
];
export default function Trim({ title, longDescription }: ToolComponentProps) {
export default function Trim({ title }: ToolComponentProps) {
const { t } = useTranslation('audio');
const [input, setInput] = useState<File | null>(null);
const [result, setResult] = useState<File | null>(null);
@@ -110,19 +111,12 @@ export default function Trim({ title, longDescription }: ToolComponentProps) {
/>
}
resultComponent={
loading ? (
<ToolFileResult
title={t('trim.trimmingAudio')}
value={null}
loading={true}
/>
) : (
<ToolFileResult
title={t('trim.resultTitle')}
value={result}
extension={result ? result.name.split('.').pop() : undefined}
/>
)
<ToolFileResult
title={t('trim.resultTitle')}
loading={loading}
value={result}
extension={result ? getFileExtension(result.name) : undefined}
/>
}
initialValues={initialValues}
getGroups={getGroups}
@@ -130,7 +124,7 @@ export default function Trim({ title, longDescription }: ToolComponentProps) {
compute={compute}
toolInfo={{
title: t('trim.toolInfo.title', { title }),
description: longDescription
description: t('trim.toolInfo.longDescription')
}}
/>
);
+87 -98
View File
@@ -1,108 +1,97 @@
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { runFFmpegTask } from 'lib/ffmpeg';
import { fetchFile } from '@ffmpeg/util';
import { getFileExtension } from '@utils/file';
import { InitialValuesType } from './types';
const ffmpeg = new FFmpeg();
export async function trimAudio(
input: File,
options: InitialValuesType
): Promise<File> {
if (!ffmpeg.loaded) {
await ffmpeg.load({
wasmURL:
'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.9/dist/esm/ffmpeg-core.wasm'
return runFFmpegTask(async ({ ffmpeg, tempFile }) => {
const { startTime, endTime, outputFormat } = options;
const inputName = tempFile(getFileExtension(input.name));
const outputName = tempFile(`.${outputFormat}`);
await ffmpeg.writeFile(inputName, await fetchFile(input));
let args: string[] = [
'-i',
inputName,
'-ss',
startTime, // Start time
'-to',
endTime, // End time
'-c',
'copy'
];
// Add format-specific arguments
if (outputFormat === 'mp3') {
args = [
'-i',
inputName,
'-ss',
startTime,
'-to',
endTime,
'-ar',
'44100',
'-ac',
'2',
'-b:a',
'192k',
'-f',
'mp3',
outputName
];
} else if (outputFormat === 'aac') {
args = [
'-i',
inputName,
'-ss',
startTime,
'-to',
endTime,
'-c:a',
'aac',
'-b:a',
'192k',
'-f',
'adts',
outputName
];
} else if (outputFormat === 'wav') {
args = [
'-i',
inputName,
'-ss',
startTime,
'-to',
endTime,
'-acodec',
'pcm_s16le',
'-ar',
'44100',
'-ac',
'2',
'-f',
'wav',
outputName
];
}
await ffmpeg.exec(args);
const trimmedAudio = await ffmpeg.readFile(outputName);
const blob = new Blob([new Uint8Array(trimmedAudio as Uint8Array)], {
type: `audio/${outputFormat}`
});
}
const inputName = 'input.mp3';
await ffmpeg.writeFile(inputName, await fetchFile(input));
const { startTime, endTime, outputFormat } = options;
const outputName = `output.${outputFormat}`;
// Build FFmpeg arguments for trimming
let args: string[] = [
'-i',
inputName,
'-ss',
startTime, // Start time
'-to',
endTime, // End time
'-c',
'copy' // Copy without re-encoding for speed
];
// Add format-specific arguments
if (outputFormat === 'mp3') {
args = [
'-i',
inputName,
'-ss',
startTime,
'-to',
endTime,
'-ar',
'44100',
'-ac',
'2',
'-b:a',
'192k',
'-f',
'mp3',
outputName
];
} else if (outputFormat === 'aac') {
args = [
'-i',
inputName,
'-ss',
startTime,
'-to',
endTime,
'-c:a',
'aac',
'-b:a',
'192k',
'-f',
'adts',
outputName
];
} else if (outputFormat === 'wav') {
args = [
'-i',
inputName,
'-ss',
startTime,
'-to',
endTime,
'-acodec',
'pcm_s16le',
'-ar',
'44100',
'-ac',
'2',
'-f',
'wav',
outputName
];
}
await ffmpeg.exec(args);
const trimmedAudio = await ffmpeg.readFile(outputName);
let mimeType = 'audio/mp3';
if (outputFormat === 'aac') mimeType = 'audio/aac';
if (outputFormat === 'wav') mimeType = 'audio/wav';
return new File(
[
new Blob([trimmedAudio as any], {
type: mimeType
})
],
`${input.name.replace(/\.[^/.]+$/, '')}_trimmed.${outputFormat}`,
{ type: mimeType }
);
return new File(
[blob],
`${input.name.replace(/\.[^/.]+$/, '')}_trimmed.${outputFormat}`,
{ type: `audio/${outputFormat}` }
);
});
}
@@ -1,58 +0,0 @@
import { expect, describe, it, vi } from 'vitest';
// Mock FFmpeg since it doesn't support Node.js
vi.mock('@ffmpeg/ffmpeg', () => ({
FFmpeg: vi.fn().mockImplementation(() => ({
loaded: false,
load: vi.fn().mockResolvedValue(undefined),
writeFile: vi.fn().mockResolvedValue(undefined),
exec: vi.fn().mockResolvedValue(undefined),
readFile: vi.fn().mockResolvedValue(new Uint8Array([1, 2, 3, 4, 5])),
deleteFile: vi.fn().mockResolvedValue(undefined)
}))
}));
vi.mock('@ffmpeg/util', () => ({
fetchFile: vi.fn().mockResolvedValue(new Uint8Array([1, 2, 3, 4, 5]))
}));
import { trimAudio } from './service';
describe('trimAudio', () => {
it('should trim audio file with valid time parameters', async () => {
// Create a mock audio file
const mockAudioData = new Uint8Array([0, 1, 2, 3, 4, 5]);
const mockFile = new File([mockAudioData], 'test.mp3', {
type: 'audio/mp3'
});
const options = {
startTime: '00:00:10',
endTime: '00:00:20',
outputFormat: 'mp3' as const
};
const result = await trimAudio(mockFile, options);
expect(result).toBeInstanceOf(File);
expect(result.name).toContain('_trimmed.mp3');
expect(result.type).toBe('audio/mp3');
});
it('should handle different output formats', async () => {
const mockAudioData = new Uint8Array([0, 1, 2, 3, 4, 5]);
const mockFile = new File([mockAudioData], 'test.wav', {
type: 'audio/wav'
});
const options = {
startTime: '00:00:00',
endTime: '00:00:30',
outputFormat: 'wav' as const
};
const result = await trimAudio(mockFile, options);
expect(result).toBeInstanceOf(File);
expect(result.name).toContain('_trimmed.wav');
expect(result.type).toBe('audio/wav');
});
});
@@ -1,95 +0,0 @@
import { expect, describe, it, vi, beforeEach } from 'vitest';
import { convertAudio } from './service';
import { InitialValuesType } from './types';
// Mock FFmpeg since it doesn't support Node.js in tests
vi.mock('@ffmpeg/ffmpeg', () => ({
FFmpeg: vi.fn().mockImplementation(() => ({
loaded: false,
load: vi.fn().mockResolvedValue(undefined),
writeFile: vi.fn().mockResolvedValue(undefined),
exec: vi.fn().mockResolvedValue(undefined),
readFile: vi.fn().mockResolvedValue(new Uint8Array([10, 20, 30, 40, 50])),
deleteFile: vi.fn().mockResolvedValue(undefined)
}))
}));
vi.mock('@ffmpeg/util', () => ({
fetchFile: vi.fn().mockResolvedValue(new Uint8Array([10, 20, 30, 40, 50]))
}));
describe('convertAudio', () => {
let mockInputFile: File;
beforeEach(() => {
const mockAudioData = new Uint8Array([1, 2, 3, 4, 5]);
mockInputFile = new File([mockAudioData], 'input.aac', {
type: 'audio/aac'
});
});
it('should convert to MP3 format correctly', async () => {
const options: InitialValuesType = { outputFormat: 'mp3' };
const result = await convertAudio(mockInputFile, options);
expect(result).toBeInstanceOf(File);
expect(result.name).toBe('input.mp3');
expect(result.type).toBe('audio/mpeg');
});
it('should convert to AAC format correctly', async () => {
const options: InitialValuesType = { outputFormat: 'aac' };
const result = await convertAudio(mockInputFile, options);
expect(result).toBeInstanceOf(File);
expect(result.name).toBe('input.aac');
expect(result.type).toBe('audio/aac');
});
it('should convert to WAV format correctly', async () => {
const options: InitialValuesType = { outputFormat: 'wav' };
const result = await convertAudio(mockInputFile, options);
expect(result).toBeInstanceOf(File);
expect(result.name).toBe('input.wav');
expect(result.type).toBe('audio/wav');
});
it('should convert to FLAC format correctly', async () => {
const options: InitialValuesType = { outputFormat: 'flac' };
const result = await convertAudio(mockInputFile, options);
expect(result).toBeInstanceOf(File);
expect(result.name).toBe('input.flac');
expect(result.type).toBe('audio/flac');
});
it('should convert to OGG format correctly', async () => {
const options: InitialValuesType = { outputFormat: 'ogg' };
const result = await convertAudio(mockInputFile, options);
expect(result).toBeInstanceOf(File);
expect(result.name).toBe('input.ogg');
expect(result.type).toBe('audio/ogg');
});
it('should return original file if input format matches output format', async () => {
const options: InitialValuesType = { outputFormat: 'aac' };
const result = await convertAudio(mockInputFile, options);
expect(result).toBe(mockInputFile); // Same instance
expect(result.name).toBe('input.aac');
});
it('should handle files without extensions', async () => {
const fileNoExt = new File([new Uint8Array([1, 2, 3])], 'audiofile', {
type: 'audio/aac'
});
const options: InitialValuesType = { outputFormat: 'mp3' };
const result = await convertAudio(fileNoExt, options);
expect(result).toBeInstanceOf(File);
expect(result.name).toBe('audiofile.mp3');
expect(result.type).toBe('audio/mpeg');
});
});
@@ -1,82 +1,50 @@
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { fetchFile } from '@ffmpeg/util';
import { runFFmpegTask } from 'lib/ffmpeg';
import { InitialValuesType, AUDIO_FORMATS } from './types';
import { getFileExtension } from 'utils/file';
/**
* optimzed call for FFmpeg instance creation,
* avoiding to download required FFmpeg binaries on every reload
*/
const ffmpeg = new FFmpeg();
let isLoaded = false;
async function loadFFmpeg() {
if (!isLoaded) {
await ffmpeg.load();
isLoaded = true;
}
}
/**
* Converts input audio file to selected output format ('mp3', 'aac', or 'wav').
* Supports any input audio file type accepted by FFmpeg.
* Converts input audio file to selected output format.
*
* @param input - Source audio File
* @param outputFormat - 'mp3' | 'aac' | 'wav'
* @param options - Conversion options
* @returns Converted audio File
*/
export async function convertAudio(
input: File,
options: InitialValuesType
): Promise<File> {
await loadFFmpeg();
// Use the original input extension for input filename
const inputExt = getFileExtension(input.name);
if (inputExt === options.outputFormat) return input;
if (inputExt === options.outputFormat) {
return input;
}
const inputFileName = inputExt ? `input.${inputExt}` : 'input';
const outputFileName = `output.${options.outputFormat}`;
return runFFmpegTask(async ({ ffmpeg, tempFile }) => {
const inputFileName = tempFile(inputExt ? `.${inputExt}` : '');
// Write the input file to FFmpeg FS
await ffmpeg.writeFile(inputFileName, await fetchFile(input));
const outputFileName = tempFile(`.${options.outputFormat}`);
// Build the FFmpeg args depending on the output format
// You can customize the codec and bitrate options per format here
await ffmpeg.writeFile(inputFileName, await fetchFile(input));
const format = AUDIO_FORMATS[options.outputFormat];
const { codec, bitrate, mimeType } = format;
const { codec, bitrate, mimeType } = AUDIO_FORMATS[options.outputFormat];
const args = bitrate
? ['-i', inputFileName, '-c:a', codec, '-b:a', bitrate, outputFileName]
: ['-i', inputFileName, '-c:a', codec, outputFileName];
const args = bitrate
? ['-i', inputFileName, '-c:a', codec, '-b:a', bitrate, outputFileName]
: ['-i', inputFileName, '-c:a', codec, outputFileName];
// Execute ffmpeg with arguments
try {
await ffmpeg.exec(args);
// Read the output file from FFmpeg FS
const data = await ffmpeg.readFile(outputFileName);
// Create a new File with the original name but new extension
const baseName = input.name.replace(/\.[^.]+$/, '');
const convertedFileName = `${baseName}.${options.outputFormat}`;
const blob = new Blob([new Uint8Array(data as Uint8Array)], {
type: mimeType
});
return new File(
[new Blob([data as any], { type: mimeType })],
convertedFileName,
{
type: mimeType
}
);
} finally {
// Clean up FFmpeg virtual filesystem
try {
await ffmpeg.deleteFile(inputFileName);
await ffmpeg.deleteFile(outputFileName);
} catch (e) {
// Ignore cleanup errors
}
}
const baseName = input.name.replace(/\.[^.]+$/, '');
return new File([blob], `${baseName}.${options.outputFormat}`, {
type: mimeType
});
});
}
+3 -1
View File
@@ -1,9 +1,11 @@
import { tool as convertersAudioConverter } from './audio-converter/meta';
import { tool as convertersWebpConverter } from './convert-to-webp/meta';
import { tool as convertersJpgConverter } from './convert-to-jpg/meta';
import { tool as convertersGifConverter } from './video-to-gif/meta';
export const convertersTools = [
convertersAudioConverter,
convertersWebpConverter,
convertersJpgConverter
convertersJpgConverter,
convertersGifConverter
];
@@ -0,0 +1,121 @@
import { Box } from '@mui/material';
import React, { useState, useCallback } from 'react';
import ToolContent from '@components/ToolContent';
import { ToolComponentProps } from '@tools/defineTool';
import { GetGroupsType } from '@components/options/ToolOptions';
import TextFieldWithDesc from '@components/options/TextFieldWithDesc';
import { updateNumberField } from '@utils/string';
import { InitialValuesType, GIF_PRESETS, Quality } from './types';
import ToolVideoInput from '@components/input/ToolVideoInput';
import ToolFileResult from '@components/result/ToolFileResult';
import SimpleRadio from '@components/options/SimpleRadio';
import { useTranslation } from 'react-i18next';
import { debounce } from 'lodash';
import { videoToGif } from './service';
const initialValues: InitialValuesType = {
quality: 'mid',
start: 0,
end: 100
};
export default function VideoToGif({ title }: ToolComponentProps) {
const { t } = useTranslation('converters');
const [input, setInput] = useState<File | null>(null);
const [result, setResult] = useState<File | null>(null);
const [loading, setLoading] = useState(false);
const compute = async (values: InitialValuesType, input: File | null) => {
if (!input) return;
setLoading(true);
try {
const resultFile = await videoToGif(input, values);
setResult(resultFile);
} catch (error) {
console.error('Error converting video to gif:', error);
} finally {
setLoading(false);
}
};
const debouncedCompute = useCallback(debounce(compute, 1000), []);
const getGroups: GetGroupsType<InitialValuesType> | null = ({
values,
updateField
}) => [
{
title: t('videoToGif.options.quality'),
component: (
<Box>
{(Object.keys(GIF_PRESETS) as Quality[]).map((quality) => (
<SimpleRadio
key={quality}
title={t(`videoToGif.options.${quality}`)}
checked={values.quality === quality}
onClick={() => updateField('quality', quality)}
/>
))}
</Box>
)
},
{
title: t('videoToGif.options.timestamps'),
component: (
<Box>
<TextFieldWithDesc
onOwnChange={(value) =>
updateNumberField(value, 'start', updateField)
}
value={values.start}
label={t('videoToGif.options.startTime')}
sx={{ mb: 2, backgroundColor: 'background.paper' }}
/>
<TextFieldWithDesc
onOwnChange={(value) =>
updateNumberField(value, 'end', updateField)
}
value={values.end}
label={t('videoToGif.options.endTime')}
/>
</Box>
)
}
];
return (
<ToolContent
title={title}
input={input}
renderCustomInput={({ start, end }, setFieldValue) => {
return (
<ToolVideoInput
value={input}
onChange={setInput}
title={t('videoToGif.inputTitle')}
showTrimControls={true}
onTrimChange={(start, end) => {
setFieldValue('start', start);
setFieldValue('end', end);
}}
trimStart={start}
trimEnd={end}
/>
);
}}
resultComponent={
<ToolFileResult
title={t('videoToGif.resultTitle')}
loading={loading}
value={result}
extension="gif"
/>
}
initialValues={initialValues}
getGroups={getGroups}
setInput={setInput}
compute={debouncedCompute}
/>
);
}
@@ -1,15 +1,15 @@
import { defineTool } from '@tools/defineTool';
import { lazy } from 'react';
export const tool = defineTool('video', {
export const tool = defineTool('converters', {
path: 'video-to-gif',
icon: 'material-symbols:gif',
keywords: ['video', 'gif', 'convert', 'animated', 'image'],
component: lazy(() => import('./index')),
i18n: {
name: 'video:videoToGif.title',
description: 'video:videoToGif.description',
shortDescription: 'video:videoToGif.shortDescription',
name: 'converters:videoToGif.title',
description: 'converters:videoToGif.description',
shortDescription: 'converters:videoToGif.shortDescription',
userTypes: ['generalUsers']
}
});
@@ -0,0 +1,55 @@
import { runFFmpegTask } from 'lib/ffmpeg';
import { fetchFile } from '@ffmpeg/util';
import { GIF_PRESETS, InitialValuesType } from './types';
export const videoToGif = async (
input: File,
options: InitialValuesType
): Promise<File> => {
return runFFmpegTask(async ({ ffmpeg, tempFile }) => {
const fileName = tempFile('.mp4');
const outputName = tempFile('.gif');
const paletteName = tempFile('.png');
const { start, end, quality } = options;
const { fps, scale } = GIF_PRESETS[quality];
await ffmpeg.writeFile(fileName, await fetchFile(input));
await ffmpeg.exec([
'-i',
fileName,
'-ss',
start.toString(),
'-to',
end.toString(),
'-vf',
`fps=${fps},scale=${scale},palettegen`,
paletteName
]);
await ffmpeg.exec([
'-i',
fileName,
'-i',
paletteName,
'-ss',
start.toString(),
'-to',
end.toString(),
'-filter_complex',
`fps=${fps},scale=${scale}[x];[x][1:v]paletteuse`,
outputName
]);
const data = await ffmpeg.readFile(outputName);
const blob = new Blob([new Uint8Array(data as Uint8Array)], {
type: 'image/gif'
});
return new File([blob], `${input.name.replace(/\.[^/.]+$/, '')}.gif`, {
type: 'image/gif'
});
});
};
@@ -0,0 +1,32 @@
export type Quality = 'low' | 'mid' | 'high' | 'ultra';
export type InitialValuesType = {
quality: Quality;
start: number;
end: number;
};
export const GIF_PRESETS: Record<
Quality,
{
fps: string;
scale: string;
}
> = {
low: {
fps: '5',
scale: '240:-1:flags=bilinear'
},
mid: {
fps: '10',
scale: '320:-1:flags=bicubic'
},
high: {
fps: '15',
scale: '480:-1:flags=lanczos'
},
ultra: {
fps: '15',
scale: '640:-1:flags=lanczos'
}
};
@@ -0,0 +1,86 @@
import { describe, it, expect } from 'vitest';
import { convertCsvToXml } from './service';
const defaultOptions = {
delimiter: ',',
quote: '"',
comment: '#',
useHeaders: true,
skipEmptyLines: true
};
describe('convertCsvToXml', () => {
it('should convert basic CSV to XML with headers', () => {
const result = convertCsvToXml(
'name,age\nJohn,30\nAlice,25',
defaultOptions
);
expect(result).toContain('<name>John</name>');
expect(result).toContain('<name>Alice</name>');
expect(result).toContain('<age>30</age>');
expect(result).toContain('<age>25</age>');
});
it('should escape ampersands in cell values', () => {
const result = convertCsvToXml('name\nA&B', defaultOptions);
expect(result).toContain('<name>A&amp;B</name>');
expect(result).not.toContain('<name>A&B</name>');
});
it('should escape less-than and greater-than in cell values', () => {
const result = convertCsvToXml('name\n<tag>', defaultOptions);
expect(result).toContain('<name>&lt;tag&gt;</name>');
});
it('should escape double quotes in cell values', () => {
const result = convertCsvToXml('name\nsay "hello"', defaultOptions);
expect(result).toContain('&quot;');
});
it('should handle normal data without corruption', () => {
const result = convertCsvToXml(
'name,age,city\nJohn,30,New York',
defaultOptions
);
expect(result).toContain('<name>John</name>');
expect(result).toContain('<age>30</age>');
expect(result).toContain('<city>New York</city>');
});
it('should sanitize header names containing spaces', () => {
const result = convertCsvToXml(
'first name,last name\nJohn,Doe',
defaultOptions
);
expect(result).toContain('<first_name>John</first_name>');
expect(result).toContain('<last_name>Doe</last_name>');
});
it('should handle empty cell values', () => {
const result = convertCsvToXml('name,age,city\nJohn,,', defaultOptions);
expect(result).toContain('<name>John</name>');
expect(result).toContain('<age></age>');
expect(result).toContain('<city></city>');
});
it('should return empty root element for empty input', () => {
const result = convertCsvToXml('', defaultOptions);
expect(result).toBe(
'<?xml version="1.0" encoding="UTF-8" ?>\n<root></root>'
);
});
it('should include XML declaration', () => {
const result = convertCsvToXml('name\nJohn', defaultOptions);
expect(result).toContain('<?xml version="1.0" encoding="UTF-8" ?>');
});
it('should escape all five XML special characters', () => {
const result = convertCsvToXml('name\n& < > " \'', defaultOptions);
expect(result).toContain('&amp;');
expect(result).toContain('&lt;');
expect(result).toContain('&gt;');
expect(result).toContain('&quot;');
expect(result).toContain('&#039;');
});
});
+1 -8
View File
@@ -8,14 +8,7 @@ import { ToolComponentProps } from '@tools/defineTool';
import { Box } from '@mui/material';
import CheckboxWithDesc from '@components/options/CheckboxWithDesc';
import TextFieldWithDesc from '@components/options/TextFieldWithDesc';
type InitialValuesType = {
delimiter: string;
quote: string;
comment: string;
useHeaders: boolean;
skipEmptyLines: boolean;
};
import { InitialValuesType } from './types';
const initialValues: InitialValuesType = {
delimiter: ',',
+34 -14
View File
@@ -1,14 +1,10 @@
type CsvToXmlOptions = {
delimiter: string;
quote: string;
comment: string;
useHeaders: boolean;
skipEmptyLines: boolean;
};
import { InitialValuesType } from './types';
import { escapeMarkup } from '@utils/string';
import { normalizeXmlTagName } from '@utils/xml';
export const convertCsvToXml = (
csv: string,
options: CsvToXmlOptions
options: InitialValuesType
): string => {
const lines = csv.split('\n').map((line) => line.trim());
@@ -27,15 +23,23 @@ export const convertCsvToXml = (
}
if (options.useHeaders) {
headers = parseCsvLine(validLines[0], options);
headers = parseCsvLine(validLines[0], options).map(normalizeXmlTagName);
validLines.shift();
} else {
// No header row to source tag names from - fall back to positional
// column names (col1, col2, ...) based on the first data row's width,
// so rows still get real field tags instead of coming out empty.
const columnCount = parseCsvLine(validLines[0], options).length;
headers = Array.from({ length: columnCount }, (_, i) => `col${i + 1}`);
}
validLines.forEach((line, index) => {
const values = parseCsvLine(line, options);
xmlResult += ` <row id="${index}">\n`;
headers.forEach((header, i) => {
xmlResult += ` <${header}>${values[i] || ''}</${header}>\n`;
xmlResult += ` <${header}>${escapeMarkup(
values[i] || ''
)}</${header}>\n`;
});
xmlResult += ` </row>\n`;
});
@@ -44,7 +48,7 @@ export const convertCsvToXml = (
return xmlResult;
};
const parseCsvLine = (line: string, options: CsvToXmlOptions): string[] => {
const parseCsvLine = (line: string, options: InitialValuesType): string[] => {
const values: string[] = [];
let currentValue = '';
let inQuotes = false;
@@ -52,9 +56,25 @@ const parseCsvLine = (line: string, options: CsvToXmlOptions): string[] => {
for (let i = 0; i < line.length; i++) {
const char = line[i];
if (char === options.quote) {
inQuotes = !inQuotes;
} else if (char === options.delimiter && !inQuotes) {
if (inQuotes) {
if (char === options.quote) {
// A doubled quote ("") inside a quoted field is an escaped
// literal quote, not the end of the field.
if (line[i + 1] === options.quote) {
currentValue += options.quote;
i++;
} else {
inQuotes = false;
}
} else {
currentValue += char;
}
} else if (char === options.quote && currentValue === '') {
// Only treat a quote as opening a quoted field when it's the very
// first character of the field - a quote appearing mid-field
// (e.g. `say "hello"`) is just literal text, not a CSV delimiter.
inQuotes = true;
} else if (char === options.delimiter) {
values.push(currentValue.trim());
currentValue = '';
} else {
+7
View File
@@ -0,0 +1,7 @@
export type InitialValuesType = {
delimiter: string;
quote: string;
comment: string;
useHeaders: boolean;
skipEmptyLines: boolean;
};
+2 -6
View File
@@ -48,12 +48,8 @@ export function convertTsvToJson(
}
return options.indentationType === 'none'
? minifyJson(JSON.stringify(result))
: beautifyJson(
JSON.stringify(result),
options.indentationType,
options.spacesCount
);
? minifyJson(JSON.stringify(result)).result
: beautifyJson(JSON.stringify(result), options);
}
const parseCsvLine = (line: string, options: InitialValuesType): string[] => {
+2
View File
@@ -10,6 +10,7 @@ import { tool as imageToText } from './image-to-text/meta';
import { tool as qrCodeGenerator } from './qr-code/meta';
import { tool as rotateImage } from './rotate/meta';
import { tool as imageEditor } from './editor/meta';
import { tool as watermark } from './watermark/meta';
export const imageGenericTools = [
imageEditor,
@@ -23,5 +24,6 @@ export const imageGenericTools = [
imageToText,
qrCodeGenerator,
rotateImage,
watermark,
splitImage
];
+191 -208
View File
@@ -1,17 +1,15 @@
import React, { useCallback, useState } from 'react';
import { Box } from '@mui/material';
import * as Yup from 'yup';
import { Box, MenuItem, TextField } from '@mui/material';
import { useTranslation } from 'react-i18next';
import ToolContent from '@components/ToolContent';
import { ToolComponentProps } from '@tools/defineTool';
import { GetGroupsType } from '@components/options/ToolOptions';
import TextFieldWithDesc from '@components/options/TextFieldWithDesc';
import SelectWithDesc from '@components/options/SelectWithDesc';
import { InitialValuesType, QRCodeType, WifiEncryptionType } from './types';
import ColorSelector from '@components/options/ColorSelector';
import ToolFileResult from '@components/result/ToolFileResult';
import { useTranslation } from 'react-i18next';
import * as QRCode from 'qrcode';
import { debounce } from 'lodash';
import { generateQrCodeFile } from './service';
const initialValues: InitialValuesType = {
qrCodeType: 'URL',
@@ -20,6 +18,7 @@ const initialValues: InitialValuesType = {
size: '200',
bgColor: '#FFFFFF',
fgColor: '#000000',
correctionLevel: 'M',
// URL
url: 'https://example.com',
@@ -53,172 +52,104 @@ const initialValues: InitialValuesType = {
vCardTitle: '',
vCardWebsite: ''
};
// Function to format the QR code data based on the type
const formatQRCodeData = (values: InitialValuesType): string => {
switch (values.qrCodeType) {
case 'URL':
return values.url;
case 'Text':
return values.text;
case 'Email': {
let emailData = `mailto:${values.emailAddress}`;
if (values.emailSubject || values.emailBody) {
emailData += '?';
if (values.emailSubject) {
emailData += `subject=${encodeURIComponent(values.emailSubject)}`;
}
if (values.emailBody) {
emailData += `${
values.emailSubject ? '&' : ''
}body=${encodeURIComponent(values.emailBody)}`;
}
}
return emailData;
}
case 'Phone':
return `tel:${values.phoneNumber}`;
case 'SMS':
return `sms:${values.smsNumber}${
values.smsMessage
? `?body=${encodeURIComponent(values.smsMessage)}`
: ''
}`;
case 'WiFi': {
const encryption =
values.wifiEncryption === 'None' ? 'nopass' : values.wifiEncryption;
return `WIFI:T:${encryption};S:${values.wifiSsid};P:${values.wifiPassword};;`;
}
case 'vCard':
return `BEGIN:VCARD
VERSION:3.0
N:${values.vCardName}
FN:${values.vCardName}
ORG:${values.vCardCompany}
TITLE:${values.vCardTitle}
TEL:${values.vCardPhone}
EMAIL:${values.vCardEmail}
ADR:${values.vCardAddress}
URL:${values.vCardWebsite}
END:VCARD`;
default:
return '';
}
};
const validationSchema = Yup.object().shape({
qrCodeType: Yup.string().required('QR code type is required'),
size: Yup.number()
.min(100, 'Size must be at least 100px')
.max(1000, 'Size must be at most 1000px')
.required('Size is required'),
bgColor: Yup.string().required('Background color is required'),
fgColor: Yup.string().required('Foreground color is required'),
// URL
url: Yup.string().when('qrCodeType', {
is: 'URL',
then: (schema) =>
schema.url('Please enter a valid URL').required('URL is required')
}),
// Text
text: Yup.string().when('qrCodeType', {
is: 'Text',
then: (schema) => schema.required('Text is required')
}),
// Email
emailAddress: Yup.string().when('qrCodeType', {
is: 'Email',
then: (schema) =>
schema
.email('Please enter a valid email address')
.required('Email address is required')
}),
// Phone
phoneNumber: Yup.string().when('qrCodeType', {
is: 'Phone',
then: (schema) => schema.required('Phone number is required')
}),
// SMS
smsNumber: Yup.string().when('qrCodeType', {
is: 'SMS',
then: (schema) => schema.required('Phone number is required')
}),
// WiFi
wifiSsid: Yup.string().when('qrCodeType', {
is: 'WiFi',
then: (schema) => schema.required('SSID is required')
}),
// vCard
vCardName: Yup.string().when('qrCodeType', {
is: 'vCard',
then: (schema) => schema.required('Name is required')
})
});
export default function QRCodeGenerator({ title }: ToolComponentProps) {
const { t } = useTranslation('image');
const [result, setResult] = useState<File | null>(null);
const getGroups: GetGroupsType<InitialValuesType> = ({
values,
updateField
}) => {
return [
{
title: 'QR Code Type',
title: t('qrCode.groups.type.title'),
component: (
<Box>
<SelectWithDesc
selected={values.qrCodeType}
onChange={(value) =>
updateField('qrCodeType', value as QRCodeType)
<TextField
select
fullWidth
value={values.qrCodeType}
onChange={(e) =>
updateField('qrCodeType', e.target.value as QRCodeType)
}
options={[
{ label: 'URL', value: 'URL' },
{ label: 'Text', value: 'Text' },
{ label: 'Email', value: 'Email' },
{ label: 'Phone', value: 'Phone' },
{ label: 'SMS', value: 'SMS' },
{ label: 'WiFi', value: 'WiFi' },
{ label: 'vCard', value: 'vCard' }
]}
description={t('qrCode.options.qrType')}
/>
label={t('qrCode.groups.type.label')}
margin="normal"
>
<MenuItem value="URL">
{t('qrCode.groups.type.options.url')}
</MenuItem>
<MenuItem value="Text">
{t('qrCode.groups.type.options.text')}
</MenuItem>
<MenuItem value="Email">
{t('qrCode.groups.type.options.email')}
</MenuItem>
<MenuItem value="Phone">
{t('qrCode.groups.type.options.phone')}
</MenuItem>
<MenuItem value="SMS">
{t('qrCode.groups.type.options.sms')}
</MenuItem>
<MenuItem value="WiFi">
{t('qrCode.groups.type.options.wifi')}
</MenuItem>
<MenuItem value="vCard">
{t('qrCode.groups.type.options.vcard')}
</MenuItem>
</TextField>
</Box>
)
},
{
title: 'QR Code Settings',
title: t('qrCode.groups.settings.title'),
component: (
<Box>
<TextFieldWithDesc
value={values.size}
onOwnChange={(val) => updateField('size', val)}
description={t('qrCode.options.size')}
description={t('qrCode.groups.settings.size.description')}
inputProps={{
type: 'number',
min: 100,
max: 1000
}}
/>
<TextField
select
fullWidth
label={t('qrCode.groups.settings.correctionLevel.label')}
margin="normal"
value={values.correctionLevel}
onChange={(e) =>
updateField(
'correctionLevel',
e.target.value as 'L' | 'M' | 'Q' | 'H'
)
}
helperText={t(
'qrCode.groups.settings.correctionLevel.helperText'
)}
>
<MenuItem value="L">
{t('qrCode.groups.settings.correctionLevel.options.l')}
</MenuItem>
<MenuItem value="M">
{t('qrCode.groups.settings.correctionLevel.options.m')}
</MenuItem>
<MenuItem value="Q">
{t('qrCode.groups.settings.correctionLevel.options.q')}
</MenuItem>
<MenuItem value="H">
{t('qrCode.groups.settings.correctionLevel.options.h')}
</MenuItem>
</TextField>
<ColorSelector
description="Background Color"
description={t('qrCode.groups.settings.bgColor')}
value={values.bgColor}
onColorChange={(val) => updateField('bgColor', val)}
/>
<ColorSelector
description="Foreground Color"
description={t('qrCode.groups.settings.fgColor')}
value={values.fgColor}
onColorChange={(val) => updateField('fgColor', val)}
/>
@@ -227,16 +158,16 @@ export default function QRCodeGenerator({ title }: ToolComponentProps) {
},
// Dynamic form fields based on QR code type
{
title: `${values.qrCodeType} Details`,
title: t('qrCode.groups.details.title', { type: values.qrCodeType }),
component: (
<Box>
{values.qrCodeType === 'URL' && (
<TextFieldWithDesc
value={values.url}
onOwnChange={(val) => updateField('url', val)}
description={t('qrCode.options.url')}
description={t('qrCode.groups.details.url.description')}
inputProps={{
placeholder: 'https://example.com'
placeholder: t('qrCode.groups.details.url.placeholder')
}}
/>
)}
@@ -245,11 +176,11 @@ export default function QRCodeGenerator({ title }: ToolComponentProps) {
<TextFieldWithDesc
value={values.text}
onOwnChange={(val) => updateField('text', val)}
description={t('qrCode.options.text')}
description={t('qrCode.groups.details.text.description')}
multiline
rows={4}
inputProps={{
placeholder: 'Lorem Ipsum'
placeholder: t('qrCode.groups.details.text.placeholder')
}}
/>
)}
@@ -259,28 +190,40 @@ export default function QRCodeGenerator({ title }: ToolComponentProps) {
<TextFieldWithDesc
value={values.emailAddress}
onOwnChange={(val) => updateField('emailAddress', val)}
description={t('qrCode.options.email')}
description={t(
'qrCode.groups.details.email.address.description'
)}
inputProps={{
placeholder: 'example@example.com',
placeholder: t(
'qrCode.groups.details.email.address.placeholder'
),
type: 'email'
}}
/>
<TextFieldWithDesc
value={values.emailSubject}
onOwnChange={(val) => updateField('emailSubject', val)}
description={t('qrCode.options.emailSubject')}
description={t(
'qrCode.groups.details.email.subject.description'
)}
inputProps={{
placeholder: 'Subject line'
placeholder: t(
'qrCode.groups.details.email.subject.placeholder'
)
}}
/>
<TextFieldWithDesc
value={values.emailBody}
onOwnChange={(val) => updateField('emailBody', val)}
description={t('qrCode.options.emailBody')}
description={t(
'qrCode.groups.details.email.body.description'
)}
multiline
rows={4}
inputProps={{
placeholder: 'Body text'
placeholder: t(
'qrCode.groups.details.email.body.placeholder'
)
}}
/>
</>
@@ -290,9 +233,9 @@ export default function QRCodeGenerator({ title }: ToolComponentProps) {
<TextFieldWithDesc
value={values.phoneNumber}
onOwnChange={(val) => updateField('phoneNumber', val)}
description={t('qrCode.options.phone')}
description={t('qrCode.groups.details.phone.description')}
inputProps={{
placeholder: '+1234567890',
placeholder: t('qrCode.groups.details.phone.placeholder'),
type: 'tel'
}}
/>
@@ -303,20 +246,28 @@ export default function QRCodeGenerator({ title }: ToolComponentProps) {
<TextFieldWithDesc
value={values.smsNumber}
onOwnChange={(val) => updateField('smsNumber', val)}
description={t('qrCode.options.phone')}
description={t(
'qrCode.groups.details.sms.number.description'
)}
inputProps={{
placeholder: '+1234567890',
placeholder: t(
'qrCode.groups.details.sms.number.placeholder'
),
type: 'tel'
}}
/>
<TextFieldWithDesc
value={values.smsMessage}
onOwnChange={(val) => updateField('smsMessage', val)}
description={t('qrCode.options.message')}
description={t(
'qrCode.groups.details.sms.message.description'
)}
multiline
rows={4}
inputProps={{
placeholder: 'Lorem Ipsum'
placeholder: t(
'qrCode.groups.details.sms.message.placeholder'
)
}}
/>
</>
@@ -327,32 +278,49 @@ export default function QRCodeGenerator({ title }: ToolComponentProps) {
<TextFieldWithDesc
value={values.wifiSsid}
onOwnChange={(val) => updateField('wifiSsid', val)}
description={t('qrCode.options.ssid')}
description={t('qrCode.groups.details.wifi.ssid.description')}
inputProps={{
placeholder: 'WIFI name'
placeholder: t(
'qrCode.groups.details.wifi.ssid.placeholder'
)
}}
/>
<TextFieldWithDesc
value={values.wifiPassword}
onOwnChange={(val) => updateField('wifiPassword', val)}
description={t('qrCode.options.password')}
description={t(
'qrCode.groups.details.wifi.password.description'
)}
inputProps={{
placeholder: '******',
placeholder: t(
'qrCode.groups.details.wifi.password.placeholder'
),
type: 'password'
}}
/>
<SelectWithDesc
selected={values.wifiEncryption}
onChange={(value) =>
updateField('wifiEncryption', value as WifiEncryptionType)
<TextField
select
fullWidth
value={values.wifiEncryption}
onChange={(e) =>
updateField(
'wifiEncryption',
e.target.value as WifiEncryptionType
)
}
options={[
{ label: 'WPA', value: 'WPA' },
{ label: 'WEP', value: 'WEP' },
{ label: 'None', value: 'None' }
]}
description={t('qrCode.options.encryptionType')}
/>
label={t('qrCode.groups.details.wifi.encryption.label')}
margin="normal"
>
<MenuItem value="WPA">
{t('qrCode.groups.details.wifi.encryption.options.wpa')}
</MenuItem>
<MenuItem value="WEP">
{t('qrCode.groups.details.wifi.encryption.options.wep')}
</MenuItem>
<MenuItem value="None">
{t('qrCode.groups.details.wifi.encryption.options.none')}
</MenuItem>
</TextField>
</>
)}
@@ -361,59 +329,87 @@ export default function QRCodeGenerator({ title }: ToolComponentProps) {
<TextFieldWithDesc
value={values.vCardName}
onOwnChange={(val) => updateField('vCardName', val)}
description={t('qrCode.options.fullName')}
description={t(
'qrCode.groups.details.vcard.name.description'
)}
inputProps={{
placeholder: 'John Doe'
placeholder: t(
'qrCode.groups.details.vcard.name.placeholder'
)
}}
/>
<TextFieldWithDesc
value={values.vCardEmail}
onOwnChange={(val) => updateField('vCardEmail', val)}
description={t('qrCode.options.email')}
description={t(
'qrCode.groups.details.vcard.email.description'
)}
inputProps={{
placeholder: 'john@example.com',
placeholder: t(
'qrCode.groups.details.vcard.email.placeholder'
),
type: 'email'
}}
/>
<TextFieldWithDesc
value={values.vCardPhone}
onOwnChange={(val) => updateField('vCardPhone', val)}
description={t('qrCode.options.phone')}
description={t(
'qrCode.groups.details.vcard.phone.description'
)}
inputProps={{
placeholder: '+1234567890',
placeholder: t(
'qrCode.groups.details.vcard.phone.placeholder'
),
type: 'tel'
}}
/>
<TextFieldWithDesc
value={values.vCardAddress}
onOwnChange={(val) => updateField('vCardAddress', val)}
description={t('qrCode.options.address')}
description={t(
'qrCode.groups.details.vcard.address.description'
)}
inputProps={{
placeholder: '123 Main St, City, Country'
placeholder: t(
'qrCode.groups.details.vcard.address.placeholder'
)
}}
/>
<TextFieldWithDesc
value={values.vCardCompany}
onOwnChange={(val) => updateField('vCardCompany', val)}
description={t('qrCode.options.company')}
description={t(
'qrCode.groups.details.vcard.company.description'
)}
inputProps={{
placeholder: 'Company name'
placeholder: t(
'qrCode.groups.details.vcard.company.placeholder'
)
}}
/>
<TextFieldWithDesc
value={values.vCardTitle}
onOwnChange={(val) => updateField('vCardTitle', val)}
description={t('qrCode.options.job')}
description={t(
'qrCode.groups.details.vcard.title.description'
)}
inputProps={{
placeholder: 'Software Developer'
placeholder: t(
'qrCode.groups.details.vcard.title.placeholder'
)
}}
/>
<TextFieldWithDesc
value={values.vCardWebsite}
onOwnChange={(val) => updateField('vCardWebsite', val)}
description={t('qrCode.options.website')}
description={t(
'qrCode.groups.details.vcard.website.description'
)}
inputProps={{
placeholder: 'https://example.com'
placeholder: t(
'qrCode.groups.details.vcard.website.placeholder'
)
}}
/>
</>
@@ -425,27 +421,15 @@ export default function QRCodeGenerator({ title }: ToolComponentProps) {
};
const compute = async (options: InitialValuesType) => {
const qrValue = formatQRCodeData(options);
if (!qrValue) return;
const canvas = document.createElement('canvas');
QRCode.toDataURL(
canvas,
qrValue,
{
color: {
dark: options.fgColor,
light: options.bgColor
},
width: Number(options.size) || 200
},
async (error, url) => {
const res = await fetch(url);
const blob = await res.blob();
const file = new File([blob], 'Qr code.png', { type: 'image/png' });
setResult(file);
}
);
try {
const file = await generateQrCodeFile(options);
setResult(file);
} catch (err) {
console.error('Failed to generate QR code', err);
setResult(null);
}
};
const debouncedCompute = useCallback(debounce(compute, 1000), []);
return (
@@ -453,14 +437,13 @@ export default function QRCodeGenerator({ title }: ToolComponentProps) {
title={title}
initialValues={initialValues}
getGroups={getGroups}
validationSchema={validationSchema}
compute={debouncedCompute}
resultComponent={
<ToolFileResult title={t('qrCode.resultOutput')} value={result} />
<ToolFileResult title={t('qrCode.result.title')} value={result} />
}
toolInfo={{
title: t('qrCode.title'),
description: t('qrCode.description')
description: t('qrCode.longDescription')
}}
/>
);
@@ -0,0 +1,106 @@
import * as QRCode from 'qrcode';
import { InitialValuesType } from './types';
/** Formats the raw form values into the string that gets encoded in the QR code, based on the selected type. */
export function formatQRCodeData(values: InitialValuesType): string {
switch (values.qrCodeType) {
case 'URL':
return values.url;
case 'Text':
return values.text;
case 'Email': {
let emailData = `mailto:${values.emailAddress}`;
if (values.emailSubject || values.emailBody) {
emailData += '?';
if (values.emailSubject) {
emailData += `subject=${encodeURIComponent(values.emailSubject)}`;
}
if (values.emailBody) {
emailData += `${
values.emailSubject ? '&' : ''
}body=${encodeURIComponent(values.emailBody)}`;
}
}
return emailData;
}
case 'Phone':
return `tel:${values.phoneNumber}`;
case 'SMS':
return `sms:${values.smsNumber}${
values.smsMessage
? `?body=${encodeURIComponent(values.smsMessage)}`
: ''
}`;
case 'WiFi': {
const encryption =
values.wifiEncryption === 'None' ? 'nopass' : values.wifiEncryption;
return `WIFI:T:${encryption};S:${values.wifiSsid};P:${values.wifiPassword};;`;
}
case 'vCard':
return `BEGIN:VCARD
VERSION:3.0
N:${values.vCardName}
FN:${values.vCardName}
ORG:${values.vCardCompany}
TITLE:${values.vCardTitle}
TEL:${values.vCardPhone}
EMAIL:${values.vCardEmail}
ADR:${values.vCardAddress}
URL:${values.vCardWebsite}
END:VCARD`;
default:
return '';
}
}
/**
* Renders the QR code for the given form values and returns it as a
* downloadable PNG File. Returns null if there's nothing to encode yet
* (e.g. required field for the current type is still empty).
*/
export function generateQrCodeFile(
options: InitialValuesType
): Promise<File | null> {
const qrValue = formatQRCodeData(options);
if (!qrValue) return Promise.resolve(null);
const canvas = document.createElement('canvas');
return new Promise((resolve, reject) => {
QRCode.toDataURL(
canvas,
qrValue,
{
color: {
dark: options.fgColor,
light: options.bgColor
},
width: Number(options.size) || 200,
errorCorrectionLevel: options.correctionLevel
},
async (error, url) => {
// The original callback never checked `error`, so a QR generation
// failure (e.g. text too long for the chosen correction level)
// would silently try to fetch `undefined` and throw a confusing
// error instead. Surface it properly here.
if (error) {
reject(error);
return;
}
try {
const res = await fetch(url);
const blob = await res.blob();
const file = new File([blob], 'qr-code.png', { type: 'image/png' });
resolve(file);
} catch (fetchErr) {
reject(fetchErr);
}
}
);
});
}
@@ -7,6 +7,8 @@ export type QRCodeType =
| 'WiFi'
| 'vCard';
export type QRErrorCorrectionLevel = 'L' | 'M' | 'Q' | 'H';
export type WifiEncryptionType = 'WPA' | 'WEP' | 'None';
export interface InitialValuesType {
@@ -16,6 +18,7 @@ export interface InitialValuesType {
size: string;
bgColor: string;
fgColor: string;
correctionLevel: QRErrorCorrectionLevel;
// URL
url: string;
@@ -223,6 +223,7 @@ export default function ResizeImage({ title }: ToolComponentProps) {
<ToolFileResult
title={t('resize.resultTitle')}
value={results[0] ?? null}
loading={isProcessing}
extension={results[0]?.name.split('.').pop() || 'png'}
/>
)
+123 -115
View File
@@ -1,5 +1,5 @@
import { InitialValuesType } from './types';
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { runFFmpegTask } from 'lib/ffmpeg';
import { fetchFile } from '@ffmpeg/util';
import JSZip from 'jszip';
@@ -15,54 +15,54 @@ const processImage = async (
dimensionType,
maintainAspectRatio
} = options;
if (file.type === 'image/svg+xml') {
try {
// Read the SVG file
const fileText = await file.text();
const parser = new DOMParser();
const svgDoc = parser.parseFromString(fileText, 'image/svg+xml');
const svgElement = svgDoc.documentElement;
// Get original dimensions
const viewBox = svgElement.getAttribute('viewBox');
let originalWidth: string | number | null =
svgElement.getAttribute('width');
let originalHeight: string | number | null =
svgElement.getAttribute('height');
// Parse viewBox if available and width/height are not explicitly set
let viewBoxValues = null;
if (viewBox) {
viewBoxValues = viewBox.split(' ').map(Number);
}
// Determine original dimensions from viewBox if not explicitly set
if (!originalWidth && viewBoxValues && viewBoxValues.length === 4) {
if (!originalWidth && viewBoxValues?.length === 4) {
originalWidth = String(viewBoxValues[2]);
}
if (!originalHeight && viewBoxValues && viewBoxValues.length === 4) {
if (!originalHeight && viewBoxValues?.length === 4) {
originalHeight = String(viewBoxValues[3]);
}
// Default dimensions if still not available
originalWidth = originalWidth ? parseFloat(originalWidth) : 300;
originalHeight = originalHeight ? parseFloat(originalHeight) : 150;
// Calculate new dimensions
let newWidth = originalWidth;
let newHeight = originalHeight;
if (resizeMethod === 'pixels') {
if (dimensionType === 'width') {
newWidth = parseInt(width);
if (maintainAspectRatio) {
newHeight = Math.round((newWidth / originalWidth) * originalHeight);
} else {
newHeight = parseInt(height);
}
} else {
// height
newHeight = parseInt(height);
if (maintainAspectRatio) {
newWidth = Math.round((newHeight / originalHeight) * originalWidth);
} else {
@@ -70,17 +70,15 @@ const processImage = async (
}
}
} else {
// percentage
const scale = parseInt(percentage) / 100;
newWidth = Math.round(originalWidth * scale);
newHeight = Math.round(originalHeight * scale);
}
// Update SVG attributes
svgElement.setAttribute('width', String(newWidth));
svgElement.setAttribute('height', String(newHeight));
// If viewBox isn't already set, add it to preserve scaling
if (!viewBox) {
svgElement.setAttribute(
'viewBox',
@@ -88,134 +86,129 @@ const processImage = async (
);
}
// Serialize the modified SVG document
const serializer = new XMLSerializer();
const svgString = serializer.serializeToString(svgDoc);
// Create a new file
return new File([svgString], file.name, {
type: 'image/svg+xml'
});
} catch (error) {
console.error('Error processing SVG:', error);
// Fall back to canvas method if SVG processing fails
}
} else if (file.type === 'image/gif') {
}
if (file.type === 'image/gif') {
try {
const ffmpeg = new FFmpeg();
return await runFFmpegTask(async ({ ffmpeg, tempFile }) => {
const inputName = tempFile('.gif');
const outputName = tempFile('.gif');
await ffmpeg.load({
wasmURL:
'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.9/dist/esm/ffmpeg-core.wasm'
});
await ffmpeg.writeFile(inputName, await fetchFile(file));
// Write the input file to memory
await ffmpeg.writeFile('input.gif', await fetchFile(file));
let scaleFilter = '';
// Calculate new dimensions
let newWidth = 0;
let newHeight = 0;
let scaleFilter = '';
if (resizeMethod === 'pixels') {
if (dimensionType === 'width') {
const newWidth = parseInt(width);
if (resizeMethod === 'pixels') {
if (dimensionType === 'width') {
newWidth = parseInt(width);
if (maintainAspectRatio) {
scaleFilter = `scale=${newWidth}:-1`;
scaleFilter = maintainAspectRatio
? `scale=${newWidth}:-1`
: `scale=${newWidth}:${parseInt(height)}`;
} else {
newHeight = parseInt(height);
scaleFilter = `scale=${newWidth}:${newHeight}`;
const newHeight = parseInt(height);
scaleFilter = maintainAspectRatio
? `scale=-1:${newHeight}`
: `scale=${parseInt(width)}:${newHeight}`;
}
} else {
// height
newHeight = parseInt(height);
if (maintainAspectRatio) {
scaleFilter = `scale=-1:${newHeight}`;
} else {
newWidth = parseInt(width);
scaleFilter = `scale=${newWidth}:${newHeight}`;
}
const scale = parseInt(percentage) / 100;
scaleFilter = `scale=iw*${scale}:ih*${scale}`;
}
} else {
// percentage
const scale = parseInt(percentage) / 100;
scaleFilter = `scale=iw*${scale}:ih*${scale}`;
}
// Run FFmpeg command
await ffmpeg.exec(['-i', 'input.gif', '-vf', scaleFilter, 'output.gif']);
await ffmpeg.exec([
'-i',
inputName,
'-vf',
`${scaleFilter},split[a][b];[a]palettegen[p];[b][p]paletteuse`,
outputName
]);
// Read the output file
const data = await ffmpeg.readFile('output.gif');
const data = await ffmpeg.readFile(outputName);
// Create a new File object
return new File([data as any], file.name, { type: 'image/gif' });
return new File([new Uint8Array(data as Uint8Array)], file.name, {
type: 'image/gif'
});
});
} catch (error) {
console.error('Error processing GIF with FFmpeg:', error);
// Fall back to canvas method if FFmpeg processing fails
}
}
// Create canvas
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
if (ctx == null) return null;
// Load image
const img = new Image();
img.src = URL.createObjectURL(file);
await img.decode();
try {
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
// Calculate new dimensions
let newWidth = img.width;
let newHeight = img.height;
if (!ctx) return null;
if (resizeMethod === 'pixels') {
if (dimensionType === 'width') {
newWidth = parseInt(width);
if (maintainAspectRatio) {
newHeight = Math.round((newWidth / img.width) * img.height);
const img = new Image();
img.src = URL.createObjectURL(file);
await img.decode();
let newWidth = img.width;
let newHeight = img.height;
if (resizeMethod === 'pixels') {
if (dimensionType === 'width') {
newWidth = parseInt(width);
if (maintainAspectRatio) {
newHeight = Math.round((newWidth / img.width) * img.height);
} else {
newHeight = parseInt(height);
}
} else {
newHeight = parseInt(height);
if (maintainAspectRatio) {
newWidth = Math.round((newHeight / img.height) * img.width);
} else {
newWidth = parseInt(width);
}
}
} else {
// height
newHeight = parseInt(height);
if (maintainAspectRatio) {
newWidth = Math.round((newHeight / img.height) * img.width);
} else {
newWidth = parseInt(width);
}
const scale = parseInt(percentage) / 100;
newWidth = Math.round(img.width * scale);
newHeight = Math.round(img.height * scale);
}
} else {
// percentage
const scale = parseInt(percentage) / 100;
newWidth = Math.round(img.width * scale);
newHeight = Math.round(img.height * scale);
canvas.width = newWidth;
canvas.height = newHeight;
ctx.drawImage(img, 0, 0, newWidth, newHeight);
const outputType = file.type || 'image/png';
return new Promise((resolve) => {
canvas.toBlob((blob) => {
if (!blob) {
resolve(null);
return;
}
resolve(
new File([blob], file.name, {
type: outputType
})
);
}, outputType);
});
} catch (error) {
console.error('Error processing image:', error);
return null;
}
// Set canvas dimensions
canvas.width = newWidth;
canvas.height = newHeight;
// Draw resized image
ctx.drawImage(img, 0, 0, newWidth, newHeight);
// Determine output type based on input file
let outputType = 'image/png';
if (file.type) {
outputType = file.type;
}
// Convert canvas to blob and create file
return new Promise((resolve) => {
canvas.toBlob((blob) => {
if (blob) {
resolve(new File([blob], file.name, { type: outputType }));
} else {
resolve(null);
}
}, outputType);
});
};
export const resizeImages = async (
@@ -234,20 +227,35 @@ export const resizeImages = async (
})
);
const results = processed.filter((f): f is File => f !== null);
const results = processed.filter((file): file is File => file !== null);
if (results.length === 0) return null;
if (results.length === 0) {
return null;
}
if (results.length === 1) return { results, zipFile: null };
if (results.length === 1) {
return {
results,
zipFile: null
};
}
const zip = new JSZip();
results.forEach((file) => zip.file(file.name, file));
const zipBlob = await zip.generateAsync({ type: 'blob' });
const zipFile = new File([zipBlob], 'resized-images.zip', {
type: 'application/zip'
results.forEach((file) => {
zip.file(file.name, file);
});
return { results, zipFile };
const zipBlob = await zip.generateAsync({
type: 'blob'
});
return {
results,
zipFile: new File([zipBlob], 'resized-images.zip', {
type: 'application/zip'
})
};
} catch (error) {
console.error('Error processing images:', error);
return null;
+27 -21
View File
@@ -1,7 +1,7 @@
import { ToolComponentProps } from '@tools/defineTool';
import { InitialValuesType } from './type';
import * as Yup from 'yup';
import { getFileExtension } from '@utils/file';
import { useState } from 'react';
import { GetGroupsType } from '@components/options/ToolOptions';
import SimpleRadio from '@components/options/SimpleRadio';
@@ -12,6 +12,7 @@ import ToolContent from '@components/ToolContent';
import ToolImageInput from '@components/input/ToolImageInput';
import ToolFileResult from '@components/result/ToolFileResult';
import { processImage } from './service';
import { useTranslation } from 'react-i18next';
const initialValues: InitialValuesType = {
rotateAngle: '90',
@@ -30,32 +31,43 @@ const validationSchema = Yup.object({
});
export default function RotateImage({ title }: ToolComponentProps) {
const { t } = useTranslation('image');
const [input, setInput] = useState<File | null>(null);
const [result, setResult] = useState<File | null>(null);
const [loading, setLoading] = useState(false);
const compute = async (optionsValues: InitialValuesType, input: any) => {
if (!input) return;
setResult(await processImage(input, optionsValues));
setLoading(true);
try {
const rotatedFile = await processImage(input, optionsValues);
setResult(rotatedFile);
} catch (err) {
console.error(`Failed to rotate image input: ${err}`);
setResult(null);
} finally {
setLoading(false);
}
};
const getGroups: GetGroupsType<InitialValuesType> = ({
values,
updateField
}) => [
{
title: 'Rotate Method',
title: t('rotate.options.method'),
component: (
<Box>
<SimpleRadio
onClick={() => updateField('rotateMethod', 'Preset')}
checked={values.rotateMethod === 'Preset'}
description={'Rotate by a specific angle in degrees.'}
title={'Preset angle'}
description={t('rotate.options.presetDesc')}
title={t('rotate.options.presetTitle')}
/>
<SimpleRadio
onClick={() => updateField('rotateMethod', 'Custom')}
checked={values.rotateMethod === 'Custom'}
description={'Rotate by a custom angle in degrees.'}
title={'Custom angle'}
description={t('rotate.options.customDesc')}
title={t('rotate.options.customTitle')}
/>
</Box>
)
@@ -63,13 +75,13 @@ export default function RotateImage({ title }: ToolComponentProps) {
...(values.rotateMethod === 'Preset'
? [
{
title: 'Preset angle',
title: t('rotate.options.angle'),
component: (
<Box>
<SelectWithDesc
selected={values.rotateAngle}
onChange={(val) => updateField('rotateAngle', val)}
description={'Rotate by a specific angle in degrees.'}
description={''}
options={[
{ label: '90 degrees', value: '90' },
{ label: '180 degrees', value: '180' },
@@ -82,15 +94,13 @@ export default function RotateImage({ title }: ToolComponentProps) {
]
: [
{
title: 'Custom angle',
title: t('rotate.options.angle'),
component: (
<Box>
<TextFieldWithDesc
value={values.rotateAngle}
onOwnChange={(val) => updateField('rotateAngle', val)}
description={
'Rotate by a custom angle in degrees(from -360 to 360).'
}
description={'- 360 ↔ 360'}
inputProps={{
type: 'number',
min: -360,
@@ -115,22 +125,18 @@ export default function RotateImage({ title }: ToolComponentProps) {
<ToolImageInput
value={input}
onChange={setInput}
title={'Input Image'}
title={t('rotate.inputTitle')}
accept={['image/*']}
/>
}
resultComponent={
<ToolFileResult
value={result}
title={'Rotated Image'}
extension={input?.name.split('.').pop() || 'png'}
title={t('rotate.resultTitle')}
loading={loading}
extension={result ? getFileExtension(result.name) : undefined}
/>
}
toolInfo={{
title: 'Rotate Image',
description:
'This tool allows you to rotate images by a specific angle in any degrees.'
}}
/>
);
}
+23 -20
View File
@@ -1,12 +1,13 @@
import { InitialValuesType } from './type';
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { runFFmpegTask } from 'lib/ffmpeg';
import { fetchFile } from '@ffmpeg/util';
import { getFileExtension } from '@utils/file';
export const processImage = async (
file: File,
options: InitialValuesType
): Promise<File | null> => {
const { rotateAngle, rotateMethod } = options;
const { rotateAngle } = options;
if (file.type === 'image/svg+xml') {
try {
// Read the SVG file
@@ -45,30 +46,32 @@ export const processImage = async (
}
// For non-SVG images, use FFmpeg
try {
const ffmpeg = new FFmpeg();
await ffmpeg.load();
return runFFmpegTask(async ({ ffmpeg, tempFile }) => {
const extension = getFileExtension(file.name) ?? 'png';
// Write input file
await ffmpeg.writeFile('input', await fetchFile(file));
const inputName = tempFile(`.${extension}`);
const outputName = tempFile('.png');
// Determine rotation command
const rotateCmd = `rotate=${rotateAngle}*PI/180`;
await ffmpeg.writeFile(inputName, await fetchFile(file));
const radians = `${Number(rotateAngle)}*PI/180`;
// Execute FFmpeg command
await ffmpeg.exec([
'-i',
'input',
inputName,
'-vf',
rotateCmd,
'output.' + file.name.split('.').pop()
`rotate=${radians}:ow=rotw(${radians}):oh=roth(${radians}):fillcolor=none`,
outputName
]);
// Read the output file
const data = await ffmpeg.readFile('output.' + file.name.split('.').pop());
return new File([data as any], file.name, { type: file.type });
} catch (error) {
console.error('Error processing image:', error);
return null;
}
const data = await ffmpeg.readFile(outputName);
return new File(
[new Uint8Array(data as Uint8Array)],
`rotated_${file.name.replace(/\.[^/.]+$/, '.png')}`,
{
type: 'image/png'
}
);
});
};
@@ -0,0 +1,228 @@
import { Box } from '@mui/material';
import React, { useState, useContext } from 'react';
import * as Yup from 'yup';
import ToolMultipleImageInput, {
MultiImageInput
} from '@components/input/ToolMultipleImageInput';
import ToolMultiFileResult from '@components/result/ToolMultiFileResult';
import ColorSelector from '@components/options/ColorSelector';
import ToolFileResult from '@components/result/ToolFileResult';
import { GetGroupsType } from '@components/options/ToolOptions';
import TextFieldWithDesc from '@components/options/TextFieldWithDesc';
import ToolContent from '@components/ToolContent';
import { ToolComponentProps } from '@tools/defineTool';
import SimpleRadio from '@components/options/SimpleRadio';
import { watermarkImages } from './service';
import { InitialValuesType } from './types';
import { CustomSnackBarContext } from 'contexts/CustomSnackBarContext';
import { useTranslation } from 'react-i18next';
import { getFileExtension } from '@utils/file';
const initialValues: InitialValuesType = {
filename: true,
watermark: 'OMNITOOLS',
watermarkOpacity: 0.35,
fontSize: 32,
position: 'bottom-right',
color: '#ffffff'
};
const validationSchema = Yup.object({
watermarkOpacity: Yup.number()
.min(0, 'Opacity must be between 0 and 1')
.max(1, 'Opacity must be between 0 and 1')
.required('Opacity is required'),
fontSize: Yup.number()
.min(8, 'Font size must be at least 8px')
.max(512, 'Font size is too large')
.required('Font size is required'),
color: Yup.string().required('Color is required')
});
export default function Watermark({ title }: ToolComponentProps) {
const { t } = useTranslation('image');
const [input, setInput] = useState<MultiImageInput[]>([]);
const [result, setResult] = useState<File[]>([]);
const [zipFile, setZipFile] = useState<File | null>(null);
const [isProcessing, setIsProcessing] = useState<boolean>(false);
const { showSnackBar } = useContext(CustomSnackBarContext);
const compute = async (
optionsValues: InitialValuesType,
input: MultiImageInput[]
) => {
if (!input || input.length === 0) return;
try {
setIsProcessing(true);
const output = await watermarkImages(
input.map((img) => img.file),
optionsValues
);
if (!output) {
showSnackBar(t('watermark.failedToProcess'), 'error');
return;
} else {
setResult(output.results);
setZipFile(output.zipFile);
}
} catch (error) {
showSnackBar(`Error converting files: ${error}`, 'error');
setZipFile(null);
} finally {
setIsProcessing(false);
}
};
const getGroups: GetGroupsType<InitialValuesType> = ({
values,
updateField
}) => [
{
title: t('watermark.options.watermarkTitle'),
component: (
<Box>
<Box mb={3}>
<SimpleRadio
onClick={() => updateField('filename', true)}
checked={values.filename === true}
title={t('watermark.options.filenameWatermarkTitle')}
description={t('watermark.options.filenameWatermarkDesc')}
/>
<SimpleRadio
onClick={() => updateField('filename', false)}
checked={values.filename === false}
title={t('watermark.options.customStringWatermarkTitle')}
description={t('watermark.options.customStringWatermarkDesc')}
/>
</Box>
{!values.filename && (
<TextFieldWithDesc
value={values.watermark}
onOwnChange={(val) => updateField('watermark', val)}
description={t('watermark.options.watermark')}
inputProps={{
'data-testid': 'watermark-input',
type: 'string'
}}
/>
)}
</Box>
)
},
{
title: t('watermark.options.styleTitle'),
component: (
<Box>
<TextFieldWithDesc
value={String(values.watermarkOpacity)}
onOwnChange={(val) => updateField('watermarkOpacity', Number(val))}
description={t('watermark.options.opacity')}
inputProps={{
'data-testid': 'opacity-input',
type: 'number',
min: 0,
max: 1,
step: 0.05
}}
/>
<TextFieldWithDesc
value={String(values.fontSize)}
onOwnChange={(val) => updateField('fontSize', Number(val))}
description={t('watermark.options.fontSize')}
inputProps={{
'data-testid': 'font-size-input',
type: 'number',
min: 8,
max: 512,
step: 1
}}
/>
<ColorSelector
value={values.color}
onColorChange={(val) => updateField('color', val)}
description={t('watermark.options.color')}
inputProps={{
'data-testid': 'color-input'
}}
/>
</Box>
)
},
{
title: t('watermark.options.positionTitle'),
component: (
<Box>
<SimpleRadio
onClick={() => updateField('position', 'bottom-right')}
checked={values.position === 'bottom-right'}
title={t('watermark.options.position.bottomRight')}
/>
<SimpleRadio
onClick={() => updateField('position', 'bottom-left')}
checked={values.position === 'bottom-left'}
title={t('watermark.options.position.bottomLeft')}
/>
<SimpleRadio
onClick={() => updateField('position', 'top-right')}
checked={values.position === 'top-right'}
title={t('watermark.options.position.topRight')}
/>
<SimpleRadio
onClick={() => updateField('position', 'top-left')}
checked={values.position === 'top-left'}
title={t('watermark.options.position.topLeft')}
/>
<SimpleRadio
onClick={() => updateField('position', 'center')}
checked={values.position === 'center'}
title={t('watermark.options.position.center')}
/>
</Box>
)
}
];
return (
<ToolContent
title={title}
initialValues={initialValues}
getGroups={getGroups}
compute={compute}
input={input}
validationSchema={validationSchema}
inputComponent={
<ToolMultipleImageInput
value={input}
type={'image'}
onChange={setInput}
accept={['image/*']}
title={t('watermark.inputTitle')}
/>
}
resultComponent={
zipFile ? (
<ToolMultiFileResult
title={t('watermark.outputTitle')}
value={result}
zipFile={zipFile}
loading={isProcessing}
/>
) : (
<ToolFileResult
title={t('watermark.outputTitle')}
value={result[0] ?? null}
extension={result[0] ? getFileExtension(result[0].name) : undefined}
loading={isProcessing}
/>
)
}
toolInfo={{
title: t('watermark.toolInfo.title'),
description: t('watermark.toolInfo.longDescription')
}}
/>
);
}
@@ -0,0 +1,26 @@
import { defineTool } from '@tools/defineTool';
import { lazy } from 'react';
export const tool = defineTool('image-generic', {
i18n: {
name: 'image:watermark.title',
description: 'image:watermark.description',
shortDescription: 'image:watermark.shortDescription',
userTypes: ['generalUsers']
},
path: 'watermark',
icon: 'mdi:watermark',
keywords: [
'watermark',
'image',
'text',
'filename',
'overlay',
'branding',
'stamp'
],
component: lazy(() => import('./index'))
});
@@ -0,0 +1,192 @@
import { InitialValuesType, Position } from './types';
import { heicTo, isHeic } from 'heic-to';
import JSZip from 'jszip';
function computePosition(
position: Position,
canvasWidth: number,
canvasHeight: number,
padding: number
) {
switch (position) {
case 'top-left':
return {
x: padding,
y: padding,
align: 'left' as const,
baseline: 'top' as const
};
case 'top-right':
return {
x: canvasWidth - padding,
y: padding,
align: 'right' as const,
baseline: 'top' as const
};
case 'bottom-left':
return {
x: padding,
y: canvasHeight - padding,
align: 'left' as const,
baseline: 'bottom' as const
};
case 'center':
return {
x: canvasWidth / 2,
y: canvasHeight / 2,
align: 'center' as const,
baseline: 'middle' as const
};
case 'bottom-right':
default:
return {
x: canvasWidth - padding,
y: canvasHeight - padding,
align: 'right' as const,
baseline: 'bottom' as const
};
}
}
const processImage = async (
file: File,
options: InitialValuesType
): Promise<File | undefined> => {
const { watermarkOpacity, fontSize, position, color } = options;
let processedFile = file;
if (await isHeic(file)) {
const convertedBlob = await heicTo({ blob: file, type: 'image/jpeg' });
processedFile = new File(
[convertedBlob],
file.name.replace(/\.[^/.]+$/, '') + '.jpg',
{ type: 'image/jpeg' }
);
}
// Skip formats we don't watermark yet
if (processedFile.type === 'image/svg+xml') {
console.warn('SVG watermark not supported yet.');
return;
}
if (processedFile.type === 'image/gif') {
console.warn('GIF watermark not supported yet.');
return;
}
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
if (ctx == null) return;
const img = new Image();
img.src = URL.createObjectURL(processedFile);
try {
await img.decode();
canvas.width = img.width;
canvas.height = img.height;
ctx.drawImage(img, 0, 0);
// Watermark text from the original filename
const text = options.filename
? file.name
.replace(/\.[^/.]+$/, '')
.replace(/[_-]+/g, ' ')
.trim()
: options.watermark;
if (!text) return;
const padding = Math.max(
12,
Math.round(Math.min(canvas.width, canvas.height) * 0.02)
);
ctx.save();
ctx.globalAlpha = watermarkOpacity;
ctx.fillStyle = color;
ctx.font = `bold ${fontSize}px sans-serif`;
ctx.shadowColor = 'rgba(0,0,0,0.65)';
ctx.shadowBlur = 6;
ctx.shadowOffsetX = 2;
ctx.shadowOffsetY = 2;
const pos = computePosition(position, canvas.width, canvas.height, padding);
ctx.textAlign = pos.align;
ctx.textBaseline = pos.baseline;
ctx.fillText(text, pos.x, pos.y);
ctx.restore();
// Keep the original format (PNG/JPEG/WebP), default to PNG otherwise
const outputType =
processedFile.type === 'image/jpeg' || processedFile.type === 'image/webp'
? processedFile.type
: 'image/png';
const ext =
outputType === 'image/jpeg'
? 'jpeg'
: outputType === 'image/webp'
? 'webp'
: 'png';
const quality = outputType === 'image/jpeg' ? 0.92 : undefined;
return new Promise((resolve) => {
canvas.toBlob(
(blob) => {
if (blob) {
const fileName =
file.name.replace(/\.[^/.]+$/, '') + `_watermarked.${ext}`;
resolve(new File([blob], fileName, { type: outputType }));
} else {
resolve(undefined);
}
},
outputType,
quality
);
});
} catch (error) {
console.error('Error processing image:', error);
} finally {
URL.revokeObjectURL(img.src);
}
};
export const watermarkImages = async (
files: File[],
options: InitialValuesType
): Promise<{ results: File[]; zipFile: File | null } | null> => {
try {
const watermarked = await Promise.all(
files.map(async (file) => {
try {
return (await processImage(file, options)) ?? null;
} catch (error) {
console.error(`Error watermarking ${file.name}:`, error);
return null;
}
})
);
const results = watermarked.filter((f): f is File => f !== null);
if (results.length === 0) return null;
if (results.length === 1) return { results, zipFile: null };
const zip = new JSZip();
results.forEach((file) => zip.file(file.name, file));
const zipBlob = await zip.generateAsync({ type: 'blob' });
const zipFile = new File([zipBlob], 'watermarked-images.zip', {
type: 'application/zip'
});
return { results, zipFile };
} catch (error) {
console.error('Error watermarking images:', error);
return null;
}
};
Loaded 100 of 186 files, more files were not shown because too many files have changed in this diff. Show more