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 (Live Photo creation at schema 31, Setup fixes)

KnifeLemon1c772637bd08
diff --cc README.md
index 4da282db,91e1c790..1cc929a6
--- a/README.md
+++ b/README.md
@@@ -92,9 -92,9 +92,9 @@@ Filee shows new releases in its menu an
| From | To |
|---|---|
- | **Images**: JPG, PNG, WEBP, AVIF, TIFF, BMP, GIF, APNG, ICO, ICNS, JPEG XL, JPEG 2000, PSD/PSB, TGA, PPM, HEIC, QOI, DDS, PCX, MNG, CUR, …; GIMP XCF, camera RAW (CR2, CR3, NEF, ARW, DNG, …), DICOM, OpenEXR, HDR, JPEG XR (Windows), iPhone Live Photo (LIVP) read | any of these (HEIC⁵), PDF, SVG (traced), resized, grayscale; Live/Motion Photos (iPhone, Android) → their video (MP4, MOV⁵) |
+ | **Images**: JPG, PNG, WEBP, AVIF, TIFF, BMP, GIF, APNG, ICO, ICNS, JPEG XL, JPEG 2000, PSD/PSB, TGA, PPM, HEIC, QOI, DDS, PCX, MNG, CUR, …; GIMP XCF, camera RAW (CR2, CR3, NEF, ARW, DNG, …), DICOM, OpenEXR, HDR, JPEG XR (Windows), iPhone Live Photo (LIVP) read | any of these (HEIC⁵), PDF, SVG (traced), resized, grayscale; Live/Motion Photos (iPhone, Android) → their video (MP4, MOV⁵), and a video → Live Photo (iPhone) or Motion Photo (Android)⁵, experimental |
| **Vector**: SVG, SVGZ, EMF, WMF, AI · EPS, PS¹ · CDR, VSD, CGM, ODG, FODG² | PDF (vector), PNG and other images, SVG ↔ SVGZ, SVG → DXF/DWG, PDF → EPS/PS¹, SVG → EMF, WMF, ODG² |
-| **PDF** | DOCX, HWPX, TXT, PNG, JPG, TIFF, CBZ, PPTX (a picture of each page), SVG²; merge, split, page ranges, compress (smaller PDFs) |
+| **PDF** | DOCX, HWPX, TXT, PNG, JPG, TIFF, CBZ, PPTX (a picture of each page), SVG²; merge (review and rearrange the file order first), split, page ranges, compress (smaller PDFs) |
| **Documents**: DOCX, DOCM, DOTX, EML, Outlook MSG; OFD (Chinese e-invoices, official documents) read · DOC, ODT, FODT, OTT, RTF, WPS, WPD, Pages, ClarisWorks, MacWrite, T602, …² | PDF, DOCX, HWPX, EPUB, TXT, HTML; MSG → EML · ODT, FODT, OTT² |
| **Spreadsheets**: XLSX, XLSM, XLS, XLT, ODS, CSV, TSV · OTS, FODS, Numbers, ET² | PDF, XLSX, ODS, CSV, TSV, JSON, HWPX, HTML · XLT, OTS² |
| **Presentations**: PPTX, PPTM, POTX, POTM, PPSX · PPT, ODP, OTP, FODP, Keynote² | PDF, PNG, JPG, DOCX, HWPX · OTP² |
diff --cc src/Filee.Core/Settings/UserDataStore.cs
index b8008277,83996639..7aff0c84
--- a/src/Filee.Core/Settings/UserDataStore.cs
+++ b/src/Filee.Core/Settings/UserDataStore.cs
@@@ -715,9 -715,38 +715,41 @@@ internal static class SettingsMigration
// back. One the user emptied is saved empty and stays so.
if (from < 30 || profiles.Any(p => p.BackPresetIds is null))
changed |= AddBackFaces(presets, profiles);
+ // v31: "Live Photo (iPhone)" and "Motion Photo (Android)" (a clip of a video as a moving photo), after "Extract
+ // Live Photo video" as in a new library, and on the back of the video donut after "Extract frames" when it
+ // has room and the user hasn't put them elsewhere on it. Present already but saved since by a Filee before
+ // 31: that one dropped the option and left a plain JPG preset, so it is put back.
+ if (from < 31)
+ {
+ if (profiles.FirstOrDefault(p => p.Id == "video") is { BackPresetIds: { } back })
+ {
+ var missing = BuiltInData.LivePhotoPresets().Select(p => p.Id).Where(id => !back.Contains(id)).ToList();
+ if (missing.Count > 0 && back.Count + missing.Count <= ToolbarProfile.MaxSlices)
+ {
+ var after = back.IndexOf("extract-frames-jpg");
+ back.InsertRange(after < 0 ? back.Count(id => id != "zip-all") : after + 1, missing);
+ changed = true;
+ }
+ }
+ foreach (var live in BuiltInData.LivePhotoPresets())
+ {
+ if (presets.FirstOrDefault(p => p.Id == live.Id) is { } existing)
+ {
+ if (existing.Media.LivePhoto == LivePhotoKind.None && existing.TargetFormat == live.TargetFormat)
+ {
+ existing.Media.LivePhoto = live.Media.LivePhoto;
+ changed = true;
+ }
+ continue;
+ }
+ var at = presets.FindLastIndex(p => p.Id is "extract-motion" or "live-photo-iphone" or "extract-frames-jpg");
+ presets.Insert(at < 0 ? presets.Count : at + 1, live);
+ changed = true;
+ }
+ }
+ // v32: logs and script source, Video CD DAT and Workbench archives learn their donuts; custom claims stay put.
+ if (from < 32)
+ changed |= LearnExtensions(profiles, out _, ["log", "py", "pac", "bat", "command", "dat", "wbpz"]);
return changed;
}