When I view my pictures I would like the IPTC Caption shown at the (almost) bottom of the screen.
I can nearly do this using:
View -> Info -> Information Displayed Formatting (infoTemplate)
If I use {IPTC:Caption} with position bottom-center, this works ok until there is a long line of text, then the wrapping is ugly (to the left) and not centered.
I tried to use HTML tags:
<p style="text-align: center">{IPTC:Caption}</p>
Unfortunately this does not work as expected on long text, it is centered, but text to the left and right are truncated off screen.
Any ideas how I can center text that is longer than one line so it is wrapped in the center?
Also ideally I would like to be able to display the text slightly off the bottom:
<p style="text-align: center; margin-bottom: 20px">{IPTC:Caption}</p>
But looks like margin-bottom is not processed.
View -> Info -> Information Displayed Formatting
Moderators: xnview, Dreamer
-
nightflame
- Posts: 4
- Joined: Sun May 30, 2021 10:50 am
-
xnview
- Author of XnView
- Posts: 47513
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
nightflame
- Posts: 4
- Joined: Sun May 30, 2021 10:50 am
Re: View -> Info -> Information Displayed Formatting
Here is a screen shot of non-HTML bottom-center:

(text not wrapped to center)
Screen shot of HTML version <p style="text-align: center">{IPTC:Caption}</p>:

(text centered but not wrapped)

(text not wrapped to center)
Screen shot of HTML version <p style="text-align: center">{IPTC:Caption}</p>:

(text centered but not wrapped)
-
xnview
- Author of XnView
- Posts: 47513
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: View -> Info -> Information Displayed Formatting
Pierre.
-
xnview
- Author of XnView
- Posts: 47513
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: View -> Info -> Information Displayed Formatting
This problem is supposed to be fixed in XnView MP 0.99.0. Please check and confirm the bug fix here.
Pierre.
-
stealthyelephant
- Posts: 5
- Joined: Sun Jul 06, 2025 10:15 pm
Re: View -> Info -> Information Displayed Formatting
Is there a solution yet? Read through many threads but can't find it.
Just installed version 1.9.10 64-bit (Jan 15 2026) - Libformat 7.230 (MacOS), but IPTC data text is still overflowing info panel window to the right.
Edit: I realise it is possible to open Edit IPTC and thereby read the entire metadata text. But just not in the info panel in general window layout. So, it's this extra step.
Just installed version 1.9.10 64-bit (Jan 15 2026) - Libformat 7.230 (MacOS), but IPTC data text is still overflowing info panel window to the right.
Edit: I realise it is possible to open Edit IPTC and thereby read the entire metadata text. But just not in the info panel in general window layout. So, it's this extra step.
-
user0
- XnThusiast
- Posts: 2838
- Joined: Sat May 09, 2015 9:37 am
Re: View -> Info -> Information Displayed Formatting
white-space:normal
it seems that Info’s style parser uses white-space:nowrap OR pre whenever a <style> tag is present but no white-space is specified,xnview wrote: Thu Sep 16, 2021 12:25 pm This problem is supposed to be fixed in XnView MP 0.99.0. Please check and confirm the bug fix here.
better to change default to normal OR pre-wrap