diff --git a/crates/render/src/encode.rs b/crates/render/src/encode.rs index 5082da975c..966ce143fe 100644 --- a/crates/render/src/encode.rs +++ b/crates/render/src/encode.rs @@ -203,7 +203,35 @@ pub(crate) fn webp(img: &Rendered, lossy_quality: Option) -> Result, webp_quality: lossy_quality.unwrap_or(100).min(100), ..craft_image_codecs::EncodeOptions::default() }; - craft_image_codecs::encode(&src, craft_image_codecs::Format::WebP, &opts).map_err(|e| format!("WebP encoding failed: {e}")) + let file = craft_image_codecs::encode(&src, craft_image_codecs::Format::WebP, &opts).map_err(|e| format!("WebP encoding failed: {e}"))?; + if lossy_quality.is_some() && vp8_partition_at_limit(&file) { + return Err("WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless".into()); + } + Ok(file) +} + +/// The largest first-partition size a VP8 key frame's 19-bit size field holds (RFC 6386 §9.1). +const VP8_FIRST_PARTITION_LIMIT: u32 = (1 << 19) - 1; + +/// Does the `VP8 ` chunk of RIFF WebP `file` give its first partition the size limit? The encoder +/// writes the limit for a larger partition too, and a decoder then reads the token partition from +/// the wrong offset, so a frame at the limit is not written. +fn vp8_partition_at_limit(file: &[u8]) -> bool { + let mut at = 12usize; + while let Some(head) = file.get(at..).and_then(|rest| rest.get(..8)) { + let len = u32::from_le_bytes([head[4], head[5], head[6], head[7]]); + if &head[..4] == b"VP8 " { + return file.get(at + 8..).and_then(|rest| rest.get(..3)).is_some_and(|tag| { + let tag = u32::from(tag[0]) | (u32::from(tag[1]) << 8) | (u32::from(tag[2]) << 16); + tag >> 5 >= VP8_FIRST_PARTITION_LIMIT + }); + } + let Some(next) = usize::try_from(u64::from(len) + u64::from(len % 2) + 8).ok().and_then(|n| at.checked_add(n)) else { + break; + }; + at = next; + } + false } /// Bounds of the art an export draws: visible objects off template layers (guides left out), diff --git a/crates/render/src/encode/tests.rs b/crates/render/src/encode/tests.rs index 2c2b5d0b27..d6a41d8ec8 100644 --- a/crates/render/src/encode/tests.rs +++ b/crates/render/src/encode/tests.rs @@ -236,6 +236,50 @@ fn lossy_webp_keeps_transparent_pixels_transparent() { assert_eq!(webp_chunks(&file), [*b"VP8 "]); } +/// A lossy frame's tag (RFC 6386 §9.1) holds its first partition's size in 19 bits. A frame whose +/// size field is at that limit may hold a larger partition, so it is refused; frames below it +/// decode with another decoder at every quality, a 1 × 1 image and transparent pixels included. +#[test] +fn lossy_webp_refuses_a_first_partition_at_the_size_limit() { + let circle = circle_doc(); + let dot = Document::new(1.0, 1.0); + for (d, background) in [(&circle, None), (&circle, Some([255; 3])), (&dot, Some([40, 80, 120]))] { + for quality in [0, 50, 100] { + let o = RasterExportOptions { webp_lossless: false, quality, background, ..Default::default() }; + let mut file = Renderer::new().export_region(d, d.artboards[0].rect, RasterFormat::WebP, &o).unwrap(); + let decoded = image::load_from_memory_with_format(&file, image::ImageFormat::WebP).unwrap(); + let rect = d.artboards[0].rect; + assert_eq!((decoded.width(), decoded.height()), (rect.width() as u32, rect.height() as u32), "quality {quality}"); + assert!(!vp8_partition_at_limit(&file), "quality {quality}"); + let vp8 = chunk_offset(&file, b"VP8 ") + 8; + let tag = u32::from(file[vp8]) | (u32::from(file[vp8 + 1]) << 8) | (u32::from(file[vp8 + 2]) << 16); + let len = u32::from_le_bytes(file[vp8 - 4..vp8].try_into().unwrap()); + assert_eq!((tag & 1, &file[vp8 + 3..vp8 + 6]), (0, &[0x9d, 0x01, 0x2a][..]), "a key frame with its start code"); + assert!((tag >> 5) + 10 <= len, "the first partition fits in the chunk"); + // The size field at its limit. + let at_limit = (tag & 0x1f) | (VP8_FIRST_PARTITION_LIMIT << 5); + file[vp8..vp8 + 3].copy_from_slice(&at_limit.to_le_bytes()[..3]); + assert!(vp8_partition_at_limit(&file), "quality {quality}"); + } + } + let lossless = Renderer::new().export_region(&circle, circle.artboards[0].rect, RasterFormat::WebP, &RasterExportOptions::default()).unwrap(); + assert!(!vp8_partition_at_limit(&lossless)); + // Cut short or with a chunk length past the end, the scan stops without a frame. + for bad in [&b"RIFF\0\0\0\0WEBP"[..], b"RIFF\0\0\0\0WEBPVP8 ", b"RIFF\0\0\0\0WEBPXXXX\xff\xff\xff\xffVP8 \x04\0\0\0\xff\xff\xff\0", b""] { + assert!(!vp8_partition_at_limit(bad), "{bad:?}"); + } +} + +/// The offset of the first chunk of type `ty` in RIFF WebP `file`. +fn chunk_offset(file: &[u8], ty: &[u8; 4]) -> usize { + let mut at = 12; + while &file[at..at + 4] != ty { + let len = u32::from_le_bytes(file[at + 4..at + 8].try_into().unwrap()) as usize; + at += 8 + len + len % 2; + } + at +} + /// #787: translucent art over opaque art (or a background) stays exactly opaque, its anti-aliased /// edges too, so the file is written as RGB. #[test] diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index 4cd095f8f8..fcb6a5af4a 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -7892,6 +7892,7 @@ breakText Glyphs Glifs @msg Too many Revolve faces for visibility evaluation Massa cares de Revolució per avaluar-ne la visibilitat @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft llegeix com a màxim {ASE_MAX_ENTRIES} colors i grups d’un fitxer d’intercanvi de mostres, i aquesta biblioteca en té {entries} @msg WebP encoding failed: {e} La codificació WebP ha fallat: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless La codificació WebP ha fallat: la imatge és massa gran per a WebP amb pèrdua: reduïu la resolució o trieu Sense pèrdua @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `index` must be a whole number `index` ha de ser un nombre enter diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 8d061d2903..8816f92c3a 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -7799,6 +7799,7 @@ breakText Glyphs Glyfy @msg Too many Revolve faces for visibility evaluation Rotační těleso má příliš mnoho stěn pro výpočet viditelnosti @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft čte ze souboru pro výměnu vzorníku nejvýše {ASE_MAX_ENTRIES} barev a skupin a tato knihovna jich má {entries} @msg WebP encoding failed: {e} kódování WebP selhalo: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless kódování WebP selhalo: obrázek je pro ztrátový WebP příliš velký: snižte rozlišení nebo zvolte Bezeztrátový @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` je smallThumb, mediumThumb, largeThumb, smallList nebo largeList diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index 4bf3a71595..23bb1df921 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -1007,6 +1007,7 @@ liquify-list-end {0}, {1} {0} og {1} @msg Trap: more than {_1} pairs of objects lie close enough to trap, or too many objects share a horizontal range; trap fewer objects at a time Trap: mere end {_1} par objekter ligger tæt nok til overfyldning, eller for mange objekter deler et vandret område; anvend Trap på færre objekter ad gangen @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft læser højst {ASE_MAX_ENTRIES} farver og grupper fra en farveprøveudvekslingsfil, og dette bibliotek har {entries} @msg WebP encoding failed: {e} WebP-kodning mislykkedes: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP-kodning mislykkedes: billedet er for stort til WebP med tab: sænk opløsningen, eller vælg Tabsfri @msg Weed Box and Lines: no weeding line fits outside the art, and the weed box is off Lugeramme og lugelinjer: ingen lugelinje passer uden for grafikken, og lugerammen er slået fra @msg \\ at end of pattern \\ i slutningen af mønsteret @msg `alignOn` cannot be empty `alignOn` må ikke være tom diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 44b4165a77..06151373a5 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -9264,6 +9264,7 @@ breakText Glyphs Glyphen @msg Too many Revolve faces for visibility evaluation Zu viele Kreiseln-Flächen für die Sichtbarkeitsberechnung @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft liest höchstens {ASE_MAX_ENTRIES} Farben und Gruppen aus einer Farbfeld-Austauschdatei, und diese Bibliothek hat {entries} @msg WebP encoding failed: {e} WebP-Kodierung fehlgeschlagen: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP-Kodierung fehlgeschlagen: Das Bild ist für verlustbehaftetes WebP zu groß: Verringern Sie die Auflösung oder wählen Sie Verlustfrei @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` ist smallThumb, mediumThumb, largeThumb, smallList oder largeList diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 92ec718d4f..27ae507287 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -7866,6 +7866,7 @@ breakText Glyphs Γλύφοι @msg Too many Revolve faces for visibility evaluation Πάρα πολλές έδρες περιστροφής για τον έλεγχο ορατότητας @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} Το VectorCraft διαβάζει το πολύ {ASE_MAX_ENTRIES} χρώματα και ομάδες από ένα αρχείο ανταλλαγής δειγμάτων, και αυτή η βιβλιοθήκη έχει {entries} @msg WebP encoding failed: {e} Η κωδικοποίηση WebP απέτυχε: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless Η κωδικοποίηση WebP απέτυχε: η εικόνα είναι πολύ μεγάλη για WebP με απώλειες: μειώστε την ανάλυση ή επιλέξτε Χωρίς απώλειες @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `index` must be a whole number Το `index` πρέπει να είναι ακέραιος αριθμός @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList Το `view` είναι smallThumb, mediumThumb, largeThumb, smallList ή largeList diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 120fd4c729..5c850920a0 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -7713,6 +7713,7 @@ breakText Glyphs Glifos @msg Too many Revolve faces for visibility evaluation Demasiadas caras de Revolución para evaluar la visibilidad @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft lee como máximo {ASE_MAX_ENTRIES} colores y grupos de un archivo de intercambio de muestras, y esta biblioteca tiene {entries} @msg WebP encoding failed: {e} Error al codificar WebP: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless Error al codificar WebP: la imagen es demasiado grande para WebP con pérdida: reduzca la resolución o elija Sin pérdida @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` es smallThumb, mediumThumb, largeThumb, smallList o largeList diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index 411326075a..5de5de3288 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -7947,6 +7947,7 @@ breakText Glyphs Merkit @msg Too many Revolve faces for visibility evaluation Pyöräytä-tehosteessa on liian monta tahkoa näkyvyyden arviointiin @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft lukee värimallien vaihtotiedostosta enintään {ASE_MAX_ENTRIES} väriä ja ryhmää, ja tässä kirjastossa niitä on {entries} @msg WebP encoding failed: {e} WebP-koodaus epäonnistui: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP-koodaus epäonnistui: kuva on liian suuri häviölliseen WebP-muotoon: pienennä tarkkuutta tai valitse Häviötön @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `index` must be a whole number `index` on oltava kokonaisluku diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 4b8bef9b78..c459dd2773 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -9675,6 +9675,7 @@ breakText Glyphs Glyphes @msg Too many Revolve faces for visibility evaluation Trop de faces de révolution pour évaluer la visibilité @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft lit au plus {ASE_MAX_ENTRIES} couleurs et groupes d’un fichier d’échange de nuances, et cette bibliothèque en contient {entries} @msg WebP encoding failed: {e} Échec de l’encodage WebP : {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless Échec de l’encodage WebP : l’image est trop grande pour le WebP avec perte : réduisez la résolution ou choisissez Sans perte @msg [{j}] `{_1}`: {why} [{j}] `{_1}` : {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` vaut smallThumb, mediumThumb, largeThumb, smallList ou largeList diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index e098dc6b4c..9fc0d6672c 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -9290,6 +9290,7 @@ theme Appearance अपीयरेंस @msg Too many Revolve faces for visibility evaluation दृश्यता की गणना के लिए रिवॉल्व के फ़ेस बहुत अधिक हैं @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft स्वॉच एक्सचेंज फ़ाइल से अधिकतम {ASE_MAX_ENTRIES} रंग और ग्रुप पढ़ता है, और इस लाइब्रेरी में {entries} हैं @msg WebP encoding failed: {e} WebP एन्कोडिंग विफल: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP एन्कोडिंग विफल: छवि लॉसी WebP के लिए बहुत बड़ी है: रिज़ॉल्यूशन कम करें या लॉसलेस चुनें @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `index` must be a whole number `index` पूरी संख्या होनी चाहिए @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` smallThumb, mediumThumb, largeThumb, smallList या largeList होता है diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index 580767563a..6df4973ebf 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -9676,6 +9676,7 @@ breakText Glyphs Glifák @msg Too many Revolve faces for visibility evaluation Túl sok lap a láthatóság kiértékeléséhez (Forgatás tengely körül) @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} A VectorCraft legfeljebb {ASE_MAX_ENTRIES} színt és csoportot olvas be egy színmintacsere-fájlból, ebben a könyvtárban pedig ennyi van: {entries} @msg WebP encoding failed: {e} A WebP-kódolás sikertelen: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless A WebP-kódolás sikertelen: a kép túl nagy a veszteséges WebP-hez: csökkentse a felbontást, vagy válassza a Veszteségmentes lehetőséget @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `index` must be a whole number `index`: egész szám kell @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view`: smallThumb, mediumThumb, largeThumb, smallList vagy largeList lehet diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 89d529f91f..13881872ab 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -9299,6 +9299,7 @@ breakText Glyphs Glifi @msg Too many Revolve faces for visibility evaluation Troppe facce di Rivoluzione per il calcolo della visibilità @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft legge al massimo {ASE_MAX_ENTRIES} colori e gruppi da un file di scambio campioni, e questa libreria ne ha {entries} @msg WebP encoding failed: {e} Codifica WebP non riuscita: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless Codifica WebP non riuscita: l'immagine è troppo grande per il WebP con perdita: riduci la risoluzione o scegli Senza perdita @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` è smallThumb, mediumThumb, largeThumb, smallList o largeList diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index cb94beb02c..a5d7ad16c2 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -9376,6 +9376,7 @@ breakText Glyphs 字形 @msg Too many Revolve faces for visibility evaluation 可視判定を行うには回転体の面が多すぎます @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft がスウォッチ交換ファイルから読み込めるカラーとグループは {ASE_MAX_ENTRIES} 個までですが、このライブラリには {entries} 個あります @msg WebP encoding failed: {e} WebP のエンコードに失敗しました: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP のエンコードに失敗しました: 画像が大きすぎて非可逆 WebP にできません: 解像度を下げるか、ロスレスを選択してください @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` には smallThumb、mediumThumb、largeThumb、smallList、largeList のいずれかを指定してください diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 78e4da99d4..8a4c488e8f 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -161,6 +161,7 @@ @msg Trap: more than {_1} pairs of objects lie close enough to trap, or too many objects share a horizontal range; trap fewer objects at a time ტრეპინგი: ობიექტების {_1}-ზე მეტი წყვილი ტრეპინგისთვის საკმარისად ახლოს მდებარეობს, ან ზედმეტად ბევრ ობიექტს საერთო ჰორიზონტალური დიაპაზონი აქვს; ერთდროულად ნაკლებ ობიექტზე გამოიყენეთ ტრეპინგი @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft ფერის ნიმუშების გაცვლის ფაილიდან კითხულობს მაქსიმუმ {ASE_MAX_ENTRIES} ფერსა და ჯგუფს, ამ ბიბლიოთეკაში კი არის {entries} @msg WebP encoding failed: {e} WebP-ის კოდირება ვერ მოხერხდა: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP-ის კოდირება ვერ მოხერხდა: სურათი ძალიან დიდია დანაკარგიანი WebP-ისთვის: შეამცირეთ გარჩევადობა ან აირჩიეთ უდანაკარგო @msg Weed Box and Lines: no weeding line fits outside the art, and the weed box is off ნარჩენის მოსაცილებელი ჩარჩო და ხაზები: ნახატის გარეთ ნარჩენის მოსაცილებელი არცერთი ხაზი არ ეტევა, ნარჩენის ჩარჩო კი გამორთულია @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg \\ at end of pattern \\ შაბლონის ბოლოს diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index e8d29d2d8a..576886fc7f 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -7462,6 +7462,7 @@ breakText Glyphs 글리프 @msg Too many Revolve faces for visibility evaluation 회전체의 면이 너무 많아 가시성을 계산할 수 없습니다 @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft는 견본 교환 파일에서 색상과 그룹을 최대 {ASE_MAX_ENTRIES}개까지 읽는데, 이 라이브러리에는 {entries}개가 있습니다 @msg WebP encoding failed: {e} WebP 인코딩 실패: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP 인코딩 실패: 이미지가 너무 커서 손실 WebP로 만들 수 없습니다: 해상도를 낮추거나 무손실을 선택하세요 @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `index` must be a whole number `index`은(는) 정수여야 합니다 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index b001bdad0b..468a3e5424 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -9721,6 +9721,7 @@ breakText Glyphs Glyphs @msg Too many Revolve faces for visibility evaluation Te veel vlakken van Draaien om de zichtbaarheid te bepalen @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft leest maximaal {ASE_MAX_ENTRIES} kleuren en groepen uit een uitwisselingsbestand voor stalen, en deze bibliotheek heeft er {entries} @msg WebP encoding failed: {e} WebP-codering mislukt: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP-codering mislukt: de afbeelding is te groot voor WebP met verlies: verlaag de resolutie of kies Verliesvrij @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `index` must be a whole number `index` moet een geheel getal zijn diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index f1760ee453..eeaa9bd866 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -9542,6 +9542,7 @@ breakText Glyphs Glify @msg Too many Revolve faces for visibility evaluation Zbyt wiele ścian efektu Obrót do obliczenia widoczności @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft odczytuje z pliku wymiany próbek najwyżej {ASE_MAX_ENTRIES} kolorów i grup, a ta biblioteka ma ich {entries} @msg WebP encoding failed: {e} Kodowanie WebP nie powiodło się: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless Kodowanie WebP nie powiodło się: obraz jest za duży dla stratnego WebP: zmniejsz rozdzielczość lub wybierz Bezstratny @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` ma wartość smallThumb, mediumThumb, largeThumb, smallList lub largeList diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index a0bcf06f29..0113e0a00b 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -7363,6 +7363,7 @@ breakText Glyphs Glifos @msg Too many Revolve faces for visibility evaluation Faces de Revolver demais para avaliar a visibilidade @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} O VectorCraft lê no máximo {ASE_MAX_ENTRIES} cores e grupos de um arquivo de intercâmbio de amostras, e esta biblioteca tem {entries} @msg WebP encoding failed: {e} Falha na codificação WebP: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless Falha na codificação WebP: a imagem é grande demais para WebP com perdas: reduza a resolução ou escolha Sem Perdas @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` é smallThumb, mediumThumb, largeThumb, smallList ou largeList diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 744ea8c994..84be0d15b6 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -9782,6 +9782,7 @@ shape Open Открытый @msg Too many Revolve faces for visibility evaluation Слишком много граней вращения для расчёта видимости @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft читает из файла обмена образцами не более {ASE_MAX_ENTRIES} цветов и групп, а в этой библиотеке их {entries} @msg WebP encoding failed: {e} Ошибка кодирования WebP: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless Ошибка кодирования WebP: изображение слишком велико для WebP с потерями: уменьшите разрешение или выберите «Без потерь» @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` принимает значения smallThumb, mediumThumb, largeThumb, smallList или largeList diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index 5298ae0870..66facc15e7 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -9372,6 +9372,7 @@ digits Hindi Hindi @msg Too many Revolve faces for visibility evaluation För många ytor i Rotera runt axel för synlighetsberäkningen @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft läser högst {ASE_MAX_ENTRIES} färger och grupper från en fil för färgruteutbyte, och det här biblioteket har {entries} @msg WebP encoding failed: {e} WebP-kodningen misslyckades: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP-kodningen misslyckades: bilden är för stor för förlustbehäftad WebP: sänk upplösningen eller välj Förlustfri @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `index` must be a whole number `index` måste vara ett heltal @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` är smallThumb, mediumThumb, largeThumb, smallList eller largeList diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index 0f444581e4..5f7ae4213f 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -5282,6 +5282,7 @@ liquify-list-end {0}, {1} {0} ve {1} @msg Targa depth {_1}: 16, 24 or 32 bits per pixel Targa derinliği {_1}: piksel başına 16, 24 veya 32 bit olmalıdır @msg Targa encoding failed: the pixel buffer doesn't match the image size Targa kodlaması başarısız oldu: piksel arabelleği görüntü boyutuyla eşleşmiyor @msg WebP encoding failed: {e} WebP kodlaması başarısız oldu: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP kodlaması başarısız oldu: görüntü kayıplı WebP için çok büyük: çözünürlüğü düşürün veya Kayıpsız seçeneğini seçin @msg the pixel buffer doesn't match the image size piksel arabelleği görüntü boyutuyla eşleşmiyor @msg too many layers for PSD (at most 32767) PSD için çok fazla katman (en fazla 32767) @msg {_1} × {_2} pixels is too large for GIF (at most 65535 pixels a side): lower the resolution {_1} × {_2} piksel GIF için çok büyük (kenar başına en fazla 65535 piksel): çözünürlüğü düşürün diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 27bd522bef..e7f4d8e61a 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -7351,6 +7351,7 @@ breakText Glyphs Гліфи @msg Too many Revolve faces for visibility evaluation Забагато граней обертання для обчислення видимості @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft читає з файлу обміну зразками не більше {ASE_MAX_ENTRIES} кольорів і груп, а в цій бібліотеці їх {entries} @msg WebP encoding failed: {e} Не вдалося закодувати WebP: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless Не вдалося закодувати WebP: зображення завелике для WebP із втратами: зменште роздільність або виберіть «Без втрат» @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` має бути smallThumb, mediumThumb, largeThumb, smallList або largeList diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 33ae8365c1..9881bc6a2b 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -7560,6 +7560,7 @@ breakText Glyphs Glyph @msg Too many Revolve faces for visibility evaluation Quá nhiều mặt Xoay tròn để tính toán phần nhìn thấy @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft đọc tối đa {ASE_MAX_ENTRIES} màu và nhóm từ một tệp trao đổi mẫu màu, còn thư viện này có {entries} @msg WebP encoding failed: {e} Mã hóa WebP thất bại: {e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless Mã hóa WebP thất bại: ảnh quá lớn cho WebP có mất dữ liệu: hãy giảm độ phân giải hoặc chọn Không mất dữ liệu @msg [{j}] `{_1}`: {why} [{j}] `{_1}`: {why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `index` must be a whole number `index` phải là số nguyên diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index 99224e5363..79e03858e5 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -9528,6 +9528,7 @@ breakText Glyphs 字形 @msg Too many Revolve faces for visibility evaluation 回转的面过多,无法进行可见性计算 @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft 最多从色板交换文件中读取 {ASE_MAX_ENTRIES} 个颜色和组,而此库有 {entries} 个 @msg WebP encoding failed: {e} WebP 编码失败:{e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP 编码失败:图像太大,无法生成有失真 WebP:请降低分辨率或选择无失真 @msg [{j}] `{_1}`: {why} [{j}] `{_1}`:{why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` 必须是 smallThumb、mediumThumb、largeThumb、smallList 或 largeList diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 23b49663a4..0d116d1702 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -7517,6 +7517,7 @@ breakText Glyphs 字符 @msg Too many Revolve faces for visibility evaluation 迴轉的面過多,無法計算可見性 @msg VectorCraft reads at most {ASE_MAX_ENTRIES} colors and groups from a swatch exchange file, and this library has {entries} VectorCraft 從色票交換檔案最多讀取 {ASE_MAX_ENTRIES} 個顏色和群組,而此資料庫有 {entries} 個 @msg WebP encoding failed: {e} WebP 編碼失敗:{e} +@msg WebP encoding failed: the image is too large for lossy WebP: lower the resolution or choose Lossless WebP 編碼失敗:影像太大,無法產生有失真 WebP:請降低解析度或選擇無失真 @msg [{j}] `{_1}`: {why} [{j}] `{_1}`:{why} @msg `answers[{i}]` {e} `answers[{i}]` {e} @msg `view` is smallThumb, mediumThumb, largeThumb, smallList or largeList `view` 必須是 smallThumb、mediumThumb、largeThumb、smallList 或 largeList