fix: resolve 7 bugs from QA sweep (#208)

- Fix selective metadata stripping (P1): use Sharp's keepExif()/keepIccProfile()
  instead of broken withMetadata({}) that preserved everything
- Fix meme font mapping (P1): add ArchivoBlack and ComicNeue fonts, map
  arial-black and comic-sans to correct TTF files instead of Anton
- Fix meme contentType (P2): detect actual output format from Sharp metadata
  instead of hardcoding image/png
- Fix info/text-overlay/color-palette i18n (P2): wire up existing translation
  keys that were imported but never used
- Fix info and color-palette displayMode (P2): change from before-after to
  no-comparison since neither tool produces a processed image
- Add missing i18n keys across all 21 locales
- Update displayMode test assertions
This commit is contained in:
SnapOtter
2026-06-07 18:27:09 +08:00
committed by GitHub
parent 59c9df3f0d
commit 73b259462a
32 changed files with 278 additions and 70 deletions
+1
View File
@@ -68,3 +68,4 @@ scripts/setup-cloudflare-email.sh
apps/videos apps/videos
remotion/ remotion/
demo demo
pentest-results/
+2 -2
View File
@@ -39,8 +39,8 @@ const FONT_DIR = join(import.meta.dirname, "../../static/fonts");
const FONT_MAP: Record<string, string> = { const FONT_MAP: Record<string, string> = {
anton: "Anton-Regular.ttf", anton: "Anton-Regular.ttf",
"arial-black": "Anton-Regular.ttf", "arial-black": "ArchivoBlack-Regular.ttf",
"comic-sans": "Anton-Regular.ttf", "comic-sans": "ComicNeue-Bold.ttf",
montserrat: "Montserrat-Black.ttf", montserrat: "Montserrat-Black.ttf",
"bebas-neue": "BebasNeue-Regular.ttf", "bebas-neue": "BebasNeue-Regular.ttf",
"permanent-marker": "PermanentMarker-Regular.ttf", "permanent-marker": "PermanentMarker-Regular.ttf",
+10 -2
View File
@@ -159,14 +159,22 @@ async function processMeme(
.composite([{ input: svgBuffer }]) .composite([{ input: svgBuffer }])
.toBuffer(); .toBuffer();
} else { } else {
// No text -- just pass the image through
result = await sharp(imageBuffer).toBuffer(); result = await sharp(imageBuffer).toBuffer();
} }
const outputMeta = await sharp(result).metadata();
const detectedFormat = outputMeta.format ?? "png";
const mimeMap: Record<string, string> = {
jpeg: "image/jpeg",
png: "image/png",
webp: "image/webp",
gif: "image/gif",
};
return { return {
buffer: result, buffer: result,
filename, filename,
contentType: "image/png", contentType: mimeMap[detectedFormat] ?? "image/png",
}; };
} }
Binary file not shown.
Binary file not shown.
@@ -6,6 +6,7 @@ import { copyToClipboard } from "@/lib/utils";
import { useFileStore } from "@/stores/file-store"; import { useFileStore } from "@/stores/file-store";
export function ColorPaletteSettings() { export function ColorPaletteSettings() {
const { t } = useTranslation(); const { t } = useTranslation();
const ts = t.toolSettings["color-palette"];
const { files, processing, error, setProcessing, setError } = useFileStore(); const { files, processing, error, setProcessing, setError } = useFileStore();
const [colors, setColors] = useState<string[]>([]); const [colors, setColors] = useState<string[]>([]);
const [copiedIdx, setCopiedIdx] = useState<number | null>(null); const [copiedIdx, setCopiedIdx] = useState<number | null>(null);
@@ -35,7 +36,7 @@ export function ColorPaletteSettings() {
const data = await res.json(); const data = await res.json();
setColors(data.colors); setColors(data.colors);
} catch (err) { } catch (err) {
setError(err instanceof Error ? err.message : "Extraction failed"); setError(err instanceof Error ? err.message : ts.extracting);
} finally { } finally {
setProcessing(false); setProcessing(false);
} }
@@ -61,7 +62,7 @@ export function ColorPaletteSettings() {
className="w-full py-2.5 rounded-lg bg-primary text-primary-foreground font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2" className="w-full py-2.5 rounded-lg bg-primary text-primary-foreground font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2"
> >
{processing && <Loader2 className="h-4 w-4 animate-spin" />} {processing && <Loader2 className="h-4 w-4 animate-spin" />}
{processing ? "Extracting..." : "Extract Colors"} {processing ? ts.extracting : ts.submit}
</button> </button>
{error && <p className="text-xs text-red-500">{error}</p>} {error && <p className="text-xs text-red-500">{error}</p>}
@@ -69,7 +70,7 @@ export function ColorPaletteSettings() {
{colors.length > 0 && ( {colors.length > 0 && (
<div className="space-y-2"> <div className="space-y-2">
<p className="text-xs font-medium text-muted-foreground"> <p className="text-xs font-medium text-muted-foreground">
Dominant Colors ({colors.length}) {ts.dominantColors} ({colors.length})
</p> </p>
<div className="grid grid-cols-2 gap-1.5"> <div className="grid grid-cols-2 gap-1.5">
{colors.map((color, i) => ( {colors.map((color, i) => (
+24 -22
View File
@@ -80,14 +80,14 @@ export function InfoSettings() {
setInfo(data); setInfo(data);
} catch (err) { } catch (err) {
if (err instanceof DOMException && err.name === "AbortError") return; if (err instanceof DOMException && err.name === "AbortError") return;
setError(err instanceof Error ? err.message : "Failed to read info"); setError(err instanceof Error ? err.message : t.toolSettings.info.failedToRead);
} finally { } finally {
if (!controller.signal.aborted) { if (!controller.signal.aborted) {
setProcessing(false); setProcessing(false);
} }
} }
}, },
[setProcessing, setError], [setProcessing, setError, t],
); );
useEffect(() => { useEffect(() => {
@@ -122,6 +122,8 @@ export function InfoSettings() {
alpha: "bg-gray-500", alpha: "bg-gray-500",
}; };
const ts = t.toolSettings.info;
return ( return (
<div className="space-y-4"> <div className="space-y-4">
<button <button
@@ -132,7 +134,7 @@ export function InfoSettings() {
className="w-full py-2.5 rounded-lg bg-primary text-primary-foreground font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2" className="w-full py-2.5 rounded-lg bg-primary text-primary-foreground font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2"
> >
{processing && <Loader2 className="h-4 w-4 animate-spin" />} {processing && <Loader2 className="h-4 w-4 animate-spin" />}
{processing ? "Reading..." : "Read Info"} {processing ? ts.reading : ts.readInfo}
</button> </button>
{error && <p className="text-xs text-red-500">{error}</p>} {error && <p className="text-xs text-red-500">{error}</p>}
@@ -140,37 +142,37 @@ export function InfoSettings() {
{info && ( {info && (
<div className="space-y-3"> <div className="space-y-3">
<div className="grid grid-cols-2 gap-1 text-xs"> <div className="grid grid-cols-2 gap-1 text-xs">
<div className="text-muted-foreground">Dimensions</div> <div className="text-muted-foreground">{ts.dimensions}</div>
<div className="text-foreground font-mono"> <div className="text-foreground font-mono">
{info.width} x {info.height} {info.width} x {info.height}
</div> </div>
<div className="text-muted-foreground">Format</div> <div className="text-muted-foreground">{ts.format}</div>
<div className="text-foreground font-mono">{info.format}</div> <div className="text-foreground font-mono">{info.format}</div>
<div className="text-muted-foreground">File Size</div> <div className="text-muted-foreground">{ts.fileSize}</div>
<div className="text-foreground font-mono">{(info.fileSize / 1024).toFixed(1)} KB</div> <div className="text-foreground font-mono">{(info.fileSize / 1024).toFixed(1)} KB</div>
<div className="text-muted-foreground">Channels</div> <div className="text-muted-foreground">{ts.channels}</div>
<div className="text-foreground font-mono">{info.channels}</div> <div className="text-foreground font-mono">{info.channels}</div>
<div className="text-muted-foreground">Color Space</div> <div className="text-muted-foreground">{ts.colorSpace}</div>
<div className="text-foreground font-mono">{info.colorSpace}</div> <div className="text-foreground font-mono">{info.colorSpace}</div>
<div className="text-muted-foreground">Alpha</div> <div className="text-muted-foreground">{ts.hasAlpha}</div>
<div className="text-foreground font-mono">{info.hasAlpha ? "Yes" : "No"}</div> <div className="text-foreground font-mono">{info.hasAlpha ? ts.yes : ts.no}</div>
<div className="text-muted-foreground">DPI</div> <div className="text-muted-foreground">{ts.density}</div>
<div className="text-foreground font-mono">{info.density ?? "N/A"}</div> <div className="text-foreground font-mono">{info.density ?? ts.na}</div>
<div className="text-muted-foreground">Progressive</div> <div className="text-muted-foreground">{ts.progressive}</div>
<div className="text-foreground font-mono">{info.isProgressive ? "Yes" : "No"}</div> <div className="text-foreground font-mono">{info.isProgressive ? ts.yes : ts.no}</div>
<div className="text-muted-foreground">ICC Profile</div> <div className="text-muted-foreground">{ts.hasIcc}</div>
<div className="text-foreground font-mono">{info.hasIcc ? "Yes" : "No"}</div> <div className="text-foreground font-mono">{info.hasIcc ? ts.yes : ts.no}</div>
<div className="text-muted-foreground">EXIF Data</div> <div className="text-muted-foreground">{ts.hasExif}</div>
<div className="text-foreground font-mono">{info.hasExif ? "Yes" : "No"}</div> <div className="text-foreground font-mono">{info.hasExif ? ts.yes : ts.no}</div>
<div className="text-muted-foreground">XMP Data</div> <div className="text-muted-foreground">{ts.hasXmp}</div>
<div className="text-foreground font-mono">{info.hasXmp ? "Yes" : "No"}</div> <div className="text-foreground font-mono">{info.hasXmp ? ts.yes : ts.no}</div>
<div className="text-muted-foreground">Pages</div> <div className="text-muted-foreground">{ts.pages}</div>
<div className="text-foreground font-mono">{info.pages}</div> <div className="text-foreground font-mono">{info.pages}</div>
</div> </div>
{/* Histogram */} {/* Histogram */}
<div> <div>
<p className="text-xs font-medium text-muted-foreground">Channel Stats</p> <p className="text-xs font-medium text-muted-foreground">{ts.channelStats}</p>
<div className="mt-1 space-y-1.5"> <div className="mt-1 space-y-1.5">
{info.histogram.map((ch) => ( {info.histogram.map((ch) => (
<div key={ch.channel} className="space-y-0.5"> <div key={ch.channel} className="space-y-0.5">
@@ -15,7 +15,9 @@ export function TextOverlayControls({
settings: initialSettings, settings: initialSettings,
onChange, onChange,
}: TextOverlayControlsProps) { }: TextOverlayControlsProps) {
const [text, setText] = useState("Your Text Here"); const { t } = useTranslation();
const ts = t.toolSettings["text-overlay"];
const [text, setText] = useState(ts.defaultText);
const [fontSize, setFontSize] = useState(48); const [fontSize, setFontSize] = useState(48);
const [color, setColor] = useState("#FFFFFF"); const [color, setColor] = useState("#FFFFFF");
const [position, setPosition] = useState<"top" | "center" | "bottom">("bottom"); const [position, setPosition] = useState<"top" | "center" | "bottom">("bottom");
@@ -60,7 +62,7 @@ export function TextOverlayControls({
<div className="space-y-4"> <div className="space-y-4">
<div> <div>
<label htmlFor="text-overlay-text" className="text-xs text-muted-foreground"> <label htmlFor="text-overlay-text" className="text-xs text-muted-foreground">
Text {ts.text}
</label> </label>
<input <input
id="text-overlay-text" id="text-overlay-text"
@@ -74,7 +76,7 @@ export function TextOverlayControls({
<div> <div>
<div className="flex justify-between items-center"> <div className="flex justify-between items-center">
<label htmlFor="text-overlay-font-size" className="text-xs text-muted-foreground"> <label htmlFor="text-overlay-font-size" className="text-xs text-muted-foreground">
Font Size {ts.fontSize}
</label> </label>
<span className="text-xs font-mono text-foreground">{fontSize}px</span> <span className="text-xs font-mono text-foreground">{fontSize}px</span>
</div> </div>
@@ -91,7 +93,7 @@ export function TextOverlayControls({
<div> <div>
<label htmlFor="text-overlay-color" className="text-xs text-muted-foreground"> <label htmlFor="text-overlay-color" className="text-xs text-muted-foreground">
Text Color {ts.color}
</label> </label>
<input <input
id="text-overlay-color" id="text-overlay-color"
@@ -104,7 +106,7 @@ export function TextOverlayControls({
<div> <div>
<label htmlFor="text-overlay-position" className="text-xs text-muted-foreground"> <label htmlFor="text-overlay-position" className="text-xs text-muted-foreground">
Position {ts.position}
</label> </label>
<select <select
id="text-overlay-position" id="text-overlay-position"
@@ -112,9 +114,9 @@ export function TextOverlayControls({
onChange={(e) => setPosition(e.target.value as "top" | "center" | "bottom")} onChange={(e) => setPosition(e.target.value as "top" | "center" | "bottom")}
className="w-full mt-0.5 px-2 py-1.5 rounded border border-border bg-background text-sm text-foreground" className="w-full mt-0.5 px-2 py-1.5 rounded border border-border bg-background text-sm text-foreground"
> >
<option value="top">Top</option> <option value="top">{ts.top}</option>
<option value="center">Center</option> <option value="center">{ts.center}</option>
<option value="bottom">Bottom</option> <option value="bottom">{ts.bottom}</option>
</select> </select>
</div> </div>
@@ -125,7 +127,7 @@ export function TextOverlayControls({
onChange={(e) => setShadow(e.target.checked)} onChange={(e) => setShadow(e.target.checked)}
className="rounded" className="rounded"
/> />
Drop Shadow {ts.shadow}
</label> </label>
<label className="flex items-center gap-2 text-sm text-foreground"> <label className="flex items-center gap-2 text-sm text-foreground">
@@ -135,13 +137,13 @@ export function TextOverlayControls({
onChange={(e) => setBackgroundBox(e.target.checked)} onChange={(e) => setBackgroundBox(e.target.checked)}
className="rounded" className="rounded"
/> />
Background Box {ts.backgroundBox}
</label> </label>
{backgroundBox && ( {backgroundBox && (
<div> <div>
<label htmlFor="text-overlay-box-color" className="text-xs text-muted-foreground"> <label htmlFor="text-overlay-box-color" className="text-xs text-muted-foreground">
Box Color {ts.backgroundColor}
</label> </label>
<input <input
id="text-overlay-box-color" id="text-overlay-box-color"
@@ -158,6 +160,7 @@ export function TextOverlayControls({
export function TextOverlaySettings() { export function TextOverlaySettings() {
const { t } = useTranslation(); const { t } = useTranslation();
const ts = t.toolSettings["text-overlay"];
const { files } = useFileStore(); const { files } = useFileStore();
const { const {
processFiles, processFiles,
@@ -199,7 +202,7 @@ export function TextOverlaySettings() {
<ProgressCard <ProgressCard
active={processing} active={processing}
phase={progress.phase === "idle" ? "uploading" : progress.phase} phase={progress.phase === "idle" ? "uploading" : progress.phase}
label="Adding text" label={ts.progressLabel}
stage={progress.stage} stage={progress.stage}
percent={progress.percent} percent={progress.percent}
elapsed={progress.elapsed} elapsed={progress.elapsed}
@@ -212,7 +215,7 @@ export function TextOverlaySettings() {
disabled={!hasFile || processing || !settings.text} disabled={!hasFile || processing || !settings.text}
className="w-full py-2.5 rounded-lg bg-primary text-primary-foreground font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2" className="w-full py-2.5 rounded-lg bg-primary text-primary-foreground font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2"
> >
{files.length > 1 ? `Apply Overlay (${files.length} files)` : "Apply Overlay"} {files.length > 1 ? format(ts.submitBatch, { count: files.length }) : ts.submit}
</button> </button>
)} )}
@@ -224,7 +227,7 @@ export function TextOverlaySettings() {
className="w-full py-2.5 rounded-lg border border-primary text-primary font-medium flex items-center justify-center gap-2 hover:bg-primary/5" className="w-full py-2.5 rounded-lg border border-primary text-primary font-medium flex items-center justify-center gap-2 hover:bg-primary/5"
> >
<Download className="h-4 w-4" /> <Download className="h-4 w-4" />
Download {ts.download}
</a> </a>
)} )}
</div> </div>
+2 -2
View File
@@ -417,7 +417,7 @@ export const toolRegistry = new Map<string, ToolRegistryEntry>([
], ],
// Utilities // Utilities
["info", { displayMode: "before-after", Settings: InfoSettings }], ["info", { displayMode: "no-comparison", Settings: InfoSettings }],
["compare", { displayMode: "before-after", Settings: CompareSettings }], ["compare", { displayMode: "before-after", Settings: CompareSettings }],
[ [
"find-duplicates", "find-duplicates",
@@ -427,7 +427,7 @@ export const toolRegistry = new Map<string, ToolRegistryEntry>([
ResultsPanel: FindDuplicatesResults, ResultsPanel: FindDuplicatesResults,
}, },
], ],
["color-palette", { displayMode: "before-after", Settings: ColorPaletteSettings }], ["color-palette", { displayMode: "no-comparison", Settings: ColorPaletteSettings }],
[ [
"qr-generate", "qr-generate",
{ displayMode: "no-dropzone", Settings: QrGenerateSettings, ResultsPanel: QrGeneratePreview }, { displayMode: "no-dropzone", Settings: QrGenerateSettings, ResultsPanel: QrGeneratePreview },
@@ -6,7 +6,6 @@ export async function stripMetadata(
): Promise<Sharp> { ): Promise<Sharp> {
const { stripExif, stripGps, stripIcc, stripXmp, stripAll } = options; const { stripExif, stripGps, stripIcc, stripXmp, stripAll } = options;
// Default behavior: strip all metadata
const shouldStripAll = const shouldStripAll =
stripAll === true || stripAll === true ||
(stripExif === undefined && (stripExif === undefined &&
@@ -16,23 +15,28 @@ export async function stripMetadata(
stripAll === undefined); stripAll === undefined);
if (shouldStripAll) { if (shouldStripAll) {
// withMetadata({}) with no options strips everything;
// but to truly strip we avoid calling withMetadata at all.
// Sharp strips metadata by default when outputting.
// Calling .withMetadata() KEEPS metadata, so we do NOT call it.
return image; return image;
} }
// Selective stripping: we keep metadata but remove specific fields. const strippingNothing = !stripExif && !stripGps && !stripIcc && !stripXmp;
// Sharp's withMetadata lets us keep ICC, EXIF, etc. if (strippingNothing) {
// We call withMetadata to keep what wasn't requested stripped. return image.withMetadata();
const keepIcc = !stripIcc; }
return image.withMetadata({ // Selective stripping: Sharp strips all metadata by default (no calls needed).
// If we want to keep ICC, pass undefined (Sharp default keeps it with withMetadata) // We chain keepExif() / keepIccProfile() to preserve categories the user
// If we want to strip ICC, we need to not call withMetadata at all or handle differently // does NOT want stripped.
// Sharp's withMetadata keeps metadata; without it, metadata is stripped. let pipeline = image;
// For selective stripping, we strip all first then re-add what we want to keep.
...(keepIcc ? {} : {}), if (!stripExif && !stripGps) {
}); pipeline = pipeline.keepExif();
}
if (!stripIcc) {
pipeline = pipeline.keepIccProfile();
}
// XMP: Sharp has no keepXmp() method. XMP is always stripped in selective mode.
return pipeline;
} }
+9
View File
@@ -919,6 +919,8 @@ export const ar: TranslationKeys = {
submit: "إضافة نص", submit: "إضافة نص",
submitBatch: "إضافة نص ({count} ملف)", submitBatch: "إضافة نص ({count} ملف)",
progressLabel: "جاري إضافة النص", progressLabel: "جاري إضافة النص",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "رفع صورة التراكب", uploadOverlay: "رفع صورة التراكب",
@@ -960,6 +962,13 @@ export const ar: TranslationKeys = {
hasExif: "بيانات EXIF", hasExif: "بيانات EXIF",
hasIcc: "بيانات ICC", hasIcc: "بيانات ICC",
hasXmp: "بيانات XMP", hasXmp: "بيانات XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "رفع الصورة الثانية", uploadSecondImage: "رفع الصورة الثانية",
+9
View File
@@ -931,6 +931,8 @@ export const de: TranslationKeys = {
submit: "Text hinzufuegen", submit: "Text hinzufuegen",
submitBatch: "Text hinzufuegen ({count} Dateien)", submitBatch: "Text hinzufuegen ({count} Dateien)",
progressLabel: "Textueberlagerung wird hinzugefuegt", progressLabel: "Textueberlagerung wird hinzugefuegt",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Overlay-Bild hochladen", uploadOverlay: "Overlay-Bild hochladen",
@@ -973,6 +975,13 @@ export const de: TranslationKeys = {
hasExif: "Hat EXIF", hasExif: "Hat EXIF",
hasIcc: "Hat ICC", hasIcc: "Hat ICC",
hasXmp: "Hat XMP", hasXmp: "Hat XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Zweites Bild hochladen", uploadSecondImage: "Zweites Bild hochladen",
+13 -4
View File
@@ -877,6 +877,8 @@ export const en = {
submit: "Add Text", submit: "Add Text",
submitBatch: "Add Text ({count} files)", submitBatch: "Add Text ({count} files)",
progressLabel: "Adding text overlay", progressLabel: "Adding text overlay",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Upload Overlay Image", uploadOverlay: "Upload Overlay Image",
@@ -903,6 +905,8 @@ export const en = {
}, },
info: { info: {
loadingInfo: "Loading info...", loadingInfo: "Loading info...",
readInfo: "Read Info",
reading: "Reading...",
filename: "Filename", filename: "Filename",
fileSize: "File Size", fileSize: "File Size",
dimensions: "Dimensions", dimensions: "Dimensions",
@@ -913,11 +917,16 @@ export const en = {
bitDepth: "Bit Depth", bitDepth: "Bit Depth",
progressive: "Progressive", progressive: "Progressive",
pages: "Pages", pages: "Pages",
hasAlpha: "Has Alpha", hasAlpha: "Alpha",
hasProfile: "Has Profile", hasProfile: "Has Profile",
hasExif: "Has EXIF", hasExif: "EXIF Data",
hasIcc: "Has ICC", hasIcc: "ICC Profile",
hasXmp: "Has XMP", hasXmp: "XMP Data",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Upload Second Image", uploadSecondImage: "Upload Second Image",
+9
View File
@@ -913,6 +913,8 @@ export const es: TranslationKeys = {
submit: "Agregar texto", submit: "Agregar texto",
submitBatch: "Agregar texto ({count} archivos)", submitBatch: "Agregar texto ({count} archivos)",
progressLabel: "Agregando texto superpuesto", progressLabel: "Agregando texto superpuesto",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Subir imagen de superposicion", uploadOverlay: "Subir imagen de superposicion",
@@ -955,6 +957,13 @@ export const es: TranslationKeys = {
hasExif: "Tiene EXIF", hasExif: "Tiene EXIF",
hasIcc: "Tiene ICC", hasIcc: "Tiene ICC",
hasXmp: "Tiene XMP", hasXmp: "Tiene XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Subir segunda imagen", uploadSecondImage: "Subir segunda imagen",
+9
View File
@@ -932,6 +932,8 @@ export const fr: TranslationKeys = {
submit: "Ajouter le texte", submit: "Ajouter le texte",
submitBatch: "Ajouter le texte ({count} fichiers)", submitBatch: "Ajouter le texte ({count} fichiers)",
progressLabel: "Ajout du texte en superposition", progressLabel: "Ajout du texte en superposition",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Importer l'image de superposition", uploadOverlay: "Importer l'image de superposition",
@@ -974,6 +976,13 @@ export const fr: TranslationKeys = {
hasExif: "EXIF", hasExif: "EXIF",
hasIcc: "ICC", hasIcc: "ICC",
hasXmp: "XMP", hasXmp: "XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Importer une seconde image", uploadSecondImage: "Importer une seconde image",
+9
View File
@@ -915,6 +915,8 @@ export const hi: TranslationKeys = {
submit: "टेक्स्ट जोड़ें", submit: "टेक्स्ट जोड़ें",
submitBatch: "टेक्स्ट जोड़ें ({count} फाइलें)", submitBatch: "टेक्स्ट जोड़ें ({count} फाइलें)",
progressLabel: "टेक्स्ट ओवरले जोड़ा जा रहा है", progressLabel: "टेक्स्ट ओवरले जोड़ा जा रहा है",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "ओवरले इमेज अपलोड करें", uploadOverlay: "ओवरले इमेज अपलोड करें",
@@ -956,6 +958,13 @@ export const hi: TranslationKeys = {
hasExif: "EXIF डेटा", hasExif: "EXIF डेटा",
hasIcc: "ICC डेटा", hasIcc: "ICC डेटा",
hasXmp: "XMP डेटा", hasXmp: "XMP डेटा",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "दूसरी इमेज अपलोड करें", uploadSecondImage: "दूसरी इमेज अपलोड करें",
+9
View File
@@ -927,6 +927,8 @@ export const id: TranslationKeys = {
submit: "Tambah Teks", submit: "Tambah Teks",
submitBatch: "Tambah Teks ({count} file)", submitBatch: "Tambah Teks ({count} file)",
progressLabel: "Menambahkan overlay teks", progressLabel: "Menambahkan overlay teks",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Unggah Gambar Overlay", uploadOverlay: "Unggah Gambar Overlay",
@@ -968,6 +970,13 @@ export const id: TranslationKeys = {
hasExif: "Memiliki EXIF", hasExif: "Memiliki EXIF",
hasIcc: "Memiliki ICC", hasIcc: "Memiliki ICC",
hasXmp: "Memiliki XMP", hasXmp: "Memiliki XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Unggah Gambar Kedua", uploadSecondImage: "Unggah Gambar Kedua",
+9
View File
@@ -926,6 +926,8 @@ export const it: TranslationKeys = {
submit: "Aggiungi testo", submit: "Aggiungi testo",
submitBatch: "Aggiungi testo ({count} file)", submitBatch: "Aggiungi testo ({count} file)",
progressLabel: "Aggiunta testo in sovrapposizione", progressLabel: "Aggiunta testo in sovrapposizione",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Carica immagine di sovrapposizione", uploadOverlay: "Carica immagine di sovrapposizione",
@@ -967,6 +969,13 @@ export const it: TranslationKeys = {
hasExif: "EXIF", hasExif: "EXIF",
hasIcc: "ICC", hasIcc: "ICC",
hasXmp: "XMP", hasXmp: "XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Carica seconda immagine", uploadSecondImage: "Carica seconda immagine",
+9
View File
@@ -884,6 +884,8 @@ export const ja: TranslationKeys = {
submit: "テキスト追加", submit: "テキスト追加",
submitBatch: "テキスト追加({count}ファイル)", submitBatch: "テキスト追加({count}ファイル)",
progressLabel: "テキストオーバーレイを追加中", progressLabel: "テキストオーバーレイを追加中",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "オーバーレイ画像をアップロード", uploadOverlay: "オーバーレイ画像をアップロード",
@@ -926,6 +928,13 @@ export const ja: TranslationKeys = {
hasExif: "EXIF", hasExif: "EXIF",
hasIcc: "ICC", hasIcc: "ICC",
hasXmp: "XMP", hasXmp: "XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "2枚目の画像をアップロード", uploadSecondImage: "2枚目の画像をアップロード",
+9
View File
@@ -870,6 +870,8 @@ export const ko: TranslationKeys = {
submit: "텍스트 추가", submit: "텍스트 추가",
submitBatch: "텍스트 추가 ({count}개 파일)", submitBatch: "텍스트 추가 ({count}개 파일)",
progressLabel: "텍스트 오버레이 추가 중", progressLabel: "텍스트 오버레이 추가 중",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "오버레이 이미지 업로드", uploadOverlay: "오버레이 이미지 업로드",
@@ -911,6 +913,13 @@ export const ko: TranslationKeys = {
hasExif: "EXIF", hasExif: "EXIF",
hasIcc: "ICC", hasIcc: "ICC",
hasXmp: "XMP", hasXmp: "XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "두 번째 이미지 업로드", uploadSecondImage: "두 번째 이미지 업로드",
+9
View File
@@ -929,6 +929,8 @@ export const nl: TranslationKeys = {
submit: "Tekst toevoegen", submit: "Tekst toevoegen",
submitBatch: "Tekst toevoegen ({count} bestanden)", submitBatch: "Tekst toevoegen ({count} bestanden)",
progressLabel: "Tekstoverlay toevoegen", progressLabel: "Tekstoverlay toevoegen",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Overlay-afbeelding uploaden", uploadOverlay: "Overlay-afbeelding uploaden",
@@ -970,6 +972,13 @@ export const nl: TranslationKeys = {
hasExif: "Heeft EXIF", hasExif: "Heeft EXIF",
hasIcc: "Heeft ICC", hasIcc: "Heeft ICC",
hasXmp: "Heeft XMP", hasXmp: "Heeft XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Tweede afbeelding uploaden", uploadSecondImage: "Tweede afbeelding uploaden",
+9
View File
@@ -930,6 +930,8 @@ export const pl: TranslationKeys = {
submit: "Dodaj tekst", submit: "Dodaj tekst",
submitBatch: "Dodaj tekst ({count} plików)", submitBatch: "Dodaj tekst ({count} plików)",
progressLabel: "Dodawanie nakładki tekstowej", progressLabel: "Dodawanie nakładki tekstowej",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Prześlij obraz nakładki", uploadOverlay: "Prześlij obraz nakładki",
@@ -971,6 +973,13 @@ export const pl: TranslationKeys = {
hasExif: "EXIF", hasExif: "EXIF",
hasIcc: "ICC", hasIcc: "ICC",
hasXmp: "XMP", hasXmp: "XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Prześlij drugi obraz", uploadSecondImage: "Prześlij drugi obraz",
+9
View File
@@ -926,6 +926,8 @@ export const ptBR: TranslationKeys = {
submit: "Adicionar texto", submit: "Adicionar texto",
submitBatch: "Adicionar texto ({count} arquivos)", submitBatch: "Adicionar texto ({count} arquivos)",
progressLabel: "Adicionando texto sobreposto", progressLabel: "Adicionando texto sobreposto",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Enviar imagem de sobreposicao", uploadOverlay: "Enviar imagem de sobreposicao",
@@ -967,6 +969,13 @@ export const ptBR: TranslationKeys = {
hasExif: "Tem EXIF", hasExif: "Tem EXIF",
hasIcc: "Tem ICC", hasIcc: "Tem ICC",
hasXmp: "Tem XMP", hasXmp: "Tem XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Enviar segunda imagem", uploadSecondImage: "Enviar segunda imagem",
+9
View File
@@ -928,6 +928,8 @@ export const ru: TranslationKeys = {
submit: "Добавить текст", submit: "Добавить текст",
submitBatch: "Добавить текст ({count} файлов)", submitBatch: "Добавить текст ({count} файлов)",
progressLabel: "Добавление текста", progressLabel: "Добавление текста",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Загрузить накладываемое изображение", uploadOverlay: "Загрузить накладываемое изображение",
@@ -969,6 +971,13 @@ export const ru: TranslationKeys = {
hasExif: "EXIF", hasExif: "EXIF",
hasIcc: "ICC", hasIcc: "ICC",
hasXmp: "XMP", hasXmp: "XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Загрузить второе изображение", uploadSecondImage: "Загрузить второе изображение",
+9
View File
@@ -925,6 +925,8 @@ export const sv: TranslationKeys = {
submit: "Lagg till text", submit: "Lagg till text",
submitBatch: "Lagg till text ({count} filer)", submitBatch: "Lagg till text ({count} filer)",
progressLabel: "Lagger till textoverlay", progressLabel: "Lagger till textoverlay",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Ladda upp overlagringsbild", uploadOverlay: "Ladda upp overlagringsbild",
@@ -966,6 +968,13 @@ export const sv: TranslationKeys = {
hasExif: "Har EXIF", hasExif: "Har EXIF",
hasIcc: "Har ICC", hasIcc: "Har ICC",
hasXmp: "Har XMP", hasXmp: "Har XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Ladda upp andra bilden", uploadSecondImage: "Ladda upp andra bilden",
+9
View File
@@ -908,6 +908,8 @@ export const th: TranslationKeys = {
submit: "เพิ่มข้อความ", submit: "เพิ่มข้อความ",
submitBatch: "เพิ่มข้อความ ({count} ไฟล์)", submitBatch: "เพิ่มข้อความ ({count} ไฟล์)",
progressLabel: "กำลังเพิ่มข้อความซ้อนทับ", progressLabel: "กำลังเพิ่มข้อความซ้อนทับ",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "อัปโหลดภาพซ้อนทับ", uploadOverlay: "อัปโหลดภาพซ้อนทับ",
@@ -949,6 +951,13 @@ export const th: TranslationKeys = {
hasExif: "มี EXIF", hasExif: "มี EXIF",
hasIcc: "มี ICC", hasIcc: "มี ICC",
hasXmp: "มี XMP", hasXmp: "มี XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "อัปโหลดภาพที่สอง", uploadSecondImage: "อัปโหลดภาพที่สอง",
+9
View File
@@ -929,6 +929,8 @@ export const tr: TranslationKeys = {
submit: "Metin Ekle", submit: "Metin Ekle",
submitBatch: "Metin Ekle ({count} dosya)", submitBatch: "Metin Ekle ({count} dosya)",
progressLabel: "Metin kaplaması ekleniyor", progressLabel: "Metin kaplaması ekleniyor",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Kaplama Görüntüsü Yükle", uploadOverlay: "Kaplama Görüntüsü Yükle",
@@ -970,6 +972,13 @@ export const tr: TranslationKeys = {
hasExif: "EXIF Verisi", hasExif: "EXIF Verisi",
hasIcc: "ICC Verisi", hasIcc: "ICC Verisi",
hasXmp: "XMP Verisi", hasXmp: "XMP Verisi",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "İkinci Görüntüyü Yükle", uploadSecondImage: "İkinci Görüntüyü Yükle",
+9
View File
@@ -928,6 +928,8 @@ export const uk: TranslationKeys = {
submit: "Додати текст", submit: "Додати текст",
submitBatch: "Додати текст ({count} файлів)", submitBatch: "Додати текст ({count} файлів)",
progressLabel: "Додавання тексту", progressLabel: "Додавання тексту",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Завантажити зображення для накладання", uploadOverlay: "Завантажити зображення для накладання",
@@ -969,6 +971,13 @@ export const uk: TranslationKeys = {
hasExif: "EXIF", hasExif: "EXIF",
hasIcc: "ICC", hasIcc: "ICC",
hasXmp: "XMP", hasXmp: "XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Завантажити друге зображення", uploadSecondImage: "Завантажити друге зображення",
+9
View File
@@ -927,6 +927,8 @@ export const vi: TranslationKeys = {
submit: "Thêm văn bản", submit: "Thêm văn bản",
submitBatch: "Thêm văn bản ({count} tệp)", submitBatch: "Thêm văn bản ({count} tệp)",
progressLabel: "Đang thêm lớp phủ văn bản", progressLabel: "Đang thêm lớp phủ văn bản",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "Tải lên ảnh lớp phủ", uploadOverlay: "Tải lên ảnh lớp phủ",
@@ -968,6 +970,13 @@ export const vi: TranslationKeys = {
hasExif: "Có EXIF", hasExif: "Có EXIF",
hasIcc: "Có ICC", hasIcc: "Có ICC",
hasXmp: "Có XMP", hasXmp: "Có XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "Tải lên ảnh thứ hai", uploadSecondImage: "Tải lên ảnh thứ hai",
+9
View File
@@ -862,6 +862,8 @@ export const zhCN: TranslationKeys = {
submit: "添加文字", submit: "添加文字",
submitBatch: "添加文字({count} 个文件)", submitBatch: "添加文字({count} 个文件)",
progressLabel: "正在添加文字叠加", progressLabel: "正在添加文字叠加",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "上传叠加图片", uploadOverlay: "上传叠加图片",
@@ -903,6 +905,13 @@ export const zhCN: TranslationKeys = {
hasExif: "含 EXIF", hasExif: "含 EXIF",
hasIcc: "含 ICC", hasIcc: "含 ICC",
hasXmp: "含 XMP", hasXmp: "含 XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "上传第二张图片", uploadSecondImage: "上传第二张图片",
+9
View File
@@ -860,6 +860,8 @@ export const zhTW: TranslationKeys = {
submit: "加入文字", submit: "加入文字",
submitBatch: "加入文字({count}個檔案)", submitBatch: "加入文字({count}個檔案)",
progressLabel: "正在加入文字覆疊", progressLabel: "正在加入文字覆疊",
download: "Download",
defaultText: "Your Text Here",
}, },
compose: { compose: {
uploadOverlay: "上傳覆疊影像", uploadOverlay: "上傳覆疊影像",
@@ -901,6 +903,13 @@ export const zhTW: TranslationKeys = {
hasExif: "有EXIF", hasExif: "有EXIF",
hasIcc: "有ICC", hasIcc: "有ICC",
hasXmp: "有XMP", hasXmp: "有XMP",
readInfo: "Read Info",
reading: "Reading...",
channelStats: "Channel Stats",
yes: "Yes",
no: "No",
na: "N/A",
failedToRead: "Failed to read info",
}, },
compare: { compare: {
uploadSecondImage: "上傳第二張影像", uploadSecondImage: "上傳第二張影像",
@@ -281,9 +281,9 @@ describe("toolRegistry (expanded)", () => {
expect(entry?.displayMode).toBe("no-comparison"); expect(entry?.displayMode).toBe("no-comparison");
}); });
it("info uses before-after display", () => { it("info uses no-comparison display", () => {
const entry = getToolRegistryEntry("info"); const entry = getToolRegistryEntry("info");
expect(entry?.displayMode).toBe("before-after"); expect(entry?.displayMode).toBe("no-comparison");
}); });
it("compare uses before-after display", () => { it("compare uses before-after display", () => {
@@ -291,9 +291,9 @@ describe("toolRegistry (expanded)", () => {
expect(entry?.displayMode).toBe("before-after"); expect(entry?.displayMode).toBe("before-after");
}); });
it("color-palette uses before-after display", () => { it("color-palette uses no-comparison display", () => {
const entry = getToolRegistryEntry("color-palette"); const entry = getToolRegistryEntry("color-palette");
expect(entry?.displayMode).toBe("before-after"); expect(entry?.displayMode).toBe("no-comparison");
}); });
it("barcode-read uses before-after display", () => { it("barcode-read uses before-after display", () => {