Info - preset - update default

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

Info - preset - update default

Post by user0 »

XnViewMP 1.8.5 64bit
Windows11 (24H2), display resolution 3840x2160, win scaling 150%


General - Info
'Default' Info preset looks a bit outdated

Suggestion
info_preset_improve_default.png
info_preset_improve_default.png (37.04 KiB) Viewed 70 times
  • add few new presets OR update existing 'Default' Info preset
    - use table structure


    A - horizontal, 6 columns
    - Bottom-Left position
    - ☑ Stretch horizontally

    Code: Select all

    <style>.label {white-space:nowrap;color:rgb(184,184,184)} .value {word-wrap:break-word; white-space:pre-wrap} .accent {color:rgb(169, 169, 169)}</style><table table-layout=fixed border=0 width=100% height=100% cellspacing=0 cellpadding=5><tr><td width=60 align=right>{File Index}</td><td colspan=5 class=value><b><font size=4>{Filename}</font></b></td></tr><tr><td align=right class=label>Type
    W<span class=accent>x</span>H
    DPI
    Size
    Taken</td><td width=200 class=value>{File Type} {EXIF:Colour space} 
    {Width}<span class=accent>x</span>{Height}<span class=accent>x</span>{Bpp} <span class=accent>(</span>{RatioD}<span class=accent>)</span>
    {DPI-X}<span class=accent>x</span>{DPI-Y}
    {Size KB} <span class=accent>KiB</span>
    {EXIF:Date Taken}</td><td width=60 align=right class=label>Exposure
    Focal Length
    ISO
    Camera
    Lens</td><td width=200 class=value>(({EXIF:Exposure Time} <span class=accent>sec at f/</span>{EXIF:F-Number} <span class=accent>(</span>{EXIF:Exposure Bias} <span class=accent>EV)</span>
    {EXIF:Focal Length}
    {EXIF:ISO Value}
    {EXIF:Model} {EXIF:Make}
    {EXIF:Lens Model} {EXIF:Lens Make}))</td><td width=60 align=right class=label>Tag
    Rating
    Color label
    Description
    Comment
    Categories</td><td class=value>(({Tag status}
    {Rating Nb} {Rating}
    {Color label Nb} {Color label}
    {EXIF:Image Description}
    {EXIF:User Comment}
    {Categories}))</td></tr></table>
    

    B - horizontal, 8 columns
    - Bottom-Left position
    - ☑ Stretch horizontally

    Code: Select all

    <style>.label {white-space:nowrap;color:rgb(184,184,184)} .value {word-wrap:break-word; white-space:pre-wrap} .accent {color:rgb(169, 169, 169)}</style><table table-layout=fixed border=0 width=100% height=100% cellspacing=0 cellpadding=5><tr><td width=60 align=right>{File Index}</td><td colspan=7 class=value><b><font size=4>{Filename}</font></b></td></tr><tr><td align=right class=label>Type
    W<span class=accent>x</span>H
    DPI
    Size
    Taken</td><td width=200 class=value>{File Type} {EXIF:Colour space} 
    {Width}<span class=accent>x</span>{Height}<span class=accent>x</span>{Bpp} <span class=accent>(</span>{RatioD}<span class=accent>)</span>
    {DPI-X}<span class=accent>x</span>{DPI-Y}
    {Size KB} <span class=accent>KiB</span>
    {EXIF:Date Taken}</td><td width=60 align=right class=label>Exposure
    Focal Length
    ISO
    Camera
    Lens</td><td width=200 class=value>(({EXIF:Exposure Time} <span class=accent>sec at f/</span>{EXIF:F-Number} <span class=accent>(</span>{EXIF:Exposure Bias} <span class=accent>EV)</span>
    {EXIF:Focal Length}
    {EXIF:ISO Value}
    {EXIF:Model} {EXIF:Make}
    {EXIF:Lens Model} {EXIF:Lens Make}))</td><td width=60 align=right class=label>Tag
    Rating
    Color label</td><td width=150 class=value>(({Tag status}
    {Rating Nb} {Rating}
    {Color label Nb} {Color label}))</td><td width=60 align=right class=label>Description
    Comment
    Categories</td><td class=value>(({EXIF:Image Description}
    {EXIF:User Comment}
    {Categories}))</td></tr></table>
    

    C - vertical, 2 columns
    - Bottom/Top-Left position

    Code: Select all

    <style>.label {white-space:nowrap;color:rgb(184,184,184)} .value {word-wrap:break-word; white-space:pre-wrap} .accent {color:rgb(169, 169, 169)}</style><table table-layout=fixed border=0 width=100% height=100% cellspacing=0 cellpadding=5><tr><td width=60 align=right>{File Index}</td><td class=value><b><font size=4>{Filename}</font></b></td></tr><tr><td align=right class=label>Type
    W<span class=accent>x</span>H
    DPI
    Size
    Taken</td><td width=200 class=value>{File Type} {EXIF:Colour space} 
    {Width}<span class=accent>x</span>{Height}<span class=accent>x</span>{Bpp} <span class=accent>(</span>{RatioD}<span class=accent>)</span>
    {DPI-X}<span class=accent>x</span>{DPI-Y}
    {Size KB} <span class=accent>KiB</span>
    {EXIF:Date Taken}</td></tr><tr><td width=60 align=right class=label>Exposure
    Focal Length
    ISO
    Camera
    Lens</td><td width=200 class=value>(({EXIF:Exposure Time} <span class=accent>sec at f/</span>{EXIF:F-Number} <span class=accent>(</span>{EXIF:Exposure Bias} <span class=accent>EV)</span>
    {EXIF:Focal Length}
    {EXIF:ISO Value}
    {EXIF:Model} {EXIF:Make}
    {EXIF:Lens Model} {EXIF:Lens Make}))</td></tr><tr><td width=60 align=right class=label>Tag
    Rating
    Color label</td><td width=150 class=value>(({Tag status}
    {Rating Nb} {Rating}
    {Color label Nb} {Color label}))</td></tr><tr><td width=60 align=right class=label>Description
    Comment
    Categories</td><td class=value>(({EXIF:Image Description}
    {EXIF:User Comment}
    {Categories}))</td></tr></table>
    




    Note: Qt uses weird mix of plain text + html tags
    https://stackoverflow.com/a/73981455 wrote: An important thing to remember is that the "HTML" used in Qt standard widgets is not intended in the common (and modern) sense: the only way to get a reliable HTML representation in Qt as it would be in a standard web browser is through the QtWebEngine module (usually with QWebEngineView).

    Apart from that, all Qt widgets[1] that can display formatted text use the QTextDocument API, which supports only a limited subset of HTML (based on the HTML 4.01 specification) and CSS (based on the CSS 2.1 specification). If you're old enough, you can imagine its support similar to a standard webpage while browsing in year 2000.

    The "based on" concept is of utmost importance: the HTML content is parsed and translated to a QTextDocument structure, which doesn't provide the full support of the above official specifications: for instance, you cannot use frames (so, not quite "year 2000"...) or iframes.
    In fact, if you try to retrieve again the html of the widget, you will not get the same HTML content as the source you originally used[2].




Example





Related
Post Reply