Metadata window: list a multi-page file's groups in the file's order, so pages come 1, 2, 3 … with their profiles
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 66/100
Línea de trabajo
Empieza en MetadataViewModel.cs en ArrangeGroups, donde los grupos se ordenan por Order y luego por nombre con ThenBy(...). Compara eso con cómo se agrupan las filas cuando llegan por primera vez, ya que el issue dice que la agrupación ya conserva el orden de lectura de ExifTool. Elimina o reemplaza la ordenación por nombre, manteniendo los grupos nombrados primero y File al final, y luego comprueba el orden de grupos resultante en un TIFF de varias páginas. El issue ofrece varios enfoques posibles, así que confirma el orden preferido antes de darlo por terminado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C#
- Estrellas
- 3.6k
- Forks
- 192
- Merge medio
- 14 h 23 min
- PR fusionados (30 d)
- 458
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de KnifeLemon/Filee
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
KnifeLemon/Filee#1887 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
KnifeLemon/Filee#1886 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
KnifeLemon/Filee#1855 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
documentation question
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
KnifeLemon/Filee#1778 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
question: are the old "What's new" slides (2.0.0, 2.3.0) still needed in the language files?Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
KnifeLemon/Filee#1893 ·
Los mantenedores suelen responder en 1 día
Todos los issues de KnifeLemon/Filee
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
SixLabors/ImageSharp.Drawing#438 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
NetSparkleUpdater/NetSparkle#762 ·
-
ANSIInitializer.Enabled getterAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
bug effort:S P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
nightscout/nocturne#4563 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Tyrrrz/YoutubeDownloader#925 ·