Metadata window: list a multi-page file's groups in the file's order, so pages come 1, 2, 3 … with their profiles
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
MetadataViewModel.cs の ArrangeGroups から始めてください。ここではグループが Order で、次に名前で ThenBy(...) によって並べられます。最初に到着したときに行がどのようにグループ化されるかと、それを比較してください。issue には、グループ化がすでに ExifTool の読み取り順を保持していると書かれているためです。名前による並べ替えを削除または置き換え、名前付きグループを先頭に、File を最後に保ったうえで、複数ページの TIFF で結果のグループ順を確認してください。issue はいくつかの可能なアプローチを提示しているので、完了とみなす前に優先される順序を確認してください。
索引モデルが issue の本文から書いたものです。
説明
What would you like Filee to do?
List the groups that have no name of their own in the order ExifTool reads them from the file (the order
exiftool -g1 prints them in), instead of sorting them by name. For a multi-page TIFF, the pages then come in order
(page 0, 1, 2 … 199), each followed by its own colour profile.
Groups with a name of their own (Location, Camera, Exposure, Description, Keywords, Document) stay first, and File
stays last, as now.
Why / when would you use it?
The groups are sorted as text (ArrangeGroups in MetadataViewModel.cs,
OrderBy(a => a.Order).ThenBy(a => a.Group, StringComparer.Ordinal)), so in a TIFF of more than ten pages:
- the pages come in text order: IFD1, IFD10, IFD11, IFD2 …;
- every page's colour profile (ICC-header, ICC-header10 … ICC_Profile9) comes before page 1, sorted as text too.
This happens on main today with a 12-page TIFF (652 fields):
With #1289 a 200-page TIFF opens too (10,804 fields read by ExifTool 12.58), and page 2 is then 914 groups down. Rendered
with the app's own code in the headless tests, using search to show one line per group:
| Now | Proposed | |
|---|---|---|
| Search "Image Width": one line per page | ||
| Search "RGB": each page and its profile |
The same text order puts Track10 before Track2 in a video with ten or more tracks, and Chapter10 before Chapter2.
Ideas for how it could work
The rows already arrive in ExifTool's order, and the grouping keeps each group where it first appears, so this is
the ThenBy(...) dropped (OrderBy keeps the order of equal entries).
What else it changes, so you can weigh it: an ordinary photo's other groups follow the file too. For a JPEG with a
thumbnail, IPTC, XMP and a Display P3 profile:
- now: ICC-header, ICC_Profile, IFD1, JFIF, Photoshop, XMP-photoshop, XMP-x, XMP-xmp;
- proposed: JFIF, IFD1, Photoshop, XMP-x, XMP-photoshop, XMP-xmp, ICC-header, ICC_Profile.
The first screen of the window is the same in both (the named groups first), pixel for pixel in these renders.
Other ways, if you'd rather:
- Sort numbers as numbers (IFD2 before IFD10, Track2 before Track10). The pages come in order, but every profile
still comes before page 1. - Show a page and its profile under a page heading (or a page picker). Clearer for scans, but it needs new
strings, and ExifTool's numbers don't map to pages reliably: a profile's number counts the profiles read so far, and
IFD1 is a page only in a TIFF (in a JPEG it's the thumbnail).
Not covered either way: a later page's ExifIFD or GPS has no number, so it shares the Exposure or Location group with
page 0's. My test files have none, so I haven't seen how that looks.
I can open a PR for whichever you prefer.
- 主要言語
- C#
- スター
- 3.6k
- フォーク
- 192
- 平均マージ
- 14時間 23分
- マージ済み PR(30日)
- 458
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
KnifeLemon/Filee のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
KnifeLemon/Filee#1887 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
KnifeLemon/Filee#1886 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
KnifeLemon/Filee#1855 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation question
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
KnifeLemon/Filee#1778 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
KnifeLemon/Filee#1893 ·
メンテナーはふだん 1 日以内に返信
KnifeLemon/Filee の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SixLabors/ImageSharp.Drawing#438 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
NetSparkleUpdater/NetSparkle#762 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
bug effort:S P3
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
nightscout/nocturne#4563 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Tyrrrz/YoutubeDownloader#925 ·