mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
Concept to Vector: the Cancel command's label is translated and its result says canceled
- ui.conceptVector.cancel returns {canceled: 0 or 1}, the spelling the
engine's conceptVector.cancel uses, and its description starts with the
verb as the other cancel commands' descriptions do.
- "Cancel Concept to Vector" has a row in every catalog.
- Docs: the Control bar offers Concept to Vector for a plain image only,
as Properties does, and the panel makes 1 to 5 styles (a provider may
offer up to 8).
This commit is contained in:
@@ -149,7 +149,7 @@ impl ConceptRun {
|
||||
Some(Value::Array(a)) => a.iter().map(|v| v.as_str().map(str::to_string)).collect::<Option<_>>().ok_or_else(styles_error)?,
|
||||
_ => return Err(styles_error()),
|
||||
};
|
||||
// The count first: the scan for repeats takes time that grows with its square.
|
||||
// Checks the count before the scan for repeats.
|
||||
if styles.is_empty() || styles.len() > MAX_STYLES {
|
||||
return Err(styles_error());
|
||||
}
|
||||
@@ -422,7 +422,7 @@ fn insert(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
let (doc, source, image, bytes, picked, label_of) = {
|
||||
let j = s.concept.jobs.get(at).ok_or_else(|| no_job(C, job))?;
|
||||
let Outcome::Done(all) = &j.outcome else { return Err(bad(C, format!("job {job} has no results to insert: it was canceled"))) };
|
||||
// The count first: the scan for repeats takes time that grows with its square.
|
||||
// Checks the count before the scan for repeats.
|
||||
if chosen.len() > all.len() {
|
||||
return Err(list_error());
|
||||
}
|
||||
|
||||
@@ -113,8 +113,7 @@ pub(super) fn fit_within(img: tr::Raster, max: u64) -> tr::Raster {
|
||||
let (y0, y1) = (u64::from(y) * h / u64::from(nh), (u64::from(y + 1) * h / u64::from(nh)).max(u64::from(y) * h / u64::from(nh) + 1));
|
||||
for x in 0..nw {
|
||||
let (x0, x1) = (u64::from(x) * w / u64::from(nw), (u64::from(x + 1) * w / u64::from(nw)).max(u64::from(x) * w / u64::from(nw) + 1));
|
||||
// Color weighted by alpha, so that a clear pixel does not darken the colors beside it;
|
||||
// a box with nothing opaque in it is clear black.
|
||||
// Each pixel's color is weighted by its alpha. A box with nothing opaque in it is clear black.
|
||||
let mut sum = [0u64; 4];
|
||||
for sy in y0..y1.min(h) {
|
||||
for sx in x0..x1.min(w) {
|
||||
|
||||
@@ -806,7 +806,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
|
||||
"ui.conceptVector.cancel",
|
||||
"Cancel Concept to Vector",
|
||||
"",
|
||||
"{} the Concept to Vector panel's Cancel: stop the styles being made off the UI thread (on the web, before the next part); nothing is kept or shown → {cancelled: 0 or 1}",
|
||||
"{} stop the styles the Concept to Vector panel is making off the UI thread (the panel's Cancel; on the web, before the next part): nothing is kept or shown → {canceled: 0 or 1}",
|
||||
),
|
||||
(
|
||||
"ui.cropImage",
|
||||
|
||||
@@ -6878,6 +6878,7 @@ breakText Glyphs Глифи
|
||||
Concept to Vector Концепция към вектор
|
||||
Concept to Vector… Концепция към вектор…
|
||||
Cancel Concept to Vector Job Отказ от задачата „Концепция към вектор“
|
||||
Cancel Concept to Vector Отказ от „Концепция към вектор“
|
||||
Concept to Vector Providers Доставчици за „Концепция към вектор“
|
||||
Concept to Vector Results Резултати от „Концепция към вектор“
|
||||
Generate Concept to Vector Styles Създаване на стилове „Концепция към вектор“
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -6931,6 +6931,7 @@ shape Open Otvoren
|
||||
Concept to Vector Koncept u vektor
|
||||
Concept to Vector… Koncept u vektor…
|
||||
Cancel Concept to Vector Job Otkaži zadatak Koncept u vektor
|
||||
Cancel Concept to Vector Otkaži Koncept u vektor
|
||||
Concept to Vector Providers Pružaoci za Koncept u vektor
|
||||
Concept to Vector Results Rezultati za Koncept u vektor
|
||||
Generate Concept to Vector Styles Napravi stilove Koncept u vektor
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7470,6 +7470,7 @@ breakText Glyphs Glifs
|
||||
Concept to Vector Concepte a vector
|
||||
Concept to Vector… Concepte a vector…
|
||||
Cancel Concept to Vector Job Cancel·la la tasca de Concepte a vector
|
||||
Cancel Concept to Vector Cancel·la Concepte a vector
|
||||
Concept to Vector Providers Proveïdors de Concepte a vector
|
||||
Concept to Vector Results Resultats de Concepte a vector
|
||||
Generate Concept to Vector Styles Genera els estils de Concepte a vector
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7489,6 +7489,7 @@ breakText Glyphs Glyfy
|
||||
Concept to Vector Koncept na vektor
|
||||
Concept to Vector… Koncept na vektor…
|
||||
Cancel Concept to Vector Job Zrušit úlohu Koncept na vektor
|
||||
Cancel Concept to Vector Zrušit Koncept na vektor
|
||||
Concept to Vector Providers Poskytovatelé Koncept na vektor
|
||||
Concept to Vector Results Výsledky Koncept na vektor
|
||||
Generate Concept to Vector Styles Vytvořit styly Koncept na vektor
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -6893,6 +6893,7 @@ breakText Glyphs Glyffer
|
||||
Concept to Vector Koncept til vektor
|
||||
Concept to Vector… Koncept til vektor…
|
||||
Cancel Concept to Vector Job Annuller jobbet Koncept til vektor
|
||||
Cancel Concept to Vector Annuller Koncept til vektor
|
||||
Concept to Vector Providers Udbydere til Koncept til vektor
|
||||
Concept to Vector Results Resultater fra Koncept til vektor
|
||||
Generate Concept to Vector Styles Lav stilarter til Koncept til vektor
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7085,6 +7085,7 @@ breakText Glyphs Glyphen
|
||||
Concept to Vector Konzept zu Vektor
|
||||
Concept to Vector… Konzept zu Vektor…
|
||||
Cancel Concept to Vector Job Konzept-zu-Vektor-Auftrag abbrechen
|
||||
Cancel Concept to Vector Konzept zu Vektor abbrechen
|
||||
Concept to Vector Providers Konzept-zu-Vektor-Anbieter
|
||||
Concept to Vector Results Konzept-zu-Vektor-Ergebnisse
|
||||
Generate Concept to Vector Styles Konzept-zu-Vektor-Stile erzeugen
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7442,6 +7442,7 @@ breakText Glyphs Γλύφοι
|
||||
Concept to Vector Από ιδέα σε διάνυσμα
|
||||
Concept to Vector… Από ιδέα σε διάνυσμα…
|
||||
Cancel Concept to Vector Job Ακύρωση εργασίας «Από ιδέα σε διάνυσμα»
|
||||
Cancel Concept to Vector Ακύρωση «Από ιδέα σε διάνυσμα»
|
||||
Concept to Vector Providers Πάροχοι «Από ιδέα σε διάνυσμα»
|
||||
Concept to Vector Results Αποτελέσματα «Από ιδέα σε διάνυσμα»
|
||||
Generate Concept to Vector Styles Δημιουργία στυλ «Από ιδέα σε διάνυσμα»
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7433,6 +7433,7 @@ breakText Glyphs Glifos
|
||||
Concept to Vector Concepto a vector
|
||||
Concept to Vector… Concepto a vector…
|
||||
Cancel Concept to Vector Job Cancelar tarea de Concepto a vector
|
||||
Cancel Concept to Vector Cancelar Concepto a vector
|
||||
Concept to Vector Providers Proveedores de Concepto a vector
|
||||
Concept to Vector Results Resultados de Concepto a vector
|
||||
Generate Concept to Vector Styles Generar estilos de Concepto a vector
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7524,6 +7524,7 @@ breakText Glyphs Merkit
|
||||
Concept to Vector Konseptista vektoriksi
|
||||
Concept to Vector… Konseptista vektoriksi…
|
||||
Cancel Concept to Vector Job Peruuta Konseptista vektoriksi -työ
|
||||
Cancel Concept to Vector Peruuta Konseptista vektoriksi
|
||||
Concept to Vector Providers Konseptista vektoriksi -palveluntarjoajat
|
||||
Concept to Vector Results Konseptista vektoriksi -tulokset
|
||||
Generate Concept to Vector Styles Luo Konseptista vektoriksi -tyylit
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7484,6 +7484,7 @@ breakText Glyphs Glyphes
|
||||
Concept to Vector Du concept au vecteur
|
||||
Concept to Vector… Du concept au vecteur…
|
||||
Cancel Concept to Vector Job Annuler la tâche Du concept au vecteur
|
||||
Cancel Concept to Vector Annuler Du concept au vecteur
|
||||
Concept to Vector Providers Fournisseurs Du concept au vecteur
|
||||
Concept to Vector Results Résultats Du concept au vecteur
|
||||
Generate Concept to Vector Styles Générer les styles Du concept au vecteur
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -8880,6 +8880,7 @@ theme Appearance अपीयरेंस
|
||||
Concept to Vector कॉन्सेप्ट से वेक्टर
|
||||
Concept to Vector… कॉन्सेप्ट से वेक्टर…
|
||||
Cancel Concept to Vector Job कॉन्सेप्ट से वेक्टर जॉब रद्द करें
|
||||
Cancel Concept to Vector कॉन्सेप्ट से वेक्टर रद्द करें
|
||||
Concept to Vector Providers कॉन्सेप्ट से वेक्टर प्रदाता
|
||||
Concept to Vector Results कॉन्सेप्ट से वेक्टर परिणाम
|
||||
Generate Concept to Vector Styles कॉन्सेप्ट से वेक्टर स्टाइल बनाएँ
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7473,6 +7473,7 @@ breakText Glyphs Glifák
|
||||
Concept to Vector Koncepcióból vektor
|
||||
Concept to Vector… Koncepcióból vektor…
|
||||
Cancel Concept to Vector Job Koncepcióból vektor feladat megszakítása
|
||||
Cancel Concept to Vector Koncepcióból vektor megszakítása
|
||||
Concept to Vector Providers Koncepcióból vektor szolgáltatók
|
||||
Concept to Vector Results Koncepcióból vektor eredmények
|
||||
Generate Concept to Vector Styles Koncepcióból vektor stílusok létrehozása
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -6893,6 +6893,7 @@ breakText Glyphs Glif
|
||||
Concept to Vector Konsep ke Vektor
|
||||
Concept to Vector… Konsep ke Vektor…
|
||||
Cancel Concept to Vector Job Batalkan Tugas Konsep ke Vektor
|
||||
Cancel Concept to Vector Batalkan Konsep ke Vektor
|
||||
Concept to Vector Providers Penyedia Konsep ke Vektor
|
||||
Concept to Vector Results Hasil Konsep ke Vektor
|
||||
Generate Concept to Vector Styles Buat Gaya Konsep ke Vektor
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2429 and column 5.
|
@@ -7119,6 +7119,7 @@ breakText Glyphs Glifi
|
||||
Concept to Vector Da concetto a vettore
|
||||
Concept to Vector… Da concetto a vettore…
|
||||
Cancel Concept to Vector Job Annulla attività Da concetto a vettore
|
||||
Cancel Concept to Vector Annulla Da concetto a vettore
|
||||
Concept to Vector Providers Fornitori Da concetto a vettore
|
||||
Concept to Vector Results Risultati Da concetto a vettore
|
||||
Generate Concept to Vector Styles Genera stili Da concetto a vettore
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7185,6 +7185,7 @@ breakText Glyphs 字形
|
||||
Concept to Vector コンセプトからベクター
|
||||
Concept to Vector… コンセプトからベクター…
|
||||
Cancel Concept to Vector Job コンセプトからベクターのジョブをキャンセル
|
||||
Cancel Concept to Vector コンセプトからベクターをキャンセル
|
||||
Concept to Vector Providers コンセプトからベクターのプロバイダー
|
||||
Concept to Vector Results コンセプトからベクターの結果
|
||||
Generate Concept to Vector Styles コンセプトからベクターのスタイルを生成
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7603,6 +7603,7 @@ font-script Japanese იაპონური
|
||||
Concept to Vector კონცეფციიდან ვექტორამდე
|
||||
Concept to Vector… კონცეფციიდან ვექტორამდე…
|
||||
Cancel Concept to Vector Job „კონცეფციიდან ვექტორამდე“ დავალების გაუქმება
|
||||
Cancel Concept to Vector „კონცეფციიდან ვექტორამდე“ გაუქმება
|
||||
Concept to Vector Providers „კონცეფციიდან ვექტორამდე“ მომწოდებლები
|
||||
Concept to Vector Results „კონცეფციიდან ვექტორამდე“ შედეგები
|
||||
Generate Concept to Vector Styles „კონცეფციიდან ვექტორამდე“ სტილების შექმნა
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7080,6 +7080,7 @@ breakText Glyphs 글리프
|
||||
Concept to Vector 콘셉트를 벡터로
|
||||
Concept to Vector… 콘셉트를 벡터로…
|
||||
Cancel Concept to Vector Job 콘셉트를 벡터로 작업 취소
|
||||
Cancel Concept to Vector 콘셉트를 벡터로 취소
|
||||
Concept to Vector Providers 콘셉트를 벡터로 공급자
|
||||
Concept to Vector Results 콘셉트를 벡터로 결과
|
||||
Generate Concept to Vector Styles 콘셉트를 벡터로 스타일 생성
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7516,6 +7516,7 @@ breakText Glyphs Glyphs
|
||||
Concept to Vector Concept naar vector
|
||||
Concept to Vector… Concept naar vector…
|
||||
Cancel Concept to Vector Job Taak Concept naar vector annuleren
|
||||
Cancel Concept to Vector Concept naar vector annuleren
|
||||
Concept to Vector Providers Aanbieders voor Concept naar vector
|
||||
Concept to Vector Results Resultaten van Concept naar vector
|
||||
Generate Concept to Vector Styles Stijlen voor Concept naar vector maken
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7346,6 +7346,7 @@ breakText Glyphs Glify
|
||||
Concept to Vector Koncepcja na wektor
|
||||
Concept to Vector… Koncepcja na wektor…
|
||||
Cancel Concept to Vector Job Anuluj zadanie Koncepcja na wektor
|
||||
Cancel Concept to Vector Anuluj Koncepcja na wektor
|
||||
Concept to Vector Providers Dostawcy Koncepcja na wektor
|
||||
Concept to Vector Results Wyniki Koncepcja na wektor
|
||||
Generate Concept to Vector Styles Generuj style Koncepcja na wektor
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7562,6 +7562,7 @@ swatch Yellow Green Verde-amarelado
|
||||
Concept to Vector Conceito para vetor
|
||||
Concept to Vector… Conceito para vetor…
|
||||
Cancel Concept to Vector Job Cancelar tarefa de Conceito para vetor
|
||||
Cancel Concept to Vector Cancelar Conceito para vetor
|
||||
Concept to Vector Providers Provedores de Conceito para vetor
|
||||
Concept to Vector Results Resultados de Conceito para vetor
|
||||
Generate Concept to Vector Styles Gerar estilos de Conceito para vetor
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7578,6 +7578,7 @@ shape Open Открытый
|
||||
Concept to Vector Концепт в вектор
|
||||
Concept to Vector… Концепт в вектор…
|
||||
Cancel Concept to Vector Job Отменить задание «Концепт в вектор»
|
||||
Cancel Concept to Vector Отменить «Концепт в вектор»
|
||||
Concept to Vector Providers Поставщики «Концепт в вектор»
|
||||
Concept to Vector Results Результаты «Концепт в вектор»
|
||||
Generate Concept to Vector Styles Создать стили «Концепт в вектор»
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8927,6 +8927,7 @@ digits Hindi Hindi
|
||||
Concept to Vector Koncept till vektor
|
||||
Concept to Vector… Koncept till vektor…
|
||||
Cancel Concept to Vector Job Avbryt jobbet Koncept till vektor
|
||||
Cancel Concept to Vector Avbryt Koncept till vektor
|
||||
Concept to Vector Providers Leverantörer för Koncept till vektor
|
||||
Concept to Vector Results Resultat för Koncept till vektor
|
||||
Generate Concept to Vector Styles Skapa stilar för Koncept till vektor
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7445,6 +7445,7 @@ breakText Glyphs Glifler
|
||||
Concept to Vector Konseptten Vektöre
|
||||
Concept to Vector… Konseptten Vektöre…
|
||||
Cancel Concept to Vector Job Konseptten Vektöre İşini İptal Et
|
||||
Cancel Concept to Vector Konseptten Vektöre İşlemini İptal Et
|
||||
Concept to Vector Providers Konseptten Vektöre Sağlayıcıları
|
||||
Concept to Vector Results Konseptten Vektöre Sonuçları
|
||||
Generate Concept to Vector Styles Konseptten Vektöre Stilleri Oluştur
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 5 and column 25.
|
@@ -7099,6 +7099,7 @@ breakText Glyphs Гліфи
|
||||
Concept to Vector Концепт у вектор
|
||||
Concept to Vector… Концепт у вектор…
|
||||
Cancel Concept to Vector Job Скасувати завдання «Концепт у вектор»
|
||||
Cancel Concept to Vector Скасувати «Концепт у вектор»
|
||||
Concept to Vector Providers Постачальники «Концепт у вектор»
|
||||
Concept to Vector Results Результати «Концепт у вектор»
|
||||
Generate Concept to Vector Styles Створити стилі «Концепт у вектор»
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7100,6 +7100,7 @@ breakText Glyphs Glyph
|
||||
Concept to Vector Ý tưởng thành vector
|
||||
Concept to Vector… Ý tưởng thành vector…
|
||||
Cancel Concept to Vector Job Hủy tác vụ Ý tưởng thành vector
|
||||
Cancel Concept to Vector Hủy Ý tưởng thành vector
|
||||
Concept to Vector Providers Nhà cung cấp Ý tưởng thành vector
|
||||
Concept to Vector Results Kết quả Ý tưởng thành vector
|
||||
Generate Concept to Vector Styles Tạo kiểu Ý tưởng thành vector
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 204 and column 5.
|
@@ -7328,6 +7328,7 @@ breakText Glyphs 字形
|
||||
Concept to Vector 概念转矢量
|
||||
Concept to Vector… 概念转矢量…
|
||||
Cancel Concept to Vector Job 取消概念转矢量任务
|
||||
Cancel Concept to Vector 取消概念转矢量
|
||||
Concept to Vector Providers 概念转矢量提供程序
|
||||
Concept to Vector Results 概念转矢量结果
|
||||
Generate Concept to Vector Styles 生成概念转矢量样式
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7135,6 +7135,7 @@ breakText Glyphs 字符
|
||||
Concept to Vector 概念轉向量
|
||||
Concept to Vector… 概念轉向量…
|
||||
Cancel Concept to Vector Job 取消概念轉向量工作
|
||||
Cancel Concept to Vector 取消概念轉向量
|
||||
Concept to Vector Providers 概念轉向量提供者
|
||||
Concept to Vector Results 概念轉向量結果
|
||||
Generate Concept to Vector Styles 產生概念轉向量樣式
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -807,7 +807,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
|
||||
"ui.conceptVector.cancel",
|
||||
"Cancel Concept to Vector",
|
||||
"",
|
||||
"{} the Concept to Vector panel's Cancel: stop the styles being made off the UI thread (on the web, before the next part); nothing is kept or shown → {cancelled: 0 or 1}",
|
||||
"{} stop the styles the Concept to Vector panel is making off the UI thread (the panel's Cancel; on the web, before the next part): nothing is kept or shown → {canceled: 0 or 1}",
|
||||
),
|
||||
(
|
||||
"ui.cropImage",
|
||||
|
||||
@@ -202,14 +202,14 @@ pub fn cancel(app: &mut VectorcraftApp) {
|
||||
}
|
||||
|
||||
/// `ui.conceptVector.cancel`, the panel's Cancel: stops the styles being made, and says so in the
|
||||
/// status bar → `{cancelled: 0 or 1}`.
|
||||
/// status bar → `{canceled: 0 or 1}`.
|
||||
pub fn cancel_run(app: &mut VectorcraftApp) -> Value {
|
||||
if !app.concept_runs.busy() {
|
||||
return json!({ "cancelled": 0 });
|
||||
return json!({ "canceled": 0 });
|
||||
}
|
||||
cancel(app);
|
||||
app.status(vectorcraft_engine::EngineError::Cancelled.to_string());
|
||||
json!({ "cancelled": 1 })
|
||||
json!({ "canceled": 1 })
|
||||
}
|
||||
|
||||
/// Each frame: makes the next part of a run made one part a frame, and keeps a finished run's
|
||||
|
||||
@@ -213,7 +213,7 @@ fn the_cancel_command_stops_a_run_as_the_button_does() {
|
||||
assert!(!menus::enabled(&app, CANCEL));
|
||||
generate(&mut app).unwrap();
|
||||
assert!(menus::enabled(&app, CANCEL));
|
||||
assert_eq!(app.run(CANCEL, json!({})).unwrap(), json!({"cancelled": 1}));
|
||||
assert_eq!(app.run(CANCEL, json!({})).unwrap(), json!({"canceled": 1}));
|
||||
assert!(!app.concept_runs.busy() && !menus::enabled(&app, CANCEL));
|
||||
assert_eq!(app.ui.status, vectorcraft_engine::EngineError::Cancelled.to_string());
|
||||
poll(&mut app);
|
||||
|
||||
@@ -1394,7 +1394,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- **Image Trace, JPEG blocks:** Color, Grayscale and Black and White traces smooth the edges of a JPEG's 8 × 8 blocks before tracing, so a dark ground whose tone changes slowly is no longer traced as staircases along the block edges. The block grid is found in the image itself: the mean step between neighboring pixels must peak at one position in eight, across and down. A cropped JPEG and a JPEG saved in another format are smoothed too. A picture of flat 8 × 8 cells is left as it is, and art made of 8 × 8 cells with slight texture inside each cell is smoothed as a JPEG copy would be. A small step at a block edge, with no edge in the eight pixels around it, is spread over those eight pixels, and larger steps are kept, as the deblocking filters of ITU-T H.263 Annex J and MPEG-4 Part 2 Annex F.3.1 do. Black and White smooths only the smallest steps, and traces of more than 16 colors move every row of a stretch of eight by the same amount (VectorCraft's own rule and values). On a 4000 × 3000 photo saved as JPEG, the straight outline segments that lie on the block grid fall from 52% and 51% (across and down) to 24% and 29% at 16 Colors, and from 54% and 51% to 43% and 42% at High Fidelity Photo; staircase runs fall from 83 to 67 (16 Colors), 11 to 1 (6 Colors), 30 to 13 (Black and White Logo) and 428 to 403 (High Fidelity Photo). A 600 px photo saved as a quality-40 JPEG has 4 staircase runs instead of 2 at 16 Colors. Images without a block grid trace as before. Tests: `tests::a_jpegs_blocks_are_not_traced_as_steps`, `deblock::tests`. Scores and hours unchanged.
|
||||
- **Image Trace, Document Library color groups:** with Document Swatches, the panel's Colors menu and `"colorGroup"` trace with one color group's colors instead of every swatch, as the public panel documentation describes Document Library; code-drawn tests in `crates/engine` and the panel.
|
||||
- **Image Trace, Document Library colors:** with Document Swatches, traced fills and strokes use the displayed colors of process, global, spot and tint swatches without links, so editing a swatch leaves the trace unchanged; swatch-library colors are also unlinked; code-drawn tests in `crates/engine`.
|
||||
- **Concept to Vector, offline styles (in part):** Window › Concept to Vector and Object › Concept to Vector… (also the context menu, the contextual task bar and the Control bar for one image or unexpanded Image Trace object; Properties for one image) make 1 to 8 styles of the selected image side by side and insert the ticked ones to the right of it as one undo step, as the help page describes for comparing styles ([Generate vector artwork from images](https://helpx.adobe.com/illustrator/desktop/use-generative-ai/generate-vector-artwork-from-images.html)). The only provider is built in: five VectorCraft styles (Outline, Ink Lines, Flat Color, Detailed Color, Gray Tones) made with Image Trace on this computer, with Detail from 0 to 100; it takes no prompt and makes no raster output, so prompt-led generation is still missing. Other providers plug in by id through `crates/engine/src/concept_vector.rs`, and every result is checked before it is kept. Tests: `concept_vector::tests` in `crates/engine` and `panels::concept_vector::tests` in `crates/ui-egui`. Scores and hours unchanged.
|
||||
- **Concept to Vector, offline styles (in part):** Window › Concept to Vector and Object › Concept to Vector… (also the context menu and the contextual task bar for one image or unexpanded Image Trace object; the Control bar and Properties for one image) make 1 to 5 styles of the selected image side by side (a provider may offer up to 8) and insert the ticked ones to the right of it as one undo step, as the help page describes for comparing styles ([Generate vector artwork from images](https://helpx.adobe.com/illustrator/desktop/use-generative-ai/generate-vector-artwork-from-images.html)). The only provider is built in: five VectorCraft styles (Outline, Ink Lines, Flat Color, Detailed Color, Gray Tones) made with Image Trace on this computer, with Detail from 0 to 100; it takes no prompt and makes no raster output, so prompt-led generation is still missing. Other providers plug in by id through `crates/engine/src/concept_vector.rs`, and every result is checked before it is kept. Tests: `concept_vector::tests` in `crates/engine` and `panels::concept_vector::tests` in `crates/ui-egui`. Scores and hours unchanged.
|
||||
- **Image Trace, flattened slivers:** in a Color, Grayscale or Black and White trace with Fills, a traced region whose outline straightens onto one line (a single pixel, or a one-pixel row along an edge, its pieces shared with the regions beside it) is left out instead of becoming a selectable path with no area, which paints nothing. Snap Curves To Lines straightens more outlines, so it leaves out more of these. Without Fills, the region's 1 px stroke draws it, and it is kept. Code-drawn tests in `crates/trace`.
|
||||
- **Image Trace, Auto Color rare colours:** the Automatic palette keeps colours too rare for its area count when they are distinct (Oklab) and drawn as coherent regions, at most six, protected from mixed-colour merging and Noise; code-drawn stem, highlight, low-contrast and scattered-noise tests (see [quality notes](image-trace-quality.md#auto-color-keeps-rare-colours)).
|
||||
- **Image Trace, nearly flat dark grounds:** with a Limited palette of 9 to 16 colors (16 Colors, and Document Library without swatches), by VectorCraft's own rule, a cut whose two sides both have a dark gray mean (Oklab lightness under 0.30, chroma under 0.03) and lie less than 0.03 apart in Oklab has its gain scaled by (distance / 0.03)². A near-black ground with faint noise then traces in one color, and the color it would have taken goes to another cut. Code-drawn tests `a_nearly_flat_dark_ground_keeps_one_color`, `only_a_limited_palette_of_nine_to_sixteen_colors_weighs_alike_sides` and `a_dark_colored_figure_on_a_nearly_flat_dark_ground_keeps_its_color` in `crates/trace`.
|
||||
|
||||
+1
-1
@@ -405,7 +405,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
|
||||
| Image Trace panel: holding the eye button next to View down shows the selected Image Trace objects' source image on the canvas | done | Per the public documentation, the control next to View is pressed and held to compare the trace result with the source image (<https://web.archive.org/web/20250831090623/https://helpx.adobe.com/illustrator/using/image-trace.html>). On release the objects show their View again; the document, its View and the undo history are unchanged. `RenderOptions::trace_source`; `panels/image_trace.rs` headless test `holding_the_eye_button_shows_the_source_image_until_released`, render test `trace_source_draws_the_source_image_of_the_listed_objects`. The Control bar and Properties have no such button |
|
||||
| Live trace result bounds and selection highlights exclude the retained bitmap; source-image views retain it | done | All TraceView modes and rotated result bounds regression-covered; ordinary hidden group behavior retained |
|
||||
| Image Trace panel: the Preview checkbox before Trace chooses whether a setting change traces the selected Image Trace object again at once | done | Per the public documentation, Preview shows the result of the current settings and Trace traces with them (<https://web.archive.org/web/20250831090623/https://helpx.adobe.com/illustrator/using/image-trace.html>). Preview is on by default and kept with the UI preferences; Reset to Default leaves it. Off, changes wait in the panel until Trace applies them as one undo step, or until Preview is turned on again. Changes stay with the object they were made for while another object is selected, and come back when it is selected again. `imageTrace.preview {on?}`, `ui.set {imageTracePreview}`; `panels/image_trace.rs` headless tests (`with_preview_off_a_slider_change_waits_for_trace`, `turning_preview_on_traces_the_changes_that_waited`, `preview_turned_on_with_nothing_selected_traces_when_the_object_is_selected_again`, `settings_that_wait_stay_with_their_object`, `settings_that_wait_come_back_when_their_object_is_selected_again`, `settings_that_wait_are_dropped_when_their_object_changed_since`, `preview_is_kept_with_the_preferences_and_reset_to_default_leaves_it`) |
|
||||
| Concept to Vector panel: Window › Concept to Vector and Object › Concept to Vector… (also the context menu, the Contextual Task Bar and the Control bar) open it for one image or unexpanded Image Trace object, and Properties' Quick Actions for one image; it makes 1 to 8 styles side by side and Insert Selected puts the ticked ones to the right of the image as one undo step | partial | The help page describes choosing up to 8 styles of the selected image to compare side by side (<https://helpx.adobe.com/illustrator/desktop/use-generative-ai/generate-vector-artwork-from-images.html>). The built-in provider makes five offline Image Trace styles with Detail 0 to 100; its prompt field is disabled and it makes no raster output. On the web build a run is made one part a frame, so Cancel takes effect inside a style. Decoding the image, finding a style's color layers and tracing one layer are each one part; the Detailed Color and Gray Tones styles trace all their color layers in one part. Cancel waits for the part in progress to end. `conceptVector.providers`, `conceptVector.generate`, `conceptVector.results`, `conceptVector.cancel`, `conceptVector.insert`, `ui.conceptVector.cancel` (the panel's Cancel); `panels/concept_vector.rs` headless tests |
|
||||
| Concept to Vector panel: Window › Concept to Vector and Object › Concept to Vector… (also the context menu and the Contextual Task Bar) open it for one image or unexpanded Image Trace object, and the Control bar and Properties' Quick Actions for one image; it makes 1 to 5 styles side by side (a provider may offer up to 8) and Insert Selected puts the ticked ones to the right of the image as one undo step | partial | The help page describes choosing up to 8 styles of the selected image to compare side by side (<https://helpx.adobe.com/illustrator/desktop/use-generative-ai/generate-vector-artwork-from-images.html>). The built-in provider makes five offline Image Trace styles with Detail 0 to 100; its prompt field is disabled and it makes no raster output. On the web build a run is made one part a frame, so Cancel takes effect inside a style. Decoding the image, finding a style's color layers and tracing one layer are each one part; the Detailed Color and Gray Tones styles trace all their color layers in one part. Cancel waits for the part in progress to end. `conceptVector.providers`, `conceptVector.generate`, `conceptVector.results`, `conceptVector.cancel`, `conceptVector.insert`, `ui.conceptVector.cancel` (the panel's Cancel); `panels/concept_vector.rs` headless tests |
|
||||
| Toolbar without group labels by default, one or two columns; All Tools drawer by flyout group with shortcuts, its menu (Reset, Basic, Advanced) and Show section | done | #1751; a preference brings the labels back; `toolbar.show` sets the Fill/Stroke, Coloring, Draw Mode and Screen Mode controls |
|
||||
| Actions panel: ≡ › Save Actions… saves the current set with all its actions to a file and ≡ › Load Actions… adds a saved set ([Manage a set of actions](https://helpx.adobe.com/illustrator/desktop/automate-visualize-data/automate-actions/manage-a-set-of-actions.html)) | partial | `ui.actionSet.save`, `ui.actionSet.load`; `panels/actions.rs` tests. The file is VectorCraft's own `.vcactions` JSON; Reset, Clear and Replace Actions remain |
|
||||
| Actions panel: ≡ › Load Actions… also reads action sets saved as `.aia` files ([Actions panel overview](https://helpx.adobe.com/illustrator/desktop/automate-visualize-data/automate-actions/actions-panel-overview.html)) | partial | `actionSet.read`, `ui.actionSet.load`; `tests/actionset.rs`, `panels/actions.rs` tests, `import_fuzz`. Only steps with a label and no recorded values come in, as menu commands that run with no values and open no dialog, matched by label; the other steps, recorded menu items included, are left out and counted |
|
||||
|
||||
Reference in New Issue
Block a user