Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

slides: photos shrink at insert — 2560 px cap, lossy for photos, lossless for graphics (#477)

nyblnet3a7eb8fbbae2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0a7618a3..cf7a380f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1353,6 +1353,12 @@ jobs:
# routes the argument. Bare {{date}} stays viewer-locale (#381).
run: node scripts/test-slides-fields.ts
+ - name: Photos shrink at insert rig
+ # editor/shrink.ts decisions, DOM-free: photo vs graphic (lossy vs
+ # lossless), the ≥20% keep rule, the 2560 px cap, svg/gif untouched,
+ # every insert path routed, model.ts untouched. The encode itself is
+ # measured in Chrome (PR #).
+ run: node scripts/test-slides-shrink.ts
- name: Image aspect-ratio lock rig
# keepAspectRatio (#372): absent = locked, so old files resize as
# before; Shift is the one-drag exception either way; re-locking
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2f681280..17c2d936 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,20 @@ pre-1.0.
## [Unreleased]
+- **A pasted photo no longer costs megabytes.** Insert or paste a picture
+ and it is stored at slide resolution — the long edge capped at 2560 px,
+ crisp on a 4K projector — and photos are re-encoded as JPEG, so a phone
+ photo adds a few hundred KB to the file instead of three or four MB.
+ Screenshots, logos, charts and anything with transparency are only
+ downscaled, never made lossy, so text in them stays sharp; SVG and GIF are
+ left alone; and when re-encoding would not save at least a fifth, the
+ original bytes are kept. When the saving is worth mentioning a toast says
+ so ("Photo stored at 2560 px — 3.8 MB → 410 KB"). The picture panel shows
+ what is stored and offers *Replace file (original size)…* for the times
+ you want every pixel; *Shrink photos on insert* in the About dialog turns
+ it off for this browser. Nothing in an existing deck changes until you
+ insert something new. The file itself is untouched: a picture is still a
+ picture.
- **An image can drop its aspect ratio, and the properties panel stays
where you left it.** Contributed by 1eevy (#372). Images gain a *Keep
aspect ratio* switch in the Fit & corners section, on by default: turn it
diff --git a/scripts/test-slides-aspect-lock.ts b/scripts/test-slides-aspect-lock.ts
index 051d7311..84e14268 100644
--- a/scripts/test-slides-aspect-lock.ts
+++ b/scripts/test-slides-aspect-lock.ts
@@ -47,7 +47,9 @@ ok(/const locked = el\?\.type === 'image'/.test(sync), 'a shape or text box is n
console.log('\nthe panel\n')
const panels = read('slides/src/editor/panels.ts')
-const img = panels.slice(panels.indexOf('private buildImageProps'), panels.indexOf('private buildImageProps') + 2500)
+// the whole method, however long the Picture section grows: up to the next method
+const imgStart = panels.indexOf('private buildImageProps')
+const img = panels.slice(imgStart, panels.indexOf('\n private ', imgStart + 1))
ok(/this\.row\('Keep aspect ratio', this\.toggle\(\(el as ImageElement\)\.keepAspectRatio !== false/.test(img), 'the toggle reads absent as on')
ok(/if \(on\) delete e\.keepAspectRatio/.test(img), 're-locking DELETES the field — never writes true, so a re-locked file equals an untouched one')
ok(/else \{ e\.keepAspectRatio = false; e\.fit = 'fill' \}/.test(img), 'unlocking writes false and fit:\'fill\' so the stretch shows')
diff --git a/scripts/test-slides-shrink.ts b/scripts/test-slides-shrink.ts
new file mode 100644
index 00000000..c8e9fea2
--- /dev/null
+++ b/scripts/test-slides-shrink.ts
@@ -0,0 +1,115 @@
+#!/usr/bin/env node
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+// Photos shrink at insert (slides/src/editor/shrink.ts): the DOM-free decisions.
+//
+// node scripts/test-slides-shrink.ts
+//
+// WHAT THIS PROVES. The classifier calls a noisy photo AND a smooth
+// noise-free gradient (a sky) a photo, and a flat-background screenshot, a
+// few-colour logo or anything transparent a graphic (the thing that decides
+// lossy vs lossless, so the thing that decides whether a screenshot stays
+// sharp and a sky does not become a 4 MB PNG). The keep rule refuses a 19% gain and takes a 21% one. The cap
+// scales 4032×3024 to 2560×1920 and leaves 1000×500 alone. SVG and GIF are
+// untouchable. And every image insert path in the editor goes through
+// shrinkImageFile — while the model is untouched by the change. The encode
+// itself needs a browser: measured in Chrome, numbers in the PR.
+
+import { readFileSync } from 'node:fs'
+import { fileURLToPath } from 'node:url'
+import { dirname, join } from 'node:path'
+import { execFileSync } from 'node:child_process'
+import { classify, sampleGrid, fitEdge, worthIt, untouchable, MAX_EDGE, MIN_GAIN, GRAPHIC_COLOURS, GRAPHIC_FLAT, shrinkNote, fmtBytes } from '../slides/src/editor/shrink.ts'
+
+let failures = 0
+let checks = 0
+function ok(cond: boolean, msg: string) {
+ checks++
+ if (!cond) { failures++; console.log(` FAIL ${msg}`) }
+ else console.log(` ok ${msg}`)
+}
+const root = join(dirname(fileURLToPath(import.meta.url)), '..')
+const read = (f: string) => readFileSync(join(root, f), 'utf8')
+
+console.log('classification\n')
+// a 64×64 "photo": two gradients plus deterministic noise → thousands of bins
+const photo = new Uint8ClampedArray(64 * 64 * 4)
+let seed = 7
+const rnd = () => { seed = (seed * 1103515245 + 12345) & 0x7fffffff; return seed / 0x7fffffff }
+for (let y = 0; y < 64; y++) for (let x = 0; x < 64; x++) {
+ const i = (y * 64 + x) * 4
+ photo[i] = (x * 4 + rnd() * 40) & 255
+ photo[i + 1] = (y * 4 + rnd() * 40) & 255
+ photo[i + 2] = ((x + y) * 2 + rnd() * 40) & 255
+ photo[i + 3] = 255
+}
+ok(classify(photo) === 'photo', 'gradients + noise → photo')
+// a smooth sky: a noise-free gradient, every sample point differs from the last
+const sky = new Uint8ClampedArray(64 * 64 * 4)
+for (let y = 0; y < 64; y++) for (let x = 0; x < 64; x++) { const i = (y * 64 + x) * 4; sky[i] = 120 + x; sky[i + 1] = 160 + Math.floor(y / 2); sky[i + 2] = 230 - x; sky[i + 3] = 255 }
+ok(classify(sky) === 'photo', 'a smooth noise-free gradient (a sky) → photo, not a 4 MB PNG')
+// a screenshot: flat background with a few text-like runs → most neighbours identical
+const shot = new Uint8ClampedArray(64 * 64 * 4)
+for (let k = 0; k < 64 * 64; k++) { const i = k * 4; const ink = k % 7 === 3; shot[i] = ink ? 30 : 244; shot[i + 1] = ink ? 40 : 244; shot[i + 2] = ink ? 60 : 246; shot[i + 3] = 255 }
+ok(classify(shot) === 'graphic', 'flat background with text runs (a screenshot) → graphic')
+const logo = new Uint8ClampedArray(64 * 64 * 4)
+for (let k = 0; k < 64 * 64; k++) { const i = k * 4; const c = [[255, 255, 255], [30, 40, 60], [247, 166, 0]][k % 3]; logo[i] = c[0]; logo[i + 1] = c[1]; logo[i + 2] = c[2]; logo[i + 3] = 255 }
+ok(classify(logo) === 'graphic', 'three colours alternating, no runs (a logo) → graphic by colour count')
+const alpha = new Uint8ClampedArray(photo); alpha[3] = 200
+ok(classify(alpha) === 'graphic', 'one transparent pixel in a photo → graphic (JPEG has no alpha)')
+ok(classify(new Uint8ClampedArray(0)) === 'graphic', 'no pixels → graphic (nothing to lose)')
+// the flat line: GRAPHIC_FLAT of consecutive samples identical
+const runs = (share: number) => { const n = 1000; const a = new Uint8ClampedArray(n * 4); for (let k = 0; k < n; k++) { const i = k * 4; const same = k > 0 && (k * 7919) % 1000 < share * 1000; const v = same ? a[i - 4] : (k * 37) & 255; a[i] = v; a[i + 1] = (v * 3) & 255; a[i + 2] = (v * 5) & 255; a[i + 3] = 255 } return a }
+ok(classify(runs(GRAPHIC_FLAT + 0.1)) === 'graphic' && classify(runs(GRAPHIC_FLAT - 0.1)) === 'photo', `the flat line is ${GRAPHIC_FLAT * 100}% identical consecutive samples`)
+ok(GRAPHIC_COLOURS <= 64, 'the colour-count line is low enough that a photo of a wall is not a graphic')
+// the grid sampler takes real pixels at a stride, in row order
+const frame = new Uint8ClampedArray(8 * 4 * 4); for (let k = 0; k < 32; k++) frame[k * 4] = k
+const g = sampleGrid(frame, 8, 4, 2)
+ok(g.length === 4 * 2 * 4 && g[0] === 0 && g[4] === 2 && g[8] === 4 && g[12] === 6 && g[16] === 16, 'sampleGrid: every step-th pixel, row by row')
+
+console.log('\nthe keep rule\n')
+ok(!worthIt(1000, 810), '19% smaller → keep the original')
+ok(worthIt(1000, 790), '21% smaller → take it')
+ok(worthIt(1000, 800), `exactly ${MIN_GAIN * 100}% → take it`)
+ok(!worthIt(1000, 1000) && !worthIt(1000, 1200), 'same or bigger → keep')
+
+console.log('\nthe cap\n')
+ok(JSON.stringify(fitEdge(4032, 3024)) === JSON.stringify({ width: 2560, height: 1920 }), '4032×3024 → 2560×1920')
+ok(JSON.stringify(fitEdge(3024, 4032)) === JSON.stringify({ width: 1920, height: 2560 }), 'portrait too')
+ok(JSON.stringify(fitEdge(1000, 500)) === JSON.stringify({ width: 1000, height: 500 }), '1000×500 stays (never upscaled)')
+ok(JSON.stringify(fitEdge(2560, 100)) === JSON.stringify({ width: 2560, height: 100 }), `exactly ${MAX_EDGE} stays`)
+ok(fitEdge(10000, 10).height === 3, 'a very wide strip keeps at least a row')
+
+console.log('\nuntouchable formats\n')
+ok(untouchable('image/svg+xml') && untouchable('image/gif') && untouchable('IMAGE/GIF'), 'svg and gif are left as they came')
+ok(!untouchable('image/png') && !untouchable('image/jpeg') && !untouchable('image/webp'), 'png, jpeg, webp go through')
+
+console.log('\nthe toast\n')
+const r = (before: number, after: number, kind: 'photo' | 'graphic' | 'kept') => ({ dataUrl: '', width: 2560, height: 1920, before, after, kind, reason: 'shrunk' as const })
+ok(shrinkNote(r(3_000_000, 400_000, 'photo'))?.photo === true, 'a 2.6 MB saving on a photo → a toast, photo wording')
+ok(shrinkNote(r(3_000_000, 400_000, 'graphic'))?.photo === false, '…graphic wording for a graphic')
+ok(shrinkNote(r(300_000, 150_000, 'photo')) === null, 'a 150 KB saving → no toast (under 200 KB)')
+ok(shrinkNote(r(3_000_000, 3_000_000, 'kept')) === null, 'kept → no toast')
+ok(shrinkNote(r(3_000_000, 400_000, 'photo'))?.vars.px === 2560, 'the toast names the long edge')
+ok(fmtBytes(410 * 1024) === '410 KB' && fmtBytes(3.8 * 1024 * 1024) === '3.8 MB' && fmtBytes(10) === '1 KB', 'bytes read as KB / MB')
+
+console.log('\nevery insert path\n')
+const editor = read('slides/src/editor/editor.ts')
+const pick = editor.slice(editor.indexOf('private pickImage()'), editor.indexOf('async shrinkForInsert('))
+ok(/this\.shrinkForInsert\(file\)/.test(pick) && !/readAsDataURL/.test(pick), 'the file picker goes through shrinkForInsert, not a raw FileReader')
+const paste = editor.slice(editor.indexOf('private pasteImageFile('), editor.indexOf('// --- brand palette'))
+ok(/this\.shrinkForInsert\(file\)/.test(paste) && !/readAsDataURL/.test(paste), 'paste goes through shrinkForInsert')
+ok(/shrinkImageFile\(file\)/.test(editor.slice(editor.indexOf('async shrinkForInsert('))), 'shrinkForInsert calls shrink.ts')
+const panels = read('slides/src/editor/panels.ts')
+const img = panels.slice(panels.indexOf('private buildImageProps('), panels.indexOf('private buildMediaProps('))
+ok(/shrinkImageFile\(file\)/.test(img) && /Replace file \(original size\)/.test(img), 'the panel replaces through the shrink path, with an original-size way out')
+ok(/setShrinkEnabled\(/.test(editor) && /shrinkEnabled\(\)/.test(editor), 'the About dialog carries the switch')
+ok(/'bento-shrink-photos'/.test(read('slides/src/editor/shrink.ts')), "the preference is localStorage 'bento-shrink-photos'")
+
+console.log('\nthe format\n')
+let modelDiff = ''
+try { modelDiff = execFileSync('git', ['diff', 'origin/main', '--stat', '--', 'slides/src/model.ts'], { cwd: root, encoding: 'utf8' }) } catch { modelDiff = '' }
+ok(modelDiff.trim() === '', 'model.ts is untouched — a picture is still a data URI or an asset: key')
+
+console.log(`\n${checks - failures}/${checks} checks passed`)
+process.exit(failures ? 1 : 0)
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.ts
index acba3b23..c03765b9 100644
--- a/slides/src/editor/editor.ts
+++ b/slides/src/editor/editor.ts
@@ -40,6 +40,7 @@ import { disconnectOnline, joinFromDoc, mintCollab, mintInvite, mintRoomKey, onl
import { projectDoc, projectOp, type AudienceTicket } from '../audience'
import { stripEmbeddedEnvelopes } from '../envelope'
import { lsGet, lsJson, lsSet } from '../../../kernel/src/storage.ts'
+import { shrinkImageFile, shrinkEnabled, setShrinkEnabled, shrinkNote, type ShrinkResult } from './shrink'
const i18nT = t
@@ -2051,9 +2052,8 @@ export class Editor {
input.addEventListener('change', () => {
const file = input.files?.[0]
if (!file) return
- const reader = new FileReader()
- reader.onload = () => {
- const src = String(reader.result)
+ void this.shrinkForInsert(file).then((r) => {
+ const src = r.dataUrl
const img = new Image()
img.onload = () => {
const { width: dw, height: dh } = this.store.doc.size
@@ -2063,12 +2063,26 @@ export class Editor {
this.canvas.insert(defaultImage(src, { w, h, x: (dw - w) / 2, y: (dh - h) / 2 }))
}
img.src = src
- }
- reader.readAsDataURL(file)
+ })
})
input.click()
}
+ /** Every image insert goes through here (shrink.ts): the picture is capped
+ * at 2560 px, photos re-encoded lossy, graphics kept lossless, the original
+ * kept when nothing is gained — and the author is told only when the saving
+ * is worth a line. `original` bypasses it (the panel's "original size"). */
+ async shrinkForInsert(file: Blob, original = false): Promise<ShrinkResult> {
+ if (original) {
+ const dataUrl = await new Promise<string>((resolve) => { const r = new FileReader(); r.onload = () => resolve(String(r.result)); r.readAsDataURL(file) })
+ return { dataUrl, width: 0, height: 0, before: file.size, after: file.size, kind: 'kept', reason: 'off' }
+ }
+ const r = await shrinkImageFile(file)
+ const note = shrinkNote(r)
+ if (note) this.toast(note.photo ? t('Photo stored at {px} px — {before} → {after}', note.vars) : t('Image stored at {px} px — {before} → {after}', note.vars))
+ return r
+ }
+
// --- insert media (video / audio) --------------------------------------------------
/** Media insert menu: a file (embeds) or a link (stays a URL — keeps the
@@ -2286,9 +2300,8 @@ export class Editor {
}
private pasteImageFile(file: File) {
- const reader = new FileReader()
- reader.onload = () => {
- const src = String(reader.result)
+ void this.shrinkForInsert(file).then((r) => {
+ const src = r.dataUrl
const place = (w: number, h: number) => {
const { width, height } = this.store.doc.size
const el = defaultImage(src, { x: Math.round((width - w) / 2), y: Math.round((height - h) / 2), w, h, fit: 'contain' })
@@ -2296,7 +2309,8 @@ export class Editor {
// the same path as every other embed — otherwise it stays inline and
// live collab can never send it.
this.canvas.insert(el)
- this.toast(t('Image pasted'))
+ // the shrink toast, when there is one, already says a picture landed
+ if (!shrinkNote(r)) this.toast(t('Image pasted'))
}
const img = new Image()
img.onload = () => {
@@ -2305,8 +2319,7 @@ export class Editor {
}
img.onerror = () => place(400, 300)
img.src = src
- }
- reader.readAsDataURL(file)
+ })
}
// --- brand palette → referenced literals ---------------------------------
@@ -3426,6 +3439,18 @@ export class Editor {
autoRow.append(autoCb, document.createTextNode(' ' + t('Check for updates automatically at launch')))
box.appendChild(autoRow)
+ // photos shrink at insert (editor/shrink.ts) — an authoring preference for
+ // this browser, like the update check; never in the document
+ const shrinkRow = document.createElement('label')
+ shrinkRow.className = 'ed-about-auto'
+ const shrinkCb = document.createElement('input')
+ shrinkCb.type = 'checkbox'
+ shrinkCb.checked = shrinkEnabled()
+ shrinkCb.addEventListener('change', () => setShrinkEnabled(shrinkCb.checked))
+ shrinkRow.append(shrinkCb, document.createTextNode(' ' + t('Shrink photos on insert (2560 px, screenshots and logos stay sharp)')))
+ shrinkRow.title = t('A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.')
+ box.appendChild(shrinkRow)
+
// the hard no-network switch: blocks update checks AND online
// collaboration for this browser. Same-machine tab sync is not
// networking and stays on.
diff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.ts
index 6eb26c9e..e0e40fe9 100644
--- a/slides/src/editor/panels.ts
+++ b/slides/src/editor/panels.ts
@@ -15,6 +15,7 @@ import { CHART_PRESETS } from '../charts'
import { FONT_CHOICES, firstFamily, injectFonts } from '../fonts'
import { CODE_SCOPES, DEFAULT_CODE_COLORS } from '../code'
import { DATE_PRESETS, TIME_PRESETS, OTHER_FIELDS, formatDate } from '../datefmt'
+import { shrinkImageFile, shrinkNote, fmtBytes } from './shrink'
import { revealInOrder, revealTogether, removeReveal, type StepPatch } from './reveal'
import { stepOf } from '../steps'
import { ICONS } from '../icons'
@@ -1783,6 +1784,46 @@ export class PropsPanel {
}
private buildImageProps(el: SlideElement) {
+ this.section(t('Picture'))
+ const src = (el as ImageElement).src
+ // what is stored: size and pixels for an embed, the URL otherwise
+ const status = document.createElement('p')
+ status.className = 'ed-hint'
+ const resolved = src ? resolveAsset(this.store.doc, src) : ''
+ if (resolved.startsWith('data:')) {
+ const bytes = Math.floor(((resolved.length - resolved.indexOf(',') - 1) * 3) / 4)
+ status.textContent = t('Embedded') + ` · ${fmtBytes(bytes)}`
+ const probe = new Image()
+ probe.onload = () => { status.textContent = t('Embedded') + ` · ${fmtBytes(bytes)} · ${probe.naturalWidth}×${probe.naturalHeight}` }
+ probe.src = resolved
+ } else status.textContent = src ? t('Linked') + ` · ${src.slice(0, 60)}` : t('No picture yet')
+ this.host.appendChild(status)
+ // Replace: through the shrink path, or at original size (the one honest
+ // way to say "I want the full-resolution file in the deck").
+ const pick = (label: string, original: boolean) => {
+ const b = document.createElement('button')
+ b.className = 'ed-btn ed-btn-block'
+ b.textContent = label
+ b.addEventListener('click', () => {
+ const input = document.createElement('input')
+ input.type = 'file'
+ input.accept = 'image/*'
+ input.addEventListener('change', () => {
+ const file = input.files?.[0]
+ if (!file) return
+ void (original ? Promise.resolve(null) : shrinkImageFile(file)).then(async (r) => {
+ const dataUrl = r ? r.dataUrl : await new Promise<string>((resolve) => { const rd = new FileReader(); rd.onload = () => resolve(String(rd.result)); rd.readAsDataURL(file) })
+ const note = r && shrinkNote(r)
+ if (note) this.toast(note.photo ? t('Photo stored at {px} px — {before} → {after}', note.vars) : t('Image stored at {px} px — {before} → {after}', note.vars))
+ this.mutate(el.id, (e) => { (e as ImageElement).src = internAsset(this.store.doc, dataUrl) }, true)
+ })
+ })
+ input.click()
+ })
+ this.host.appendChild(b)
+ }
+ pick(t('Replace file…'), false)
+ pick(t('Replace file (original size)…'), true)
this.section(t('Fit & corners'))
this.row('Fit', this.select(['contain', 'cover', 'fill'], (el as any).fit, (v) =>
this.mutate(el.id, (e) => { (e as any).fit = v }, true)))
diff --git a/slides/src/editor/shrink.ts b/slides/src/editor/shrink.ts
new file mode 100644
index 00000000..4d03d396
--- /dev/null
+++ b/slides/src/editor/shrink.ts
@@ -0,0 +1,198 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+/**
+ * Photos shrink at insert. A phone photo is 4000 px wide and several MB; a
+ * slide is 1280 px wide and a 4K projector shows it at 2560. Every insert
+ * path (file picker, paste, panel replace) runs the picture through here, so
+ * the deck grows by hundreds of KB, not megabytes — the biggest lever left on
+ * file size after #447/#476 (a save drops what nothing refers to) and #468
+ * (built-in fonts). The FORMAT is untouched: `src` is still a data URI or an
+ * `asset:` key, and an old shell opens the deck identically.
+ *
+ * The rules, in the order they run (the DOM-free ones are exported so
+ * scripts/test-slides-shrink.ts can hold them):
+ *
+ * 1. SVG and GIF are never touched — vectors have no pixels to shed and a
+ * GIF may animate. Never upscale.
+ * 2. The long edge is capped at MAX_EDGE (2560), not at the element's box:
+ * users resize later and would find a box-fitted image blurry.
+ * 3. Photos become lossy (JPEG 0.85, or WebP where the browser really
+ * encodes it and it is smaller); GRAPHICS stay lossless PNG. A graphic is
+ * anything with transparency, or with few distinct colours — a
+ * screenshot with text, a logo, a chart — because JPEG makes those
+ * fuzzy and that is the thing people notice.
+ * 4. The original bytes are kept unless the result is at least MIN_GAIN
+ * (20%) smaller. Re-encoding a small, already-tight JPEG only loses.
+ *
+ * Preference: localStorage 'bento-shrink-photos' = 'off' bypasses all of it
+ * (About dialog). An authoring convenience for this browser, never in the
+ * document.
+ */
+
+import { lsGet, lsSet } from '../../../kernel/src/storage.ts'
+
+export const MAX_EDGE = 2560
+/** The re-encoded result must be at least this much smaller, or the original stays. */
+export const MIN_GAIN = 0.2
+/** Below this many distinct 5-bit colours in the sample, an image reads as a graphic (a logo, a chart). */
+export const GRAPHIC_COLOURS = 64
+/** Above this share of sample points identical to the point before them, an
+ * image reads as a graphic (a screenshot's flat background). A photo's sensor
+ * noise makes two pixels 40 px apart almost never identical. */
+export const GRAPHIC_FLAT = 0.3
+/** Toast only when the saving is worth telling. */
+export const TOAST_MIN_SAVING = 200 * 1024
+const PHOTO_QUALITY = 0.85
+const PREF_KEY = 'bento-shrink-photos'
+
+export type ShrinkKind = 'photo' | 'graphic' | 'kept'
+export interface ShrinkResult {
+ dataUrl: string
+ width: number
+ height: number
+ /** bytes of the original file */
+ before: number
+ /** bytes stored */
+ after: number
+ kind: ShrinkKind
+ reason: 'shrunk' | 'untouchable' | 'no gain' | 'off' | 'undecodable'
+}
+
+export const shrinkEnabled = (): boolean => lsGet(PREF_KEY) !== 'off'
+export const setShrinkEnabled = (on: boolean): void => { lsSet(PREF_KEY, on ? 'on' : 'off') }
+
+/** Formats and shapes that are left exactly as they came. */
+export const untouchable = (mime: string): boolean => /^image\/(svg\+xml|gif)$/i.test(mime)
+
+/** The size the long edge is capped to — never larger than the source. */
+export function fitEdge(w: number, h: number, max = MAX_EDGE): { width: number; height: number } {
+ const long = Math.max(w, h)
+ if (long <= max) return { width: w, height: h }
+ const s = max / long
+ return { width: Math.round(w * s), height: Math.round(h * s) }
+}
+
+/**
+ * Photo or graphic, from a sample of pixels taken on a grid across the image
+ * (RGBA, in row order; the grid spacing is the caller's, ~40 px). Three
+ * signs make a graphic, any one of them: transparency anywhere (JPEG has no
+ * alpha); a run of identical consecutive sample points — a screenshot's flat
+ * background, a chart's fills — above GRAPHIC_FLAT of the sample, which a
+ * photo's noise never produces; or very few distinct colours, a logo.
+ * Everything else is a photo, including a smooth sky: a gradient's
+ * neighbours 40 px apart differ, so it is not "flat".
+ */
+export function classify(rgba: Uint8ClampedArray | Uint8Array): 'photo' | 'graphic' {
+ const seen = new Set<number>()
+ let same = 0
+ let n = 0
+ let prev = -1
+ for (let i = 0; i + 3 < rgba.length; i += 4) {
+ if (rgba[i + 3] < 255) return 'graphic'
+ const exact = (rgba[i] << 16) | (rgba[i + 1] << 8) | rgba[i + 2]
+ if (n > 0 && exact === prev) same++
+ prev = exact
+ n++
+ seen.add(((rgba[i] >> 3) << 10) | ((rgba[i + 1] >> 3) << 5) | (rgba[i + 2] >> 3))
+ }
+ if (n === 0) return 'graphic'
+ if (same / Math.max(1, n - 1) > GRAPHIC_FLAT) return 'graphic'
+ return seen.size < GRAPHIC_COLOURS ? 'graphic' : 'photo'
+}
+
+/** Every `step`-th pixel of a full-resolution frame, as one RGBA run in row order. */
+export function sampleGrid(rgba: Uint8ClampedArray, width: number, height: number, step: number): Uint8ClampedArray {
+ const cols = Math.max(1, Math.floor(width / step))
+ const rows = Math.max(1, Math.floor(height / step))
+ const out = new Uint8ClampedArray(cols * rows * 4)
+ let o = 0
+ for (let r = 0; r < rows; r++) for (let c = 0; c < cols; c++) {
+ const i = ((r * step) * width + c * step) * 4
+ out[o++] = rgba[i]; out[o++] = rgba[i + 1]; out[o++] = rgba[i + 2]; out[o++] = rgba[i + 3]
+ }
+ return out
+}
+
+/** Keep the original unless the candidate is at least MIN_GAIN smaller. */
+export const worthIt = (before: number, after: number): boolean => after <= before * (1 - MIN_GAIN)
+
+const bytesOfDataUrl = (u: string): number => {
+ const i = u.indexOf(',')
+ return i < 0 ? 0 : Math.floor(((u.length - i - 1) * 3) / 4)
+}
+
+const readDataUrl = (blob: Blob): Promise<string> =>
+ new Promise((resolve, reject) => {
+ const r = new FileReader()
+ r.onload = () => resolve(String(r.result))
+ r.onerror = () => reject(r.error)
+ r.readAsDataURL(blob)
+ })
+
+const toBlob = (c: HTMLCanvasElement, type: string, q?: number): Promise<Blob | null> =>
+ new Promise((resolve) => c.toBlob(resolve, type, q))
+
+/** Encode; a browser that cannot produce `type` answers with a PNG, which is not what was asked. */
+async function encode(c: HTMLCanvasElement, type: string, q?: number): Promise<Blob | null> {
+ const b = await toBlob(c, type, q)
+ return b && b.type === type ? b : null
+}
+
+const kept = (dataUrl: string, before: number, width: number, height: number, reason: ShrinkResult['reason']): ShrinkResult =>
+ ({ dataUrl, width, height, before, after: before, kind: 'kept', reason })
+
+/**
+ * The whole thing: decode, cap, classify, encode, compare. Always resolves —
+ * anything that cannot be decoded is stored as it came, the way it always was.
+ */
+export async function shrinkImageFile(file: Blob): Promise<ShrinkResult> {
+ const before = file.size
+ const original = await readDataUrl(file)
+ if (!shrinkEnabled()) return kept(original, before, 0, 0, 'off')
+ if (untouchable(file.type)) return kept(original, before, 0, 0, 'untouchable')
+
+ let bmp: ImageBitmap
+ try { bmp = await createImageBitmap(file) } catch { return kept(original, before, 0, 0, 'undecodable') }
+ const { width, height } = fitEdge(bmp.width, bmp.height)
+ const canvas = document.createElement('canvas')
+ canvas.width = width; canvas.height = height
+ const ctx = canvas.getContext('2d')
+ if (!ctx) { bmp.close(); return kept(original, before, bmp.width, bmp.height, 'undecodable') }
+ ctx.imageSmoothingEnabled = true
+ ctx.imageSmoothingQuality = 'high'
+ ctx.drawImage(bmp, 0, 0, width, height)
+ bmp.close()
+
+ // sample the drawn frame on a ~40 px grid (about 64×48 points at the cap):
+ // real pixels, not a downscale — a downscale averages a photo's noise away
+ // and made a gradient look flat
+ const step = Math.max(1, Math.round(Math.max(width, height) / 64))
+ const kind = classify(sampleGrid(ctx.getImageData(0, 0, width, height).data, width, height, step))
+
+ const candidates: Blob[] = []
+ if (kind === 'photo') {
+ const jpeg = await encode(canvas, 'image/jpeg', PHOTO_QUALITY)
+ const webp = await encode(canvas, 'image/webp', PHOTO_QUALITY)
+ for (const b of [jpeg, webp]) if (b) candidates.push(b)
+ } else {
+ // PNG only: a browser's WebP encoder cannot be asked for lossless in a
+ // way every engine honours, and "sharp" is the promise for graphics
+ const png = await encode(canvas, 'image/png')
+ if (png) candidates.push(png)
+ }
+ candidates.sort((a, b) => a.size - b.size)
+ const best = candidates[0]
+ if (!best || !worthIt(before, best.size)) return kept(original, before, width, height, 'no gain')
+ const dataUrl = await readDataUrl(best)
+ return { dataUrl, width, height, before, after: bytesOfDataUrl(dataUrl), kind, reason: 'shrunk' }
+}
+
+/** What the toast says, or null when the saving is not worth a line. The
+ * strings are the caller's (t() is render-time, not module-level). */
+export function shrinkNote(r: ShrinkResult): { photo: boolean; vars: { px: number; before: string; after: string } } | null {
+ if (r.kind === 'kept' || r.before - r.after < TOAST_MIN_SAVING) return null
+ return { photo: r.kind === 'photo', vars: { px: Math.max(r.width, r.height), before: fmtBytes(r.before), after: fmtBytes(r.after) } }
+}
+
+export const fmtBytes = (n: number): string =>
+ n >= 1024 * 1024 ? `${(n / (1024 * 1024)).toFixed(1)} MB` : `${Math.max(1, Math.round(n / 1024))} KB`
diff --git a/slides/src/i18n/de.ts b/slides/src/i18n/de.ts
index 506b769f..f25c2c44 100644
--- a/slides/src/i18n/de.ts
+++ b/slides/src/i18n/de.ts
@@ -875,6 +875,15 @@ export const de: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Seitenzahl, Datum, Uhrzeit, Titel und Dokumenteigenschaften — aufgelöst, wenn die Folie gezeigt wird. Datum und Uhrzeit können ein Format festlegen: {{date:M/D/YY}}; das Muster wird im Text bearbeitet.",
"Text ▸ Field": "Text ▸ Feld",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Seitenzahl, Datum, Uhrzeit, Titel oder eine Dokumenteigenschaft einfügen; ein Datum kann sein Format festlegen — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto mit {px} px gespeichert — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Bild mit {px} px gespeichert — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Fotos beim Einfügen verkleinern (2560 px; Screenshots und Logos bleiben scharf)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Ein eingefügtes Handyfoto wird in Folienauflösung statt in voller Größe gespeichert. Aus: Bilder werden genau so gespeichert, wie sie kommen.",
+ "Picture": "Bild",
+ "Embedded": "Eingebettet",
+ "Linked": "Verknüpft",
+ "No picture yet": "Noch kein Bild",
+ "Replace file (original size)…": "Datei ersetzen (Originalgröße)…",
"Keep aspect ratio": "Seitenverhältnis beibehalten",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "An: Größenänderung behält die Proportionen des Bildes (Umschalt gibt sie für einen Zug frei). Aus: Breite und Höhe ändern sich unabhängig und das Bild wird gestreckt",
}
diff --git a/slides/src/i18n/es.ts b/slides/src/i18n/es.ts
index 3703dc2c..67c8c265 100644
--- a/slides/src/i18n/es.ts
+++ b/slides/src/i18n/es.ts
@@ -875,6 +875,15 @@ export const es: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Número de página, fecha, hora, título y propiedades del documento: se resuelven al mostrar la diapositiva. La fecha y la hora pueden fijar un formato: {{date:M/D/YY}}; edita el patrón en el texto.",
"Text ▸ Field": "Texto ▸ Campo",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Inserta el número de página, la fecha, la hora, el título o una propiedad del documento; una fecha puede fijar su formato: {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto guardada a {px} px: {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Imagen guardada a {px} px: {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Reducir fotos al insertar (2560 px; capturas y logotipos siguen nítidos)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Una foto de móvil pegada se guarda a resolución de diapositiva en vez de a tamaño completo. Desactivado: las imágenes se guardan tal cual llegan.",
+ "Picture": "Imagen",
+ "Embedded": "Incrustada",
+ "Linked": "Enlazada",
+ "No picture yet": "Aún no hay imagen",
+ "Replace file (original size)…": "Reemplazar archivo (tamaño original)…",
"Keep aspect ratio": "Mantener la proporción",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Activado: al redimensionar se conservan las proporciones de la imagen (Mayús las libera durante un arrastre). Desactivado: ancho y alto cambian por separado y la imagen se estira",
}
diff --git a/slides/src/i18n/fr.ts b/slides/src/i18n/fr.ts
index 4acd5f90..f8486d89 100644
--- a/slides/src/i18n/fr.ts
+++ b/slides/src/i18n/fr.ts
@@ -875,6 +875,15 @@ export const fr: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Numéro de page, date, heure, titre et propriétés du document — résolus à l’affichage de la diapositive. La date et l’heure peuvent fixer un format : {{date:M/D/YY}} ; modifiez le motif dans le texte.",
"Text ▸ Field": "Texte ▸ Champ",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Insère le numéro de page, la date, l’heure, le titre ou une propriété du document ; une date peut fixer son format — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Photo enregistrée à {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Image enregistrée à {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Réduire les photos à l’insertion (2560 px ; captures et logos restent nets)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Une photo de téléphone collée est enregistrée à la résolution de la diapositive plutôt qu’en taille réelle. Désactivé : les images sont enregistrées telles quelles.",
+ "Picture": "Image",
+ "Embedded": "Intégrée",
+ "Linked": "Liée",
+ "No picture yet": "Pas encore d’image",
+ "Replace file (original size)…": "Remplacer le fichier (taille d’origine)…",
"Keep aspect ratio": "Conserver les proportions",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Activé : le redimensionnement conserve les proportions de l’image (Maj les libère le temps d’un glissement). Désactivé : largeur et hauteur changent séparément et l’image s’étire",
}
diff --git a/slides/src/i18n/it.ts b/slides/src/i18n/it.ts
index 0f498a33..50c1a8e3 100644
--- a/slides/src/i18n/it.ts
+++ b/slides/src/i18n/it.ts
@@ -875,6 +875,15 @@ export const it: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Numero di pagina, data, ora, titolo e proprietà del documento — risolti quando la diapositiva viene mostrata. Data e ora possono fissare un formato: {{date:M/D/YY}}; modifica il modello nel testo.",
"Text ▸ Field": "Testo ▸ Campo",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Inserisce numero di pagina, data, ora, titolo o una proprietà del documento; una data può fissare il proprio formato — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto salvata a {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Immagine salvata a {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Riduci le foto all’inserimento (2560 px; screenshot e loghi restano nitidi)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Una foto da telefono incollata viene salvata alla risoluzione della diapositiva invece che a dimensione piena. Disattivato: le immagini vengono salvate esattamente come arrivano.",
+ "Picture": "Immagine",
+ "Embedded": "Incorporata",
+ "Linked": "Collegata",
+ "No picture yet": "Nessuna immagine ancora",
+ "Replace file (original size)…": "Sostituisci file (dimensione originale)…",
"Keep aspect ratio": "Mantieni le proporzioni",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Attivo: il ridimensionamento conserva le proporzioni dell’immagine (Maiusc le libera per un trascinamento). Disattivo: larghezza e altezza cambiano separatamente e l’immagine si deforma",
}
diff --git a/slides/src/i18n/ja.ts b/slides/src/i18n/ja.ts
index 1f673e3a..5255c73c 100644
--- a/slides/src/i18n/ja.ts
+++ b/slides/src/i18n/ja.ts
@@ -875,6 +875,15 @@ export const ja: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "ページ番号、日付、時刻、タイトル、文書プロパティ — スライド表示時に解決されます。日付と時刻は書式を固定できます: {{date:M/D/YY}}。パターンはテキスト内で編集します。",
"Text ▸ Field": "テキスト ▸ フィールド",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "ページ番号、日付、時刻、タイトル、文書プロパティを挿入します。日付は書式を固定できます — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "写真を {px} px で保存 — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "画像を {px} px で保存 — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "挿入時に写真を縮小(2560 px、スクリーンショットやロゴは鮮明なまま)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "貼り付けたスマホ写真をフルサイズではなくスライド解像度で保存します。オフ: 画像はそのまま保存されます。",
+ "Picture": "画像",
+ "Embedded": "埋め込み",
+ "Linked": "リンク",
+ "No picture yet": "画像はまだありません",
+ "Replace file (original size)…": "ファイルを置き換え(元のサイズ)…",
"Keep aspect ratio": "縦横比を保つ",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "オン: サイズ変更で画像の比率を保ちます(Shift で一回のドラッグだけ解除)。オフ: 幅と高さを別々に変えられ、画像は引き伸ばされます",
}
diff --git a/slides/src/i18n/packed.ts b/slides/src/i18n/packed.ts
index 426812f0..02087f40 100644
--- a/slides/src/i18n/packed.ts
+++ b/slides/src/i18n/packed.ts
@@ -881,6 +881,15 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": ["ページ番号、日付、時刻、タイトル、文書プロパティ — スライド表示時に解決されます。日付と時刻は書式を固定できます: {{date:M/D/YY}}。パターンはテキスト内で編集します。","页码、日期、时间、标题和文档属性 — 在显示幻灯片时解析。日期和时间可固定格式:{{date:M/D/YY}};在文本中编辑模式。","頁碼、日期、時間、標題和文件屬性 — 在顯示投影片時解析。日期和時間可固定格式:{{date:M/D/YY}};在文字中編輯樣式。","Número de página, fecha, hora, título y propiedades del documento: se resuelven al mostrar la diapositiva. La fecha y la hora pueden fijar un formato: {{date:M/D/YY}}; edita el patrón en el texto.","Numéro de page, date, heure, titre et propriétés du document — résolus à l’affichage de la diapositive. La date et l’heure peuvent fixer un format : {{date:M/D/YY}} ; modifiez le motif dans le texte.","Seitenzahl, Datum, Uhrzeit, Titel und Dokumenteigenschaften — aufgelöst, wenn die Folie gezeigt wird. Datum und Uhrzeit können ein Format festlegen: {{date:M/D/YY}}; das Muster wird im Text bearbeitet.","Numero di pagina, data, ora, titolo e proprietà del documento — risolti quando la diapositiva viene mostrata. Data e ora possono fissare un formato: {{date:M/D/YY}}; modifica il modello nel testo.","Número da página, data, hora, título e propriedades do documento — resolvidos quando o diapositivo é mostrado. Data e hora podem fixar um formato: {{date:M/D/YY}}; edite o padrão no texto."],
"Text ▸ Field": ["テキスト ▸ フィールド","文本 ▸ 字段","文字 ▸ 欄位","Texto ▸ Campo","Texte ▸ Champ","Text ▸ Feld","Testo ▸ Campo","Texto ▸ Campo"],
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": ["ページ番号、日付、時刻、タイトル、文書プロパティを挿入します。日付は書式を固定できます — {{date:M/D/YY}}","插入页码、日期、时间、标题或文档属性;日期可固定格式 — {{date:M/D/YY}}","插入頁碼、日期、時間、標題或文件屬性;日期可固定格式 — {{date:M/D/YY}}","Inserta el número de página, la fecha, la hora, el título o una propiedad del documento; una fecha puede fijar su formato: {{date:M/D/YY}}","Insère le numéro de page, la date, l’heure, le titre ou une propriété du document ; une date peut fixer son format — {{date:M/D/YY}}","Seitenzahl, Datum, Uhrzeit, Titel oder eine Dokumenteigenschaft einfügen; ein Datum kann sein Format festlegen — {{date:M/D/YY}}","Inserisce numero di pagina, data, ora, titolo o una proprietà del documento; una data può fissare il proprio formato — {{date:M/D/YY}}","Insere o número da página, a data, a hora, o título ou uma propriedade do documento; uma data pode fixar o seu formato — {{date:M/D/YY}}"],
+ "Photo stored at {px} px — {before} → {after}": ["写真を {px} px で保存 — {before} → {after}","照片已按 {px} px 存储 — {before} → {after}","照片已以 {px} px 儲存 — {before} → {after}","Foto guardada a {px} px: {before} → {after}","Photo enregistrée à {px} px — {before} → {after}","Foto mit {px} px gespeichert — {before} → {after}","Foto salvata a {px} px — {before} → {after}","Foto guardada a {px} px — {before} → {after}"],
+ "Image stored at {px} px — {before} → {after}": ["画像を {px} px で保存 — {before} → {after}","图片已按 {px} px 存储 — {before} → {after}","圖片已以 {px} px 儲存 — {before} → {after}","Imagen guardada a {px} px: {before} → {after}","Image enregistrée à {px} px — {before} → {after}","Bild mit {px} px gespeichert — {before} → {after}","Immagine salvata a {px} px — {before} → {after}","Imagem guardada a {px} px — {before} → {after}"],
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": ["挿入時に写真を縮小(2560 px、スクリーンショットやロゴは鮮明なまま)","插入时缩小照片(2560 px,截图和徽标保持清晰)","插入時縮小照片(2560 px,截圖與標誌保持清晰)","Reducir fotos al insertar (2560 px; capturas y logotipos siguen nítidos)","Réduire les photos à l’insertion (2560 px ; captures et logos restent nets)","Fotos beim Einfügen verkleinern (2560 px; Screenshots und Logos bleiben scharf)","Riduci le foto all’inserimento (2560 px; screenshot e loghi restano nitidi)","Reduzir fotos ao inserir (2560 px; capturas e logótipos mantêm-se nítidos)"],
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": ["貼り付けたスマホ写真をフルサイズではなくスライド解像度で保存します。オフ: 画像はそのまま保存されます。","粘贴的手机照片按幻灯片分辨率而非原始尺寸存储。关闭:图片按原样存储。","貼上的手機照片以投影片解析度而非原始尺寸儲存。關閉:圖片按原樣儲存。","Una foto de móvil pegada se guarda a resolución de diapositiva en vez de a tamaño completo. Desactivado: las imágenes se guardan tal cual llegan.","Une photo de téléphone collée est enregistrée à la résolution de la diapositive plutôt qu’en taille réelle. Désactivé : les images sont enregistrées telles quelles.","Ein eingefügtes Handyfoto wird in Folienauflösung statt in voller Größe gespeichert. Aus: Bilder werden genau so gespeichert, wie sie kommen.","Una foto da telefono incollata viene salvata alla risoluzione della diapositiva invece che a dimensione piena. Disattivato: le immagini vengono salvate esattamente come arrivano.","Uma foto de telemóvel colada é guardada à resolução do diapositivo em vez do tamanho total. Desligado: as imagens são guardadas exatamente como chegam."],
+ "Picture": ["画像","图片","圖片","Imagen","Image","Bild","Immagine","Imagem"],
+ "Embedded": ["埋め込み","已嵌入","已嵌入","Incrustada","Intégrée","Eingebettet","Incorporata","Incorporada"],
+ "Linked": ["リンク","已链接","已連結","Enlazada","Liée","Verknüpft","Collegata","Ligada"],
+ "No picture yet": ["画像はまだありません","还没有图片","還沒有圖片","Aún no hay imagen","Pas encore d’image","Noch kein Bild","Nessuna immagine ancora","Ainda sem imagem"],
+ "Replace file (original size)…": ["ファイルを置き換え(元のサイズ)…","替换文件(原始尺寸)…","取代檔案(原始尺寸)…","Reemplazar archivo (tamaño original)…","Remplacer le fichier (taille d’origine)…","Datei ersetzen (Originalgröße)…","Sostituisci file (dimensione originale)…","Substituir ficheiro (tamanho original)…"],
"Keep aspect ratio": ["縦横比を保つ","保持宽高比","保持長寬比","Mantener la proporción","Conserver les proportions","Seitenverhältnis beibehalten","Mantieni le proporzioni","Manter proporções"],
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": ["オン: サイズ変更で画像の比率を保ちます(Shift で一回のドラッグだけ解除)。オフ: 幅と高さを別々に変えられ、画像は引き伸ばされます","开:调整大小时保持图片比例(按住 Shift 可临时解除一次拖动)。关:宽和高各自变化,图片会被拉伸","開:調整大小時保持圖片比例(按住 Shift 可暫時解除一次拖曳)。關:寬和高各自變化,圖片會被拉伸","Activado: al redimensionar se conservan las proporciones de la imagen (Mayús las libera durante un arrastre). Desactivado: ancho y alto cambian por separado y la imagen se estira","Activé : le redimensionnement conserve les proportions de l’image (Maj les libère le temps d’un glissement). Désactivé : largeur et hauteur changent séparément et l’image s’étire","An: Größenänderung behält die Proportionen des Bildes (Umschalt gibt sie für einen Zug frei). Aus: Breite und Höhe ändern sich unabhängig und das Bild wird gestreckt","Attivo: il ridimensionamento conserva le proporzioni dell’immagine (Maiusc le libera per un trascinamento). Disattivo: larghezza e altezza cambiano separatamente e l’immagine si deforma","Ligado: redimensionar mantém as proporções da imagem (Shift liberta-as durante um arrasto). Desligado: largura e altura mudam separadamente e a imagem estica"],
}
diff --git a/slides/src/i18n/packs/ar.ts b/slides/src/i18n/packs/ar.ts
index 63973ca6..7db1e2ff 100644
--- a/slides/src/i18n/packs/ar.ts
+++ b/slides/src/i18n/packs/ar.ts
@@ -895,6 +895,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "رقم الصفحة والتاريخ والوقت والعنوان وخصائص المستند — تُحلّ عند عرض الشريحة. يمكن للتاريخ والوقت تثبيت تنسيق: {{date:M/D/YY}}؛ حرّر النمط في النص.",
"Text ▸ Field": "نص ▸ حقل",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "يدرج رقم الصفحة أو التاريخ أو الوقت أو العنوان أو خاصية مستند؛ يمكن للتاريخ تثبيت تنسيقه — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "حُفظت الصورة الفوتوغرافية بدقة {px} بكسل — {before} ← {after}",
+ "Image stored at {px} px — {before} → {after}": "حُفظت الصورة بدقة {px} بكسل — {before} ← {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "تصغير الصور عند الإدراج (2560 بكسل؛ تبقى لقطات الشاشة والشعارات حادة)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "تُحفظ صورة الهاتف الملصقة بدقة الشريحة بدلًا من الحجم الكامل. إيقاف: تُحفظ الصور كما هي تمامًا.",
+ "Picture": "صورة",
+ "Embedded": "مضمّنة",
+ "Linked": "مرتبطة",
+ "No picture yet": "لا توجد صورة بعد",
+ "Replace file (original size)…": "استبدال الملف (الحجم الأصلي)…",
"Keep aspect ratio": "الحفاظ على نسبة الأبعاد",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "مفعّل: يحافظ تغيير الحجم على نسب الصورة (Shift يحرّرها لسحبة واحدة). معطّل: يتغير العرض والارتفاع باستقلال وتتمدد الصورة",
}
diff --git a/slides/src/i18n/packs/bn.ts b/slides/src/i18n/packs/bn.ts
index 127eceb9..2044cfaa 100644
--- a/slides/src/i18n/packs/bn.ts
+++ b/slides/src/i18n/packs/bn.ts
@@ -898,6 +898,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "পৃষ্ঠা নম্বর, তারিখ, সময়, শিরোনাম ও নথির বৈশিষ্ট্য — স্লাইড দেখানোর সময় নির্ধারিত হয়। তারিখ ও সময়ের বিন্যাস স্থির করা যায়: {{date:M/D/YY}}; প্যাটার্নটি লেখায় সম্পাদনা করুন।",
"Text ▸ Field": "লেখা ▸ ফিল্ড",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "পৃষ্ঠা নম্বর, তারিখ, সময়, শিরোনাম বা নথির বৈশিষ্ট্য যোগ করুন; তারিখের বিন্যাস স্থির করা যায় — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "ছবি {px} px-এ সংরক্ষিত — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "চিত্র {px} px-এ সংরক্ষিত — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "যোগ করার সময় ছবি ছোট করুন (2560 px; স্ক্রিনশট ও লোগো স্পষ্ট থাকে)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "পেস্ট করা ফোনের ছবি পূর্ণ আকারের বদলে স্লাইডের রেজোলিউশনে সংরক্ষিত হয়। বন্ধ: ছবি যেমন আসে তেমনই সংরক্ষিত হয়।",
+ "Picture": "ছবি",
+ "Embedded": "এমবেড করা",
+ "Linked": "লিঙ্ক করা",
+ "No picture yet": "এখনও কোনো ছবি নেই",
+ "Replace file (original size)…": "ফাইল বদলান (মূল আকার)…",
"Keep aspect ratio": "অনুপাত বজায় রাখুন",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "চালু: আকার বদলালে ছবির অনুপাত বজায় থাকে (Shift এক টানের জন্য মুক্ত করে)। বন্ধ: প্রস্থ ও উচ্চতা আলাদাভাবে বদলায় এবং ছবি টেনে বড় হয়",
}
diff --git a/slides/src/i18n/packs/da.ts b/slides/src/i18n/packs/da.ts
index fddbdde2..a252eb56 100644
--- a/slides/src/i18n/packs/da.ts
+++ b/slides/src/i18n/packs/da.ts
@@ -887,6 +887,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Sidetal, dato, klokkeslæt, titel og dokumentegenskaber — udfyldes når diasset vises. Dato og klokkeslæt kan låse et format: {{date:M/D/YY}}; rediger mønsteret i teksten.",
"Text ▸ Field": "Tekst ▸ Felt",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Indsæt sidetal, dato, klokkeslæt, titel eller en dokumentegenskab; en dato kan låse sit format — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto gemt i {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Billede gemt i {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Formindsk fotos ved indsættelse (2560 px; skærmbilleder og logoer forbliver skarpe)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Et indsat telefonfoto gemmes i diasopløsning i stedet for fuld størrelse. Fra: billeder gemmes præcis som de kommer.",
+ "Picture": "Billede",
+ "Embedded": "Indlejret",
+ "Linked": "Linket",
+ "No picture yet": "Intet billede endnu",
+ "Replace file (original size)…": "Erstat fil (original størrelse)…",
"Keep aspect ratio": "Bevar størrelsesforhold",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Til: ændring af størrelse bevarer billedets proportioner (Skift frigiver dem for ét træk). Fra: bredde og højde ændres uafhængigt, og billedet strækkes",
}
diff --git a/slides/src/i18n/packs/fa.ts b/slides/src/i18n/packs/fa.ts
index 0e870be7..fad7fc57 100644
--- a/slides/src/i18n/packs/fa.ts
+++ b/slides/src/i18n/packs/fa.ts
@@ -891,6 +891,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "شمارهٔ صفحه، تاریخ، زمان، عنوان و ویژگی‌های سند — هنگام نمایش اسلاید جایگزین می‌شوند. تاریخ و زمان می‌توانند قالب را ثابت کنند: {{date:M/D/YY}}؛ الگو را در متن ویرایش کنید.",
"Text ▸ Field": "متن ▸ فیلد",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "شمارهٔ صفحه، تاریخ، زمان، عنوان یا یک ویژگی سند را درج می‌کند؛ تاریخ می‌تواند قالب خود را ثابت کند — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "عکس با {px} پیکسل ذخیره شد — {before} ← {after}",
+ "Image stored at {px} px — {before} → {after}": "تصویر با {px} پیکسل ذخیره شد — {before} ← {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "کوچک‌کردن عکس‌ها هنگام درج (۲۵۶۰ پیکسل؛ اسکرین‌شات‌ها و لوگوها واضح می‌مانند)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "عکس تلفن چسبانده‌شده به‌جای اندازهٔ کامل، با وضوح اسلاید ذخیره می‌شود. خاموش: تصاویر دقیقاً همان‌طور که می‌آیند ذخیره می‌شوند.",
+ "Picture": "تصویر",
+ "Embedded": "جاسازی‌شده",
+ "Linked": "پیوندشده",
+ "No picture yet": "هنوز تصویری نیست",
+ "Replace file (original size)…": "جایگزینی پرونده (اندازهٔ اصلی)…",
"Keep aspect ratio": "حفظ نسبت ابعاد",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "روشن: تغییر اندازه نسبت تصویر را حفظ می‌کند (Shift آن را برای یک کشیدن آزاد می‌کند). خاموش: عرض و ارتفاع مستقل تغییر می‌کنند و تصویر کشیده می‌شود",
}
diff --git a/slides/src/i18n/packs/fi.ts b/slides/src/i18n/packs/fi.ts
index d977525d..9454a97f 100644
--- a/slides/src/i18n/packs/fi.ts
+++ b/slides/src/i18n/packs/fi.ts
@@ -892,6 +892,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Sivunumero, päivämäärä, kellonaika, otsikko ja asiakirjan ominaisuudet — täytetään, kun dia näytetään. Päivämäärä ja kellonaika voivat lukita muodon: {{date:M/D/YY}}; muokkaa kaavaa tekstissä.",
"Text ▸ Field": "Teksti ▸ Kenttä",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Lisää sivunumeron, päivämäärän, kellonajan, otsikon tai asiakirjan ominaisuuden; päivämäärä voi lukita muotonsa — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Valokuva tallennettu {px} px:nä — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Kuva tallennettu {px} px:nä — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Pienennä valokuvat lisättäessä (2560 px; kuvakaappaukset ja logot pysyvät terävinä)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Liitetty puhelinkuva tallennetaan dian tarkkuudella täyden koon sijaan. Pois: kuvat tallennetaan täsmälleen sellaisina kuin ne tulevat.",
+ "Picture": "Kuva",
+ "Embedded": "Upotettu",
+ "Linked": "Linkitetty",
+ "No picture yet": "Ei vielä kuvaa",
+ "Replace file (original size)…": "Korvaa tiedosto (alkuperäinen koko)…",
"Keep aspect ratio": "Säilytä kuvasuhde",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Päällä: koon muutos säilyttää kuvan mittasuhteet (Vaihto vapauttaa ne yhden vedon ajaksi). Pois: leveys ja korkeus muuttuvat erikseen ja kuva venyy",
}
diff --git a/slides/src/i18n/packs/fil.ts b/slides/src/i18n/packs/fil.ts
index 8b183918..869ee26d 100644
--- a/slides/src/i18n/packs/fil.ts
+++ b/slides/src/i18n/packs/fil.ts
@@ -904,6 +904,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Numero ng pahina, petsa, oras, pamagat at mga property ng dokumento — nireresolba kapag ipinakita ang slide. Puwedeng itakda ng petsa at oras ang format: {{date:M/D/YY}}; i-edit ang pattern sa teksto.",
"Text ▸ Field": "Teksto ▸ Field",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Ilagay ang numero ng pahina, petsa, oras, pamagat o property ng dokumento; puwedeng itakda ng petsa ang format nito — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Naka-store ang larawan sa {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Naka-store ang imahe sa {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Paliitin ang mga larawan kapag inilagay (2560 px; nananatiling malinaw ang mga screenshot at logo)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Ang na-paste na larawan mula sa telepono ay itinatago sa resolusyon ng slide sa halip na buong laki. Naka-off: itinatago ang mga larawan nang eksakto kung paano dumating.",
+ "Picture": "Larawan",
+ "Embedded": "Naka-embed",
+ "Linked": "Naka-link",
+ "No picture yet": "Wala pang larawan",
+ "Replace file (original size)…": "Palitan ang file (orihinal na laki)…",
"Keep aspect ratio": "Panatilihin ang aspect ratio",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Naka-on: pinapanatili ng pag-resize ang proporsyon ng larawan (pinapalaya ito ng Shift sa isang drag). Naka-off: hiwalay na nagbabago ang lapad at taas at nababanat ang larawan",
}
diff --git a/slides/src/i18n/packs/he.ts b/slides/src/i18n/packs/he.ts
index cf54f707..f3e8d3ee 100644
--- a/slides/src/i18n/packs/he.ts
+++ b/slides/src/i18n/packs/he.ts
@@ -888,6 +888,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "מספר עמוד, תאריך, שעה, כותרת ומאפייני המסמך — נפתרים בעת הצגת השקופית. תאריך ושעה יכולים לקבע תבנית: {{date:M/D/YY}}; ערכו את התבנית בטקסט.",
"Text ▸ Field": "טקסט ▸ שדה",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "הוספת מספר עמוד, תאריך, שעה, כותרת או מאפיין מסמך; תאריך יכול לקבע את התבנית שלו — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "התמונה נשמרה ב-{px} פיקסלים — {before} ← {after}",
+ "Image stored at {px} px — {before} → {after}": "התמונה נשמרה ב-{px} פיקסלים — {before} ← {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "הקטנת תמונות בהוספה (2560 פיקסלים; צילומי מסך ולוגואים נשארים חדים)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "תמונה מהטלפון שהודבקה נשמרת ברזולוציית השקופית במקום בגודל מלא. כבוי: תמונות נשמרות בדיוק כפי שהגיעו.",
+ "Picture": "תמונה",
+ "Embedded": "מוטמעת",
+ "Linked": "מקושרת",
+ "No picture yet": "עדיין אין תמונה",
+ "Replace file (original size)…": "החלפת קובץ (גודל מקורי)…",
"Keep aspect ratio": "שמירה על יחס גובה-רוחב",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "פעיל: שינוי גודל שומר על הפרופורציות של התמונה (Shift משחרר אותן לגרירה אחת). כבוי: רוחב וגובה משתנים בנפרד והתמונה נמתחת",
}
diff --git a/slides/src/i18n/packs/hi.ts b/slides/src/i18n/packs/hi.ts
index eb312789..ce8b3f42 100644
--- a/slides/src/i18n/packs/hi.ts
+++ b/slides/src/i18n/packs/hi.ts
@@ -895,6 +895,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "पृष्ठ संख्या, तारीख़, समय, शीर्षक और दस्तावेज़ गुण — स्लाइड दिखाते समय हल होते हैं। तारीख़ और समय प्रारूप तय कर सकते हैं: {{date:M/D/YY}}; पैटर्न पाठ में संपादित करें।",
"Text ▸ Field": "पाठ ▸ फ़ील्ड",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "पृष्ठ संख्या, तारीख़, समय, शीर्षक या दस्तावेज़ गुण डालें; तारीख़ अपना प्रारूप तय कर सकती है — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "फ़ोटो {px} px पर संग्रहीत — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "छवि {px} px पर संग्रहीत — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "डालते समय फ़ोटो छोटी करें (2560 px; स्क्रीनशॉट और लोगो साफ़ रहते हैं)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "चिपकाई गई फ़ोन फ़ोटो पूर्ण आकार के बजाय स्लाइड रिज़ॉल्यूशन पर संग्रहीत होती है। बंद: चित्र ठीक वैसे ही संग्रहीत होते हैं जैसे आते हैं।",
+ "Picture": "चित्र",
+ "Embedded": "एम्बेडेड",
+ "Linked": "लिंक किया गया",
+ "No picture yet": "अभी कोई चित्र नहीं",
+ "Replace file (original size)…": "फ़ाइल बदलें (मूल आकार)…",
"Keep aspect ratio": "अनुपात बनाए रखें",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "चालू: आकार बदलने पर छवि का अनुपात बना रहता है (Shift एक खिंचाव के लिए मुक्त करता है)। बंद: चौड़ाई और ऊँचाई अलग-अलग बदलती हैं और छवि खिंचती है",
}
diff --git a/slides/src/i18n/packs/id.ts b/slides/src/i18n/packs/id.ts
index 0e723aa2..928fbf63 100644
--- a/slides/src/i18n/packs/id.ts
+++ b/slides/src/i18n/packs/id.ts
@@ -885,6 +885,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Nomor halaman, tanggal, waktu, judul, dan properti dokumen — diisi saat slide ditampilkan. Tanggal dan waktu dapat mengunci format: {{date:M/D/YY}}; edit polanya di teks.",
"Text ▸ Field": "Teks ▸ Bidang",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Sisipkan nomor halaman, tanggal, waktu, judul, atau properti dokumen; tanggal dapat mengunci formatnya — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto disimpan pada {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Gambar disimpan pada {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Perkecil foto saat disisipkan (2560 px; tangkapan layar dan logo tetap tajam)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Foto ponsel yang ditempel disimpan pada resolusi slide, bukan ukuran penuh. Nonaktif: gambar disimpan persis seperti aslinya.",
+ "Picture": "Gambar",
+ "Embedded": "Tertanam",
+ "Linked": "Tertaut",
+ "No picture yet": "Belum ada gambar",
+ "Replace file (original size)…": "Ganti file (ukuran asli)…",
"Keep aspect ratio": "Pertahankan rasio aspek",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Aktif: mengubah ukuran mempertahankan proporsi gambar (Shift membebaskannya untuk satu seretan). Nonaktif: lebar dan tinggi berubah terpisah dan gambar meregang",
}
diff --git a/slides/src/i18n/packs/ko.ts b/slides/src/i18n/packs/ko.ts
index a24d961c..1e0757a3 100644
--- a/slides/src/i18n/packs/ko.ts
+++ b/slides/src/i18n/packs/ko.ts
@@ -879,6 +879,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "페이지 번호, 날짜, 시간, 제목, 문서 속성 — 슬라이드가 표시될 때 채워집니다. 날짜와 시간은 형식을 고정할 수 있습니다: {{date:M/D/YY}}; 패턴은 텍스트에서 편집합니다.",
"Text ▸ Field": "텍스트 ▸ 필드",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "페이지 번호, 날짜, 시간, 제목 또는 문서 속성을 삽입합니다. 날짜는 형식을 고정할 수 있습니다 — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "사진을 {px} px로 저장 — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "이미지를 {px} px로 저장 — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "삽입할 때 사진 줄이기 (2560 px, 스크린샷과 로고는 선명하게 유지)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "붙여넣은 휴대폰 사진을 원본 크기 대신 슬라이드 해상도로 저장합니다. 끄면 그림이 들어온 그대로 저장됩니다.",
+ "Picture": "그림",
+ "Embedded": "포함됨",
+ "Linked": "연결됨",
+ "No picture yet": "아직 그림 없음",
+ "Replace file (original size)…": "파일 바꾸기 (원본 크기)…",
"Keep aspect ratio": "가로세로 비율 유지",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "켜짐: 크기를 조절해도 이미지 비율이 유지됩니다 (Shift로 한 번의 드래그만 해제). 꺼짐: 너비와 높이가 따로 바뀌고 이미지가 늘어납니다",
}
diff --git a/slides/src/i18n/packs/ms.ts b/slides/src/i18n/packs/ms.ts
index 5b7db907..a9fc6e6c 100644
--- a/slides/src/i18n/packs/ms.ts
+++ b/slides/src/i18n/packs/ms.ts
@@ -888,6 +888,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Nombor halaman, tarikh, masa, tajuk dan sifat dokumen — diisi apabila slaid dipaparkan. Tarikh dan masa boleh menetapkan format: {{date:M/D/YY}}; sunting coraknya dalam teks.",
"Text ▸ Field": "Teks ▸ Medan",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Sisipkan nombor halaman, tarikh, masa, tajuk atau sifat dokumen; tarikh boleh menetapkan formatnya — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto disimpan pada {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Imej disimpan pada {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Kecilkan foto semasa menyisipkan (2560 px; tangkapan skrin dan logo kekal tajam)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Foto telefon yang ditampal disimpan pada resolusi slaid dan bukan saiz penuh. Mati: gambar disimpan tepat seperti yang diterima.",
+ "Picture": "Gambar",
+ "Embedded": "Terbenam",
+ "Linked": "Terpaut",
+ "No picture yet": "Belum ada gambar",
+ "Replace file (original size)…": "Gantikan fail (saiz asal)…",
"Keep aspect ratio": "Kekalkan nisbah aspek",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Hidup: mengubah saiz mengekalkan kadaran imej (Shift membebaskannya untuk satu seretan). Mati: lebar dan tinggi berubah secara berasingan dan imej meregang",
}
diff --git a/slides/src/i18n/packs/nb.ts b/slides/src/i18n/packs/nb.ts
index cc461a2e..2218b432 100644
--- a/slides/src/i18n/packs/nb.ts
+++ b/slides/src/i18n/packs/nb.ts
@@ -889,6 +889,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Sidetall, dato, klokkeslett, tittel og dokumentegenskaper — fylles ut når lysbildet vises. Dato og klokkeslett kan låse et format: {{date:M/D/YY}}; rediger mønsteret i teksten.",
"Text ▸ Field": "Tekst ▸ Felt",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Sett inn sidetall, dato, klokkeslett, tittel eller en dokumentegenskap; en dato kan låse formatet sitt — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto lagret i {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Bilde lagret i {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Forminsk bilder ved innsetting (2560 px; skjermbilder og logoer forblir skarpe)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Et innlimt telefonbilde lagres i lysbildeoppløsning i stedet for full størrelse. Av: bilder lagres nøyaktig slik de kommer.",
+ "Picture": "Bilde",
+ "Embedded": "Innebygd",
+ "Linked": "Lenket",
+ "No picture yet": "Ingen bilde ennå",
+ "Replace file (original size)…": "Erstatt fil (original størrelse)…",
"Keep aspect ratio": "Behold størrelsesforhold",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "På: endring av størrelse beholder bildets proporsjoner (Skift frigjør dem for ett drag). Av: bredde og høyde endres uavhengig, og bildet strekkes",
}
diff --git a/slides/src/i18n/packs/nl.ts b/slides/src/i18n/packs/nl.ts
index b0b49434..9c568209 100644
--- a/slides/src/i18n/packs/nl.ts
+++ b/slides/src/i18n/packs/nl.ts
@@ -883,6 +883,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Paginanummer, datum, tijd, titel en documenteigenschappen — ingevuld zodra de dia wordt getoond. Datum en tijd kunnen een notatie vastzetten: {{date:M/D/YY}}; bewerk het patroon in de tekst.",
"Text ▸ Field": "Tekst ▸ Veld",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Voeg paginanummer, datum, tijd, titel of een documenteigenschap in; een datum kan zijn notatie vastzetten — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto opgeslagen op {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Afbeelding opgeslagen op {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Foto's verkleinen bij invoegen (2560 px; schermafbeeldingen en logo's blijven scherp)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Een geplakte telefoonfoto wordt opgeslagen op diaresolutie in plaats van op volle grootte. Uit: afbeeldingen worden precies zo opgeslagen als ze binnenkomen.",
+ "Picture": "Afbeelding",
+ "Embedded": "Ingesloten",
+ "Linked": "Gekoppeld",
+ "No picture yet": "Nog geen afbeelding",
+ "Replace file (original size)…": "Bestand vervangen (originele grootte)…",
"Keep aspect ratio": "Verhouding behouden",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Aan: bij het schalen blijven de verhoudingen van de afbeelding behouden (Shift geeft ze vrij voor één sleep). Uit: breedte en hoogte veranderen los van elkaar en de afbeelding rekt uit",
}
diff --git a/slides/src/i18n/packs/pl.ts b/slides/src/i18n/packs/pl.ts
index 99eec6b3..ed58b246 100644
--- a/slides/src/i18n/packs/pl.ts
+++ b/slides/src/i18n/packs/pl.ts
@@ -886,6 +886,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Numer strony, data, godzina, tytuł i właściwości dokumentu — uzupełniane przy wyświetleniu slajdu. Data i godzina mogą mieć ustalony format: {{date:M/D/YY}}; wzorzec edytujesz w tekście.",
"Text ▸ Field": "Tekst ▸ Pole",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Wstawia numer strony, datę, godzinę, tytuł lub właściwość dokumentu; data może mieć ustalony format — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Zdjęcie zapisane w {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Obraz zapisany w {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Zmniejszaj zdjęcia przy wstawianiu (2560 px; zrzuty ekranu i logo pozostają ostre)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Wklejone zdjęcie z telefonu jest zapisywane w rozdzielczości slajdu zamiast w pełnym rozmiarze. Wyłączone: obrazy są zapisywane dokładnie tak, jak przychodzą.",
+ "Picture": "Obraz",
+ "Embedded": "Osadzony",
+ "Linked": "Połączony",
+ "No picture yet": "Brak obrazu",
+ "Replace file (original size)…": "Zastąp plik (oryginalny rozmiar)…",
"Keep aspect ratio": "Zachowaj proporcje",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Włączone: zmiana rozmiaru zachowuje proporcje obrazu (Shift zwalnia je na jedno przeciągnięcie). Wyłączone: szerokość i wysokość zmieniają się niezależnie, a obraz się rozciąga",
}
diff --git a/slides/src/i18n/packs/ru.ts b/slides/src/i18n/packs/ru.ts
index 418bbe73..842e3b3d 100644
--- a/slides/src/i18n/packs/ru.ts
+++ b/slides/src/i18n/packs/ru.ts
@@ -887,6 +887,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Номер страницы, дата, время, название и свойства документа — подставляются при показе слайда. Дата и время могут закрепить формат: {{date:M/D/YY}}; шаблон правится в тексте.",
"Text ▸ Field": "Текст ▸ Поле",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Вставляет номер страницы, дату, время, название или свойство документа; дата может закрепить свой формат — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Фото сохранено в {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Изображение сохранено в {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Уменьшать фото при вставке (2560 px; снимки экрана и логотипы остаются чёткими)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Вставленное фото с телефона сохраняется в разрешении слайда, а не в полном размере. Выкл.: изображения сохраняются ровно такими, какими пришли.",
+ "Picture": "Изображение",
+ "Embedded": "Встроено",
+ "Linked": "По ссылке",
+ "No picture yet": "Изображения пока нет",
+ "Replace file (original size)…": "Заменить файл (исходный размер)…",
"Keep aspect ratio": "Сохранять пропорции",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Вкл.: изменение размера сохраняет пропорции изображения (Shift освобождает их на одно перетаскивание). Выкл.: ширина и высота меняются независимо, изображение растягивается",
}
diff --git a/slides/src/i18n/packs/sv.ts b/slides/src/i18n/packs/sv.ts
index 995c5751..070399be 100644
--- a/slides/src/i18n/packs/sv.ts
+++ b/slides/src/i18n/packs/sv.ts
@@ -884,6 +884,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Sidnummer, datum, tid, titel och dokumentegenskaper — fylls i när bilden visas. Datum och tid kan låsa ett format: {{date:M/D/YY}}; redigera mönstret i texten.",
"Text ▸ Field": "Text ▸ Fält",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Infoga sidnummer, datum, tid, titel eller en dokumentegenskap; ett datum kan låsa sitt format — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto sparat i {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Bild sparad i {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Förminska foton vid infogning (2560 px; skärmbilder och logotyper förblir skarpa)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Ett inklistrat telefonfoto sparas i bildens upplösning i stället för full storlek. Av: bilder sparas exakt som de kommer.",
+ "Picture": "Bild",
+ "Embedded": "Inbäddad",
+ "Linked": "Länkad",
+ "No picture yet": "Ingen bild än",
+ "Replace file (original size)…": "Ersätt fil (originalstorlek)…",
"Keep aspect ratio": "Behåll proportioner",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "På: storleksändring behåller bildens proportioner (Skift frigör dem för ett drag). Av: bredd och höjd ändras oberoende och bilden töjs",
}
diff --git a/slides/src/i18n/packs/th.ts b/slides/src/i18n/packs/th.ts
index 4a868542..771e5876 100644
--- a/slides/src/i18n/packs/th.ts
+++ b/slides/src/i18n/packs/th.ts
@@ -889,6 +889,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "หมายเลขหน้า วันที่ เวลา ชื่อเรื่อง และคุณสมบัติเอกสาร — เติมค่าเมื่อแสดงสไลด์ วันที่และเวลากำหนดรูปแบบตายตัวได้: {{date:M/D/YY}} แก้ไขรูปแบบในข้อความ",
"Text ▸ Field": "ข้อความ ▸ ฟิลด์",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "แทรกหมายเลขหน้า วันที่ เวลา ชื่อเรื่อง หรือคุณสมบัติเอกสาร วันที่กำหนดรูปแบบตายตัวได้ — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "เก็บภาพถ่ายที่ {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "เก็บรูปภาพที่ {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "ย่อภาพถ่ายเมื่อแทรก (2560 px ภาพหน้าจอและโลโก้ยังคมชัด)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "ภาพถ่ายจากโทรศัพท์ที่วางจะถูกเก็บที่ความละเอียดของสไลด์แทนขนาดเต็ม ปิด: เก็บรูปภาพตามที่ได้รับมาทุกประการ",
+ "Picture": "รูปภาพ",
+ "Embedded": "ฝังไว้",
+ "Linked": "ลิงก์",
+ "No picture yet": "ยังไม่มีรูปภาพ",
+ "Replace file (original size)…": "แทนที่ไฟล์ (ขนาดเดิม)…",
"Keep aspect ratio": "คงอัตราส่วนภาพ",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "เปิด: การปรับขนาดคงสัดส่วนของภาพ (กด Shift เพื่อปลดชั่วคราวหนึ่งครั้ง) ปิด: ความกว้างและความสูงเปลี่ยนแยกกัน ภาพจะถูกยืด",
}
diff --git a/slides/src/i18n/packs/tk.ts b/slides/src/i18n/packs/tk.ts
index 0a801c53..593cfdcf 100644
--- a/slides/src/i18n/packs/tk.ts
+++ b/slides/src/i18n/packs/tk.ts
@@ -912,6 +912,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Sahypa belgisi, sene, wagt, at we resminama häsiýetleri — slaýd görkezilende doldurylýar. Sene we wagt formaty berkidip bilýär: {{date:M/D/YY}}; nusgany tekstde üýtgediň.",
"Text ▸ Field": "Tekst ▸ Meýdan",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Sahypa belgisini, senäni, wagty, ady ýa-da resminama häsiýetini goýýar; sene öz formatyny berkidip bilýär — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Surat {px} px-de saklandy — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Şekil {px} px-de saklandy — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Goýlanda suratlary kiçelt (2560 px; ekran suratlary we logotipler anyk galýar)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Goýlan telefon suraty doly ölçegde däl-de, slaýd durulygynda saklanýar. Öçük: suratlar gelşi ýaly saklanýar.",
+ "Picture": "Surat",
+ "Embedded": "Gurlan",
+ "Linked": "Baglanan",
+ "No picture yet": "Entek surat ýok",
+ "Replace file (original size)…": "Faýly çalyş (asyl ölçegi)…",
"Keep aspect ratio": "Taraplaryň gatnaşygyny sakla",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Açyk: ölçeg üýtgedilende suratyň gatnaşygy saklanýar (Shift bir süýremek üçin boşadýar). Ýapyk: ini we beýikligi aýratyn üýtgeýär we surat çekilýär",
}
diff --git a/slides/src/i18n/packs/tr.ts b/slides/src/i18n/packs/tr.ts
index fcb01512..8e46b0ee 100644
--- a/slides/src/i18n/packs/tr.ts
+++ b/slides/src/i18n/packs/tr.ts
@@ -886,6 +886,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Sayfa numarası, tarih, saat, başlık ve belge özellikleri — slayt gösterildiğinde çözümlenir. Tarih ve saat bir biçim sabitleyebilir: {{date:M/D/YY}}; deseni metinde düzenleyin.",
"Text ▸ Field": "Metin ▸ Alan",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Sayfa numarası, tarih, saat, başlık veya bir belge özelliği ekler; tarih biçimini sabitleyebilir — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Fotoğraf {px} px olarak kaydedildi — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Görsel {px} px olarak kaydedildi — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Eklerken fotoğrafları küçült (2560 px; ekran görüntüleri ve logolar keskin kalır)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Yapıştırılan bir telefon fotoğrafı tam boyut yerine slayt çözünürlüğünde saklanır. Kapalı: görseller geldikleri gibi saklanır.",
+ "Picture": "Görsel",
+ "Embedded": "Gömülü",
+ "Linked": "Bağlantılı",
+ "No picture yet": "Henüz görsel yok",
+ "Replace file (original size)…": "Dosyayı değiştir (özgün boyut)…",
"Keep aspect ratio": "En-boy oranını koru",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Açık: yeniden boyutlandırma görselin oranını korur (Shift bir sürükleme için serbest bırakır). Kapalı: genişlik ve yükseklik bağımsız değişir ve görsel esner",
}
diff --git a/slides/src/i18n/packs/uk.ts b/slides/src/i18n/packs/uk.ts
index ab28925a..b28b49a0 100644
--- a/slides/src/i18n/packs/uk.ts
+++ b/slides/src/i18n/packs/uk.ts
@@ -895,6 +895,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Номер сторінки, дата, час, назва та властивості документа — підставляються під час показу слайда. Дата й час можуть закріпити формат: {{date:M/D/YY}}; шаблон редагується в тексті.",
"Text ▸ Field": "Текст ▸ Поле",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Вставляє номер сторінки, дату, час, назву або властивість документа; дата може закріпити свій формат — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Фото збережено в {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Зображення збережено в {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Зменшувати фото під час вставлення (2560 px; знімки екрана й логотипи лишаються чіткими)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Вставлене фото з телефона зберігається в роздільності слайда, а не в повному розмірі. Вимк.: зображення зберігаються точно такими, якими надійшли.",
+ "Picture": "Зображення",
+ "Embedded": "Вбудовано",
+ "Linked": "За посиланням",
+ "No picture yet": "Зображення ще немає",
+ "Replace file (original size)…": "Замінити файл (початковий розмір)…",
"Keep aspect ratio": "Зберігати пропорції",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Увімк.: зміна розміру зберігає пропорції зображення (Shift звільняє їх на одне перетягування). Вимк.: ширина й висота змінюються незалежно, зображення розтягується",
}
diff --git a/slides/src/i18n/packs/ur.ts b/slides/src/i18n/packs/ur.ts
index 79decb77..909db77a 100644
--- a/slides/src/i18n/packs/ur.ts
+++ b/slides/src/i18n/packs/ur.ts
@@ -905,6 +905,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "صفحہ نمبر، تاریخ، وقت، عنوان اور دستاویز کی خصوصیات — سلائیڈ دکھاتے وقت حل ہوتی ہیں۔ تاریخ اور وقت فارمیٹ مقرر کر سکتے ہیں: {{date:M/D/YY}}؛ پیٹرن متن میں ترمیم کریں۔",
"Text ▸ Field": "متن ▸ فیلڈ",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "صفحہ نمبر، تاریخ، وقت، عنوان یا دستاویز کی خصوصیت داخل کریں؛ تاریخ اپنا فارمیٹ مقرر کر سکتی ہے — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "تصویر {px} px پر محفوظ — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "امیج {px} px پر محفوظ — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "داخل کرتے وقت تصاویر چھوٹی کریں (2560 px؛ اسکرین شاٹ اور لوگو واضح رہتے ہیں)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "چسپاں کی گئی فون کی تصویر مکمل سائز کے بجائے سلائیڈ ریزولوشن پر محفوظ ہوتی ہے۔ بند: تصاویر بالکل ویسے ہی محفوظ ہوتی ہیں جیسے آتی ہیں۔",
+ "Picture": "تصویر",
+ "Embedded": "ایمبیڈڈ",
+ "Linked": "لنک شدہ",
+ "No picture yet": "ابھی کوئی تصویر نہیں",
+ "Replace file (original size)…": "فائل بدلیں (اصل سائز)…",
"Keep aspect ratio": "پہلو تناسب برقرار رکھیں",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "آن: سائز بدلنے پر تصویر کا تناسب برقرار رہتا ہے (Shift ایک ڈریگ کے لیے آزاد کرتا ہے)۔ آف: چوڑائی اور اونچائی الگ الگ بدلتی ہیں اور تصویر کھنچ جاتی ہے",
}
diff --git a/slides/src/i18n/packs/vi.ts b/slides/src/i18n/packs/vi.ts
index faa58d0b..15cc8aaf 100644
--- a/slides/src/i18n/packs/vi.ts
+++ b/slides/src/i18n/packs/vi.ts
@@ -885,6 +885,15 @@ export const strings: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Số trang, ngày, giờ, tiêu đề và thuộc tính tài liệu — được điền khi hiển thị trang chiếu. Ngày và giờ có thể cố định định dạng: {{date:M/D/YY}}; sửa mẫu ngay trong văn bản.",
"Text ▸ Field": "Văn bản ▸ Trường",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Chèn số trang, ngày, giờ, tiêu đề hoặc thuộc tính tài liệu; ngày có thể cố định định dạng — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Ảnh chụp được lưu ở {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Hình được lưu ở {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Thu nhỏ ảnh khi chèn (2560 px; ảnh chụp màn hình và logo vẫn sắc nét)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Ảnh điện thoại dán vào được lưu ở độ phân giải trang chiếu thay vì kích thước đầy đủ. Tắt: hình được lưu đúng như khi nhận.",
+ "Picture": "Hình",
+ "Embedded": "Đã nhúng",
+ "Linked": "Đã liên kết",
+ "No picture yet": "Chưa có hình",
+ "Replace file (original size)…": "Thay tệp (kích thước gốc)…",
"Keep aspect ratio": "Giữ tỷ lệ khung hình",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Bật: đổi kích thước giữ nguyên tỷ lệ ảnh (Shift bỏ giữ trong một lần kéo). Tắt: chiều rộng và chiều cao đổi độc lập và ảnh bị kéo giãn",
}
diff --git a/slides/src/i18n/pt.ts b/slides/src/i18n/pt.ts
index d0fdafe4..aacb5101 100644
--- a/slides/src/i18n/pt.ts
+++ b/slides/src/i18n/pt.ts
@@ -873,6 +873,15 @@ export const pt: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "Número da página, data, hora, título e propriedades do documento — resolvidos quando o diapositivo é mostrado. Data e hora podem fixar um formato: {{date:M/D/YY}}; edite o padrão no texto.",
"Text ▸ Field": "Texto ▸ Campo",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "Insere o número da página, a data, a hora, o título ou uma propriedade do documento; uma data pode fixar o seu formato — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "Foto guardada a {px} px — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "Imagem guardada a {px} px — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "Reduzir fotos ao inserir (2560 px; capturas e logótipos mantêm-se nítidos)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "Uma foto de telemóvel colada é guardada à resolução do diapositivo em vez do tamanho total. Desligado: as imagens são guardadas exatamente como chegam.",
+ "Picture": "Imagem",
+ "Embedded": "Incorporada",
+ "Linked": "Ligada",
+ "No picture yet": "Ainda sem imagem",
+ "Replace file (original size)…": "Substituir ficheiro (tamanho original)…",
"Keep aspect ratio": "Manter proporções",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "Ligado: redimensionar mantém as proporções da imagem (Shift liberta-as durante um arrasto). Desligado: largura e altura mudam separadamente e a imagem estica",
}
diff --git a/slides/src/i18n/zh-Hans.ts b/slides/src/i18n/zh-Hans.ts
index 9f87f280..ffe108b9 100644
--- a/slides/src/i18n/zh-Hans.ts
+++ b/slides/src/i18n/zh-Hans.ts
@@ -875,6 +875,15 @@ export const zhHans: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "页码、日期、时间、标题和文档属性 — 在显示幻灯片时解析。日期和时间可固定格式:{{date:M/D/YY}};在文本中编辑模式。",
"Text ▸ Field": "文本 ▸ 字段",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "插入页码、日期、时间、标题或文档属性;日期可固定格式 — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "照片已按 {px} px 存储 — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "图片已按 {px} px 存储 — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "插入时缩小照片(2560 px,截图和徽标保持清晰)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "粘贴的手机照片按幻灯片分辨率而非原始尺寸存储。关闭:图片按原样存储。",
+ "Picture": "图片",
+ "Embedded": "已嵌入",
+ "Linked": "已链接",
+ "No picture yet": "还没有图片",
+ "Replace file (original size)…": "替换文件(原始尺寸)…",
"Keep aspect ratio": "保持宽高比",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "开:调整大小时保持图片比例(按住 Shift 可临时解除一次拖动)。关:宽和高各自变化,图片会被拉伸",
}
diff --git a/slides/src/i18n/zh-Hant.ts b/slides/src/i18n/zh-Hant.ts
index 9e76eb1d..7761bbf3 100644
--- a/slides/src/i18n/zh-Hant.ts
+++ b/slides/src/i18n/zh-Hant.ts
@@ -875,6 +875,15 @@ export const zhHant: Catalog = {
"Page number, date, time, title and the document properties — resolved when the slide is shown. Date and time can pin a format: {{date:M/D/YY}}; edit the pattern in the text.": "頁碼、日期、時間、標題和文件屬性 — 在顯示投影片時解析。日期和時間可固定格式:{{date:M/D/YY}};在文字中編輯樣式。",
"Text ▸ Field": "文字 ▸ 欄位",
"Insert the page number, date, time, title or a document property; a date can pin its format — {{date:M/D/YY}}": "插入頁碼、日期、時間、標題或文件屬性;日期可固定格式 — {{date:M/D/YY}}",
+ "Photo stored at {px} px — {before} → {after}": "照片已以 {px} px 儲存 — {before} → {after}",
+ "Image stored at {px} px — {before} → {after}": "圖片已以 {px} px 儲存 — {before} → {after}",
+ "Shrink photos on insert (2560 px, screenshots and logos stay sharp)": "插入時縮小照片(2560 px,截圖與標誌保持清晰)",
+ "A pasted phone photo is stored at slide resolution instead of full size. Off: pictures are stored exactly as they come.": "貼上的手機照片以投影片解析度而非原始尺寸儲存。關閉:圖片按原樣儲存。",
+ "Picture": "圖片",
+ "Embedded": "已嵌入",
+ "Linked": "已連結",
+ "No picture yet": "還沒有圖片",
+ "Replace file (original size)…": "取代檔案(原始尺寸)…",
"Keep aspect ratio": "保持長寬比",
"On: a resize keeps the image’s proportions (Shift frees it for one drag). Off: width and height move independently and the image stretches": "開:調整大小時保持圖片比例(按住 Shift 可暫時解除一次拖曳)。關:寬和高各自變化,圖片會被拉伸",
}