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 pull request #432: Fix #407, #410: repeat Excel print title rows in PDF, read HP-GL plot files (.plt) (schema 35)

KnifeLemon98875dbec9af
diff --cc src/Filee.Core/Settings/UserDataStore.cs
index df42d095,e1e89185..a52da8f6
--- a/src/Filee.Core/Settings/UserDataStore.cs
+++ b/src/Filee.Core/Settings/UserDataStore.cs
@@@ -750,31 -750,9 +750,34 @@@ internal static class SettingsMigration
// 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"]);
+ // v33: HAR network logs and raw H.265 / H.264 camera streams learn their donuts (custom claims stay put), and
+ // "Trim transparent borders" comes in after "Remove background".
+ if (from < 33)
+ {
+ changed |= LearnExtensions(profiles, out _, ["har", "h265", "265", "hevc", "h264", "264"]);
+ // "Trim transparent borders" after "Remove background", in the library and on the images donut's back face
+ // when it has room and the user hasn't put it there.
+ if (BuiltInData.TrimPresets().Single() is var trim && presets.All(p => p.Id != trim.Id))
+ {
+ var at = presets.FindIndex(p => p.Id == "remove-background");
+ presets.Insert(at < 0 ? presets.Count : at + 1, trim);
+ changed = true;
+ }
+ if (profiles.FirstOrDefault(p => p.Id == "images") is { BackPresetIds: { } back } images
+ && !back.Contains("trim-transparent") && !images.PresetIds.Contains("trim-transparent")
+ && back.Count < ToolbarProfile.MaxSlices)
+ {
+ var after = back.IndexOf("remove-background");
+ back.Insert(after < 0 ? back.Count(id => id != "zip-all") : after + 1, "trim-transparent");
+ changed = true;
+ }
+ }
+ // v34: Lua scripts and CSS style sheets learn the text donut; custom claims stay put.
+ if (from < 34)
+ changed |= LearnExtensions(profiles, out _, ["lua", "css"]);
+ // v33: HP-GL plot files learn their donut; custom claims stay put.
+ if (from < 33)
+ changed |= LearnExtensions(profiles, out _, ["plt", "hpgl", "hpg", "hgl"]);
return changed;
}