Tag for image description in create webpage

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
VWMorten

Tag for image description in create webpage

Post by VWMorten »

I need to assign some text to my images, and then later on be able to create a simple webpage comtaining thumpnails of the images, the filename and the text for each image.

I have tried to rightclick on the image in the imagebrowser, choose "description" and adding the text here wich seems perfekt, but I cannot get the text out under the thumpnail when I create the webpage.

I have added these tags, but every one of them comes out empty, even when there is text assigned to the image in the "Description"-field:
<Comment>
<User Comment>
<IPTC:Caption>
<Image Description>
<Description>

What is the correct tag? (is there an overview of all the tags somewhere?)

Thanks for any help..

btw: I use XnView 1.74

VWMorten
Copenhagen
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

A trick

Post by Clo »

:) Hello !
- It's possible to add a hint-text in the *.HTML file itself. For each thumbnail, you can add a TITLE="my_text" attribute, as well in the <A HREF=… as in the <IMG SRC="path/image.xxx"> tag.
You can even get a line wrapping if the text is pretty long, for example:

Code: Select all

TITLE="This is a photo of my cat& #10;& #13;when he fell in the pool at my neighbour's&# 10;&# 13;attempting to catch the fishes!"
which'll look as:
This is a photo of my cat
when he fell in the pool at my neighbour's
attempting to catch the fishes!


- Note : do not write the extra-spaces in the LF and CR coded characters #10 and #13; I'm bound to add spaces here, or else they work as they would, and are invisible !
Even Notepad does the trick to add such a text…

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
VWMorten

Problem solved, new problem found...

Post by VWMorten »

Hi Thanks for the reply..

It is not the HTML-tags that I was looking for, but the "tags" that you can put into the "information displayed"-window in the "webpage create" dialog box.

Anyway i found it: it was the "<annotation>"-tag I was looking for, it puts the information that i have assigned to each image as description, right under the image in the resulting webpage - very nice..

My next problem is that when I move the images to another folder, the description gets erased..?? - is there any solution for that..??

VWMorten
Copenhagen
Post Reply