Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Merge PR #926

Claude17dfa9709e30
diff --cc Cargo.lock
index c59b90594,8d5c23df1..0b45984f9
--- a/Cargo.lock
+++ b/Cargo.lock
@@@ -3302,15 -3291,13 +3302,22 @@@ dependencies =
"rayon",
]
+ [[package]]
+ name = "lightcraft-inpaint"
+ version = "0.6.0"
+ dependencies = [
+ "rayon",
+ ]
+
+[[package]]
+name = "lightcraft-lensdb"
+version = "0.6.0"
+dependencies = [
+ "lightcraft-develop",
+ "lightcraft-geom",
+ "quick-xml 0.38.4",
+]
+
[[package]]
name = "lightcraft-mcp"
version = "0.6.0"
diff --cc Cargo.toml
index ac8c283c8,f5278446a..b3c0caa17
--- a/Cargo.toml
+++ b/Cargo.toml
@@@ -24,7 -24,7 +24,8 @@@ lightcraft-raw = { path = "crates/raw"
lightcraft-codecs = { path = "crates/codecs" }
lightcraft-meta = { path = "crates/meta" }
lightcraft-develop = { path = "crates/develop" }
+lightcraft-lensdb = { path = "crates/lensdb" }
+ lightcraft-inpaint = { path = "crates/inpaint" }
lightcraft-scenes = { path = "crates/scenes" }
lightcraft-pipeline = { path = "crates/pipeline" }
lightcraft-gpu = { path = "crates/gpu" }
diff --cc crates/ui-egui/locales/de.json
index dfefa2160,a4169bad1..6f2b25a8b
--- a/crates/ui-egui/locales/de.json
+++ b/crates/ui-egui/locales/de.json
@@@ -2045,22 -2040,5 +2045,23 @@@
"Finding faces": "Gesichter werden gesucht",
"Synchronizing folder": "Ordner wird synchronisiert",
"Looking for changes": "Änderungen werden gesucht",
+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Dies ist ein Lightroom-Katalog, keine LightCraft-Bibliothek. Stattdessen in eine LightCraft-Bibliothek importieren?",
+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "Der Import liest den Katalog, ohne ihn zu ändern, und fügt seine Fotos, Bearbeitungen, Stichwörter und Sammlungen der jetzt geöffneten Bibliothek hinzu.",
+ "Albums hold library photos: Add to My Photos first": "Alben enthalten Bibliotheksfotos: zuerst zu „Meine Fotos“ hinzufügen",
+ "Add to My Photos First": "Zuerst zu „Meine Fotos“ hinzufügen",
+ "Fill Location from GPS": "Ort aus GPS ausfüllen",
+ "Download Place Names (GeoNames)": "Ortsnamen herunterladen (GeoNames)",
+ "Place Names Status": "Status der Ortsnamen",
+ "Fill Location": "Ort ausfüllen",
+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Leere Felder Stadt, Bundesland und Land aus GPS ausfüllen (GeoNames-Ortsnamen, offline)",
+ "Looking up places": "Orte werden nachgeschlagen",
+ "Downloading place names": "Ortsnamen werden heruntergeladen",
+ "Place names downloaded": "Ortsnamen heruntergeladen",
+ "Place names download cancelled": "Download der Ortsnamen abgebrochen",
+ "Other…": "Andere…",
+ "Intent:": "Priorität:",
+ "Perceptual": "Perzeptiv",
+ "Relative": "Relativ",
- "Simulate Paper & Ink": "Papier und Druckfarbe simulieren"
++ "Simulate Paper & Ink": "Papier und Druckfarbe simulieren",
+ "Content-Aware": "Inhaltsbasiert"
}
diff --cc crates/ui-egui/locales/es.json
index b76b75662,9920b9e61..bd42ce60c
--- a/crates/ui-egui/locales/es.json
+++ b/crates/ui-egui/locales/es.json
@@@ -1890,22 -1885,5 +1890,23 @@@
"Finding faces": "Buscando caras",
"Synchronizing folder": "Sincronizando carpeta",
"Looking for changes": "Buscando cambios",
+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Esto es un catálogo de Lightroom, no una biblioteca de LightCraft. ¿Importarlo a una biblioteca de LightCraft?",
+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "La importación lee el catálogo sin modificarlo y añade sus fotos, ediciones, palabras clave y colecciones a la biblioteca abierta ahora.",
+ "Albums hold library photos: Add to My Photos first": "Los álbumes contienen fotos de la biblioteca: añádelas primero a Mis fotos",
+ "Add to My Photos First": "Añadir primero a Mis fotos",
+ "Fill Location from GPS": "Rellenar ubicación desde GPS",
+ "Download Place Names (GeoNames)": "Descargar nombres de lugares (GeoNames)",
+ "Place Names Status": "Estado de los nombres de lugares",
+ "Fill Location": "Rellenar ubicación",
+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Rellenar Ciudad, Estado y País vacíos desde el GPS (nombres de lugares de GeoNames, sin conexión)",
+ "Looking up places": "Buscando lugares",
+ "Downloading place names": "Descargando nombres de lugares",
+ "Place names downloaded": "Nombres de lugares descargados",
+ "Place names download cancelled": "Descarga de nombres de lugares cancelada",
+ "Other…": "Otro…",
+ "Intent:": "Propósito:",
+ "Perceptual": "Perceptual",
+ "Relative": "Relativo",
- "Simulate Paper & Ink": "Simular papel y tinta"
++ "Simulate Paper & Ink": "Simular papel y tinta",
+ "Content-Aware": "Según el contenido"
}
diff --cc crates/ui-egui/locales/fr.json
index 35554261c,bbea4b894..44ed46016
--- a/crates/ui-egui/locales/fr.json
+++ b/crates/ui-egui/locales/fr.json
@@@ -1890,22 -1885,5 +1890,23 @@@
"Reset Panel Layout": "Reset Panel Layout",
"Resize panel window": "Resize panel window",
"Resize panels": "Resize panels",
+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Ceci est un catalogue Lightroom, pas une bibliothèque LightCraft. L’importer plutôt dans une bibliothèque LightCraft ?",
+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "L’importation lit le catalogue sans le modifier et ajoute ses photos, retouches, mots-clés et collections à la bibliothèque ouverte.",
+ "Albums hold library photos: Add to My Photos first": "Les albums contiennent des photos de la bibliothèque : ajoutez-les d’abord à Mes photos",
+ "Add to My Photos First": "Ajouter d’abord à Mes photos",
+ "Fill Location from GPS": "Remplir le lieu depuis le GPS",
+ "Download Place Names (GeoNames)": "Télécharger les noms de lieux (GeoNames)",
+ "Place Names Status": "État des noms de lieux",
+ "Fill Location": "Remplir le lieu",
+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Remplir Ville, État et Pays vides depuis le GPS (noms de lieux GeoNames, hors ligne)",
+ "Looking up places": "Recherche des lieux",
+ "Downloading place names": "Téléchargement des noms de lieux",
+ "Place names downloaded": "Noms de lieux téléchargés",
+ "Place names download cancelled": "Téléchargement des noms de lieux annulé",
+ "Other…": "Autre…",
+ "Intent:": "Mode de rendu :",
+ "Perceptual": "Perceptif",
+ "Relative": "Relatif",
- "Simulate Paper & Ink": "Simuler le papier et l'encre"
++ "Simulate Paper & Ink": "Simuler le papier et l'encre",
+ "Content-Aware": "Contenu pris en compte"
}
diff --cc crates/ui-egui/locales/ja.json
index 3d940d4ba,9556aa280..fad89f09e
--- a/crates/ui-egui/locales/ja.json
+++ b/crates/ui-egui/locales/ja.json
@@@ -1892,22 -1887,5 +1892,23 @@@
"Finding faces": "顔を検索中",
"Synchronizing folder": "フォルダを同期中",
"Looking for changes": "変更を確認中",
+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "これは Lightroom カタログで、LightCraft ライブラリではありません。代わりに LightCraft ライブラリに読み込みますか?",
+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "読み込みはカタログを変更せずに読み取り、写真・編集・キーワード・コレクションを現在開いているライブラリに追加します。",
+ "Albums hold library photos: Add to My Photos first": "アルバムに入れられるのはライブラリの写真です:先にマイフォトに追加してください",
+ "Add to My Photos First": "先にマイフォトに追加",
+ "Fill Location from GPS": "GPS から場所を入力",
+ "Download Place Names (GeoNames)": "地名データをダウンロード (GeoNames)",
+ "Place Names Status": "地名データの状態",
+ "Fill Location": "場所を入力",
+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "空の市区町村・都道府県・国を GPS から入力 (GeoNames の地名、オフライン)",
+ "Looking up places": "場所を検索中",
+ "Downloading place names": "地名データをダウンロード中",
+ "Place names downloaded": "地名データをダウンロードしました",
+ "Place names download cancelled": "地名データのダウンロードを中止しました",
+ "Other…": "その他…",
+ "Intent:": "マッチング方法:",
+ "Perceptual": "知覚的",
+ "Relative": "相対的",
- "Simulate Paper & Ink": "紙とインキをシミュレート"
++ "Simulate Paper & Ink": "紙とインキをシミュレート",
+ "Content-Aware": "コンテンツに応じる"
}
diff --cc crates/ui-egui/locales/pt-br.json
index df296d9a4,b4ac44cc5..cee2d48fc
--- a/crates/ui-egui/locales/pt-br.json
+++ b/crates/ui-egui/locales/pt-br.json
@@@ -1890,22 -1885,5 +1890,23 @@@
"Finding faces": "Procurando rostos",
"Synchronizing folder": "Sincronizando pasta",
"Looking for changes": "Procurando alterações",
+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Este é um catálogo do Lightroom, não uma biblioteca do LightCraft. Importá-lo para uma biblioteca do LightCraft?",
+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "A importação lê o catálogo sem alterá-lo e adiciona as fotos, edições, palavras-chave e coleções dele à biblioteca aberta agora.",
+ "Albums hold library photos: Add to My Photos first": "Álbuns contêm fotos da biblioteca: adicione-as às Minhas fotos primeiro",
+ "Add to My Photos First": "Adicionar às Minhas fotos primeiro",
+ "Fill Location from GPS": "Preencher local pelo GPS",
+ "Download Place Names (GeoNames)": "Baixar nomes de lugares (GeoNames)",
+ "Place Names Status": "Status dos nomes de lugares",
+ "Fill Location": "Preencher local",
+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Preencher Cidade, Estado e País vazios pelo GPS (nomes de lugares GeoNames, offline)",
+ "Looking up places": "Procurando lugares",
+ "Downloading place names": "Baixando nomes de lugares",
+ "Place names downloaded": "Nomes de lugares baixados",
+ "Place names download cancelled": "Download dos nomes de lugares cancelado",
+ "Other…": "Outro…",
+ "Intent:": "Tipo de conversão:",
+ "Perceptual": "Perceptual",
+ "Relative": "Relativo",
- "Simulate Paper & Ink": "Simular papel e tinta"
++ "Simulate Paper & Ink": "Simular papel e tinta",
+ "Content-Aware": "Sensível ao conteúdo"
}
diff --cc crates/ui-egui/locales/ru.json
index 0f1990e3a,d1331062f..95e0e7b56
--- a/crates/ui-egui/locales/ru.json
+++ b/crates/ui-egui/locales/ru.json
@@@ -1604,22 -1599,5 +1604,23 @@@
"Quit Anyway": "Всё равно выйти",
"Synchronizing folder": "Синхронизация папки",
"Looking for changes": "Поиск изменений",
+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Это каталог Lightroom, а не библиотека LightCraft. Импортировать его в библиотеку LightCraft?",
+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "Импорт читает каталог, не изменяя его, и добавляет его фото, правки, ключевые слова и коллекции в открытую сейчас библиотеку.",
+ "Albums hold library photos: Add to My Photos first": "В альбомах только фото из библиотеки: сначала добавьте их в «Мои фото»",
+ "Add to My Photos First": "Сначала добавить в «Мои фото»",
+ "Fill Location from GPS": "Заполнить место по GPS",
+ "Download Place Names (GeoNames)": "Загрузить названия мест (GeoNames)",
+ "Place Names Status": "Состояние названий мест",
+ "Fill Location": "Заполнить место",
+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Заполнить пустые поля «Город», «Регион» и «Страна» по GPS (названия мест GeoNames, офлайн)",
+ "Looking up places": "Поиск мест",
+ "Downloading place names": "Загрузка названий мест",
+ "Place names downloaded": "Названия мест загружены",
+ "Place names download cancelled": "Загрузка названий мест отменена",
+ "Other…": "Другой…",
+ "Intent:": "Метод:",
+ "Perceptual": "Перцепционный",
+ "Relative": "Относительный",
- "Simulate Paper & Ink": "Имитировать бумагу и краску"
++ "Simulate Paper & Ink": "Имитировать бумагу и краску",
+ "Content-Aware": "С учётом содержимого"
}
diff --cc crates/ui-egui/locales/uk.json
index cdf08d16e,f09bee86a..f0c92c417
--- a/crates/ui-egui/locales/uk.json
+++ b/crates/ui-egui/locales/uk.json
@@@ -2084,22 -2079,5 +2084,23 @@@
"Reset Panel Layout": "Reset Panel Layout",
"Resize panel window": "Resize panel window",
"Resize panels": "Resize panels",
+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Це каталог Lightroom, а не бібліотека LightCraft. Імпортувати його до бібліотеки LightCraft?",
+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "Імпорт читає каталог, не змінюючи його, і додає його фото, редагування, ключові слова та колекції до відкритої зараз бібліотеки.",
+ "Albums hold library photos: Add to My Photos first": "В альбомах лише фото з бібліотеки: спершу додайте їх до моїх фото",
+ "Add to My Photos First": "Спершу додати до моїх фото",
+ "Fill Location from GPS": "Заповнити місце за GPS",
+ "Download Place Names (GeoNames)": "Завантажити назви місць (GeoNames)",
+ "Place Names Status": "Стан назв місць",
+ "Fill Location": "Заповнити місце",
+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Заповнити порожні поля «Місто», «Регіон» і «Країна» за GPS (назви місць GeoNames, офлайн)",
+ "Looking up places": "Пошук місць",
+ "Downloading place names": "Завантаження назв місць",
+ "Place names downloaded": "Назви місць завантажено",
+ "Place names download cancelled": "Завантаження назв місць скасовано",
+ "Other…": "Інший…",
+ "Intent:": "Метод:",
+ "Perceptual": "Перцепційний",
+ "Relative": "Відносний",
- "Simulate Paper & Ink": "Імітувати папір і фарбу"
++ "Simulate Paper & Ink": "Імітувати папір і фарбу",
+ "Content-Aware": "З урахуванням вмісту"
}
diff --cc crates/ui-egui/locales/zh-hans.json
index 0a092d901,ef587fe3e..22916c850
--- a/crates/ui-egui/locales/zh-hans.json
+++ b/crates/ui-egui/locales/zh-hans.json
@@@ -1890,22 -1885,5 +1890,23 @@@
"Finding faces": "正在查找人脸",
"Synchronizing folder": "正在同步文件夹",
"Looking for changes": "正在查找更改",
+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "这是 Lightroom 目录,不是 LightCraft 图库。要改为将其导入 LightCraft 图库吗?",
+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "导入只读取目录、不做任何更改,并将其中的照片、编辑、关键字和收藏夹添加到当前打开的图库。",
+ "Albums hold library photos: Add to My Photos first": "相册只能收录图库中的照片:请先添加到我的照片",
+ "Add to My Photos First": "先添加到我的照片",
+ "Fill Location from GPS": "根据 GPS 填写位置",
+ "Download Place Names (GeoNames)": "下载地名数据 (GeoNames)",
+ "Place Names Status": "地名数据状态",
+ "Fill Location": "填写位置",
+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "根据 GPS 填写空白的城市、省/州和国家(GeoNames 地名,离线)",
+ "Looking up places": "正在查找地点",
+ "Downloading place names": "正在下载地名数据",
+ "Place names downloaded": "地名数据已下载",
+ "Place names download cancelled": "已取消下载地名数据",
+ "Other…": "其他…",
+ "Intent:": "方法:",
+ "Perceptual": "可感知",
+ "Relative": "相对",
- "Simulate Paper & Ink": "模拟纸张和油墨"
++ "Simulate Paper & Ink": "模拟纸张和油墨",
+ "Content-Aware": "内容识别"
}
diff --cc crates/ui-egui/locales/zh-hant.json
index 54509e3c9,4c9bb8689..21f9927a6
--- a/crates/ui-egui/locales/zh-hant.json
+++ b/crates/ui-egui/locales/zh-hant.json
@@@ -1890,22 -1885,5 +1890,23 @@@
"Finding faces": "正在尋找臉孔",
"Synchronizing folder": "正在同步資料夾",
"Looking for changes": "正在尋找變更",
+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "這是 Lightroom 目錄,不是 LightCraft 照片庫。要改為將其匯入 LightCraft 照片庫嗎?",
+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "匯入只讀取目錄、不做任何變更,並將其中的照片、編輯、關鍵字和收藏夾加入目前開啟的照片庫。",
+ "Albums hold library photos: Add to My Photos first": "相簿只能收錄圖庫中的照片:請先加入我的照片",
+ "Add to My Photos First": "先加入我的照片",
+ "Fill Location from GPS": "根據 GPS 填寫位置",
+ "Download Place Names (GeoNames)": "下載地名資料 (GeoNames)",
+ "Place Names Status": "地名資料狀態",
+ "Fill Location": "填寫位置",
+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "根據 GPS 填寫空白的城市、州/省和國家(GeoNames 地名,離線)",
+ "Looking up places": "正在查找地點",
+ "Downloading place names": "正在下載地名資料",
+ "Place names downloaded": "地名資料已下載",
+ "Place names download cancelled": "已取消下載地名資料",
+ "Other…": "其他…",
+ "Intent:": "方式:",
+ "Perceptual": "感知",
+ "Relative": "相對",
- "Simulate Paper & Ink": "模擬紙張和油墨"
++ "Simulate Paper & Ink": "模擬紙張和油墨",
+ "Content-Aware": "內容感知"
}
diff --cc xtask/src/layers.rs
index 2233c8e7d,2ad481d8f..714b47a2f
--- a/xtask/src/layers.rs
+++ b/xtask/src/layers.rs
@@@ -46,9 -46,8 +46,10 @@@ pub const TABLE: &[(&str, Class)] = &
("codecs", Class::Layer(1)),
("meta", Class::Layer(1)),
("develop", Class::Layer(1)),
+ ("lensdb", Class::Layer(2)),
+ ("inpaint", Class::Layer(1)),
("faces", Class::Layer(1)),
+ ("geocode", Class::Layer(1)),
("scenes", Class::Layer(1)),
("pipeline", Class::Layer(2)),
("gpu", Class::Layer(3)),