Hi. Being new to XnView I would appreciate some help in extracting parts of the metadata embedded in jpg-files, adding them into a banner underneath the picture.
I need to add data like "year when picture taken", "image name without extension", "location", "city", "country", "keywords".
In order to keep this easy to read the separate items should be printed out with 1-2 spaces in between.
Displaying metadata info below images
Moderators: helmut, XnTriq, xnview
Re: Extracting metadata info
A quick answer :
- Select photos
- Tools, Batch convert ....
- First, choose an output folder (output tab) with filename = {Filename} ( use a new output folder for some tests !)
Then, go to "actions " tab where you will create a blank new zone at the bottom of photos :
- Add action : Image, Canvas resize . Presets = Custom, Mode = normal, set a mark on "relative" and "keep ratio", Choose Height = 100 pixels, position = top. (That means add 100 pix height and move image to the top of the new area.) Background color is white.
-Add action : Image, Text. Position : bottom left. You can add margins about 10 pixels.
-Text tab : Size = 16, Color = black (not white ! )
- At the top of Text area, type "hello" to check colors, size, font, margins, etc ... and then delete hello.
- On the right side of this text area, click the triangle arrow , to choose fields that you want to add ...
- You can separate fields with spaces, new lines, text, ... in the text area
- Convert
- Select photos
- Tools, Batch convert ....
- First, choose an output folder (output tab) with filename = {Filename} ( use a new output folder for some tests !)
Then, go to "actions " tab where you will create a blank new zone at the bottom of photos :
- Add action : Image, Canvas resize . Presets = Custom, Mode = normal, set a mark on "relative" and "keep ratio", Choose Height = 100 pixels, position = top. (That means add 100 pix height and move image to the top of the new area.) Background color is white.
-Add action : Image, Text. Position : bottom left. You can add margins about 10 pixels.
-Text tab : Size = 16, Color = black (not white ! )
- At the top of Text area, type "hello" to check colors, size, font, margins, etc ... and then delete hello.
- On the right side of this text area, click the triangle arrow , to choose fields that you want to add ...
- You can separate fields with spaces, new lines, text, ... in the text area
- Convert
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Re: Extracting metadata info
erikmt wrote: Fri Feb 05, 2021 3:08 pm I would appreciate some help in extracting parts of the metadata embedded in jpg-files, adding them into a banner underneath the picture.
I need to add data like "year when picture taken", "image name without extension", "location", "city", "country", "keywords".
In order to keep this easy to read the separate items should be printed out with 1-2 spaces in between.
You will need to use batch convert, I think, and the standalone XnConvert software may possibly be overall easier to use; it can be used for a single image if required.
Your basic method will probably be to use a 'Canvas resize' action to add new canvas of a chosen colour below the image, then a 'Text' action to write the parameters you need on the new canvas. In the 'Text' action window there is a horizontal arrow to the right which opens a drop-down list of the many available parameters that can be written.
I'm not sure whether all the parameters you need are available or whether the spacing you envisage is supported, you can see that in the Preview window. Always test with copies of files!
Edit:
I see michel038 above gives generally similar advice, this came up recently in a French thread.
