Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Merge origin/main into feature/geospatial-conversion

KnifeLemon1264df9cd921
diff --cc src/Filee.App/Assets/i18n/en.json
index 062ac17f,869314ca..5f73854f
--- a/src/Filee.App/Assets/i18n/en.json
+++ b/src/Filee.App/Assets/i18n/en.json
@@@ -148,9 -132,17 +148,18 @@@
"profile.fonts": "Fonts",
"profile.data": "Data",
"profile.models": "3D models",
+ "profile.geo": "Geospatial",
"profile.mixed": "Mixed files",
+ "preset.crop": "Crop",
+ "crop.save": "Crop & Save",
+ "crop.reset": "Reset",
+ "crop.skip": "Skip",
+ "crop.aspect_title": "Aspect:",
+ "crop.aspect_free": "Free",
+ "crop.aspect_original": "Original",
+ "crop.page_counter": "{0} of {1}",
+
"preset.half_size": "Half size",
"preset.grayscale": "Grayscale",
"preset.remove_background": "Remove background",
diff --cc src/Filee.App/Assets/i18n/es.json
index a6e11896,6b38985f..972c7ec3
--- a/src/Filee.App/Assets/i18n/es.json
+++ b/src/Filee.App/Assets/i18n/es.json
@@@ -140,8 -124,15 +140,16 @@@
"profile.fonts": "Tipografías",
"profile.data": "Datos",
"profile.models": "Modelos 3D",
+ "profile.geo": "Geoespacial",
"profile.mixed": "Archivos mixtos",
+ "preset.crop": "Recortar",
+ "crop.save": "Recortar y guardar",
+ "crop.reset": "Restablecer",
+ "crop.skip": "Omitir",
+ "crop.aspect_title": "Proporción:",
+ "crop.aspect_free": "Libre",
+ "crop.aspect_original": "Original",
+ "crop.page_counter": "{0} de {1}",
"preset.half_size": "Reducir 50 %",
"preset.grayscale": "Grises",
"preset.remove_background": "Quitar fondo",
diff --cc src/Filee.App/Assets/i18n/hi.json
index 4c0d32b2,0abd34cc..87a4edb3
--- a/src/Filee.App/Assets/i18n/hi.json
+++ b/src/Filee.App/Assets/i18n/hi.json
@@@ -140,8 -124,15 +140,16 @@@
"profile.fonts": "फ़ॉन्ट",
"profile.data": "डेटा",
"profile.models": "3D मॉडल",
+ "profile.geo": "भू-स्थानिक",
"profile.mixed": "मिली-जुली फ़ाइलें",
+ "preset.crop": "क्रॉप करें",
+ "crop.save": "क्रॉप करके सहेजें",
+ "crop.reset": "रीसेट करें",
+ "crop.skip": "छोड़ दें",
+ "crop.aspect_title": "अनुपात:",
+ "crop.aspect_free": "मुक्त",
+ "crop.aspect_original": "मूल",
+ "crop.page_counter": "{1} में से {0}",
"preset.half_size": "आधा आकार",
"preset.grayscale": "ग्रेस्केल",
"preset.remove_background": "बैकग्राउंड हटाएँ",
diff --cc src/Filee.App/Assets/i18n/ko.json
index 55091dc4,347f7134..90ab8cd1
--- a/src/Filee.App/Assets/i18n/ko.json
+++ b/src/Filee.App/Assets/i18n/ko.json
@@@ -148,9 -132,17 +148,18 @@@
"profile.fonts": "글꼴",
"profile.data": "데이터",
"profile.models": "3D 모델",
+ "profile.geo": "지리 정보 (GIS)",
"profile.mixed": "혼합 파일",
+ "preset.crop": "자르기",
+ "crop.save": "자르기 및 저장",
+ "crop.reset": "초기화",
+ "crop.skip": "건너뛰기",
+ "crop.aspect_title": "비율:",
+ "crop.aspect_free": "자유",
+ "crop.aspect_original": "원본",
+ "crop.page_counter": "{0}/{1}",
+
"preset.half_size": "50% 축소",
"preset.grayscale": "흑백",
"preset.remove_background": "배경 제거",
diff --cc src/Filee.App/Assets/i18n/pl.json
index 30ce60b4,20e0b333..4502562c
--- a/src/Filee.App/Assets/i18n/pl.json
+++ b/src/Filee.App/Assets/i18n/pl.json
@@@ -148,9 -132,17 +148,18 @@@
"profile.fonts": "Czcionki",
"profile.data": "Dane",
"profile.models": "Modele 3D",
+ "profile.geo": "Geoprzestrzenne",
"profile.mixed": "Różne pliki",
+ "preset.crop": "Kadruj",
+ "crop.save": "Kadruj i zapisz",
+ "crop.reset": "Resetuj",
+ "crop.skip": "Pomiń",
+ "crop.aspect_title": "Proporcje:",
+ "crop.aspect_free": "Dowolne",
+ "crop.aspect_original": "Oryginalne",
+ "crop.page_counter": "{0} z {1}",
+
"preset.half_size": "Połowa rozmiaru",
"preset.grayscale": "Skala szarości",
"preset.remove_background": "Usuń tło",
diff --cc src/Filee.App/Assets/i18n/zh-CN.json
index c21cd9b5,22abca6d..ef476290
--- a/src/Filee.App/Assets/i18n/zh-CN.json
+++ b/src/Filee.App/Assets/i18n/zh-CN.json
@@@ -148,9 -132,17 +148,18 @@@
"profile.fonts": "字体",
"profile.data": "数据",
"profile.models": "3D 模型",
+ "profile.geo": "地理信息 (GIS)",
"profile.mixed": "混合文件",
+ "preset.crop": "裁剪",
+ "crop.save": "裁剪并保存",
+ "crop.reset": "重置",
+ "crop.skip": "跳过",
+ "crop.aspect_title": "比例:",
+ "crop.aspect_free": "自由",
+ "crop.aspect_original": "原始比例",
+ "crop.page_counter": "{0}/{1}",
+
"preset.half_size": "缩小 50%",
"preset.grayscale": "灰度",
"preset.remove_background": "去除背景",
diff --cc src/Filee.App/ViewModels/PresetEditorViewModel.cs
index a05bb020,446dcd31..ba4d9f0b
--- a/src/Filee.App/ViewModels/PresetEditorViewModel.cs
+++ b/src/Filee.App/ViewModels/PresetEditorViewModel.cs
@@@ -402,11 -402,9 +405,11 @@@ public sealed partial class PresetEdito
public bool ShowWebp => TargetId is "webp" or BuiltInData.SameAsSource;
public bool ShowMultiPageTiff => TargetId is "tiff";
public bool ShowIco => TargetId == "ico";
- /// <summary>PDF options (also used when a PDF source becomes images) mean nothing for media, archive, font, subtitle, data, e-mail and 3D targets.</summary>
+ /// <summary>PDF options (also used when a PDF source becomes images) mean nothing for media, archive, font, subtitle, data, e-mail, 3D and geospatial targets.</summary>
- public bool ShowPdf => TargetCategory is not (FormatCategory.Video or FormatCategory.Audio or FormatCategory.Archive or FormatCategory.Font
+ public bool ShowPdf => !IsTool && TargetCategory is not (FormatCategory.Video or FormatCategory.Audio or FormatCategory.Archive or FormatCategory.Font
- or FormatCategory.Subtitle or FormatCategory.Data or FormatCategory.Model3D) && TargetId != "eml";
+ or FormatCategory.Subtitle or FormatCategory.Data or FormatCategory.Model3D or FormatCategory.Geo) && TargetId != "eml";
+ /// <summary>"Save as ZIP" is offered for geospatial targets, whose results are several files (a Shapefile) or travel zipped.</summary>
+ public bool ShowZipResult => TargetCategory == FormatCategory.Geo;
public bool ShowPdfBuild => TargetId == "pdf";
public bool ShowPdfSplit => TargetId == "pdf";
diff --cc src/Filee.Core/Settings/UserDataStore.cs
index cda39939,c00f21b6..c8b98653
--- a/src/Filee.Core/Settings/UserDataStore.cs
+++ b/src/Filee.Core/Settings/UserDataStore.cs
@@@ -642,10 -631,29 +642,33 @@@ internal static class SettingsMigration
// of the user already takes them.
if (from < 24)
changed |= LearnExtensions(profiles, out _, ["potm"]);
+ // v25: geospatial vector data (Shapefile, GeoJSON, KML, KMZ, GPX) gets presets and its own donut after "models"
+ // (else after "data", else after "fonts"), with the extensions no donut of the user takes yet.
+ if (from < 25)
+ changed |= AddGeo(presets, profiles);
+ // v26: interactive "Crop" tool, after "Remove background" as in a new library, on no donut: users add it in
+ // Settings → Toolbar. Present already but saved since by a Filee before 26: that one read the unknown
+ // kind as a Group, dropped the target format and left an empty group. Kind and target format are put back,
+ // the user's own changes (name, file name pattern) stay.
+ if (from < 26)
+ {
+ if (BuiltInData.CreatePresets().FirstOrDefault(p => p.Id == "tool-crop") is { } crop)
+ {
+ if (presets.FirstOrDefault(p => p.Id == "tool-crop") is not { } existing)
+ {
+ var at = presets.FindIndex(p => p.Id == "remove-background");
+ presets.Insert(at < 0 ? presets.Count : at + 1, crop);
+ changed = true;
+ }
+ else if (existing.Kind != PresetKind.Tool)
+ {
+ existing.Kind = PresetKind.Tool;
+ existing.TargetFormat = crop.TargetFormat;
+ existing.SubPresetIds = [];
+ changed = true;
+ }
+ }
+ }
return changed;
}