News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

How can I add a simple line break to the output?

Started by Shield4, May 11, 2013, 07:54:53 AM

Previous topic - Next topic

Shield4

I have been trying all sorts of ways to get this done.
I run Exiftool by right clicking (created registry entries for file associations) and selecting "exiftool".
This runs, for example,

"C:\Windows\EXIFTOOL.exe" "%1" -FileName -FNumber -ShutterSpeed -ISO -WhiteBalance -ColorTemperature -LightValue -pause

(I stripped out many of the other options I use for simplicity sake).

All I want to do is add a line break between let's say, ISO and White balance in the output text.

So right now my output would look like this:

File Name                       : 5E1A7364.MOV
F Number                        : 2.2
Shutter Speed                   : 1/60
ISO                             : 1234
White Balance                   : Auto
Color Temperature               : 3200
Light Value                     : 4.6
Measured EV                     : 3.13
Lens                            : 35.0 mm
Lens ID                         : Sigma 35mm f/1.4 DG HSM
Focal Length                    : 35.0 mm (35 mm equivalent: 34.0 mm)
Camera Temperature              : 25 C
Metering Mode                   : Center-weighted average
Exposure Program                : Manual
Shooting Mode                   : Manual
Exposure Compensation           : 0
Video Frame Rate                : 29.97
Avg Bitrate                     : 28.6 Mbps
Image Size                      : 1920x1080
Drive Mode                      : Continuous Shooting
Focus Mode                      : Manual Focus (3)
Record Mode                     : Video
Canon Exposure Mode             : Manual
Make                            : Canon
Model                           : Canon EOS 5D Mark III
Audio Sample Rate               : 48000
File Size                       : 1326 MB
Date/Time Original              : 2013:05:11 05:07:01
Compressor Version              : CanonAVC0010/03.00.00/00.00.00
Picture Style                   : Faithful
Sharpness                       : 0
Contrast                        : -4
Saturation                      : -1
Color Tone                      : Normal
-- press any key --

I want it to look like this:

File Name                       : 5E1A7364.MOV
F Number                        : 2.2
Shutter Speed                   : 1/60
ISO                             : 1234

White Balance                   : Auto
Color Temperature               : 3200
Light Value                     : 4.6
Measured EV                     : 3.13

Lens                            : 35.0 mm
Lens ID                         : Sigma 35mm f/1.4 DG HSM
Focal Length                    : 35.0 mm (35 mm equivalent: 34.0 mm)
Camera Temperature              : 25 C

Metering Mode    : et cetera
-- press any key --

*OR preferably something like this*


File Name                       : 5E1A7364.MOV
F Number                        : 2.2
Shutter Speed                   : 1/60
ISO                             : 1234
-------------------------------------
White Balance                   : Auto
Color Temperature               : 3200
Light Value                     : 4.6
Measured EV                     : 3.13
-------------------------------------
Lens                            : 35.0 mm
Lens ID                         : Sigma 35mm f/1.4 DG HSM
Focal Length                    : 35.0 mm (35 mm equivalent: 34.0 mm)
Camera Temperature              : 25 C

I just want it a tad easier to read.  I don't need to write tags, text files, or to a database.  This is just informational for me in a dos box which I close after the pause.

Please help me before I go crazy.
Love,
Shawn

Phil Harvey

Hi Shawn,

The only way to do this is with the -p option.  You can create a format file in whatever format you want.  See the -p option in the application documentation for details.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Shield4

Quote from: Phil Harvey on May 12, 2013, 12:06:04 PM
Hi Shawn,

The only way to do this is with the -p option.  You can create a format file in whatever format you want.  See the -p option in the application documentation for details.

- Phil

But I'm not looking to create a file; merely output the information to screen.  Oh well.

Phil Harvey

Yes,  the -p option allows you to format the screen output to suit your needs.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Alan Clifford

Instead of putting all the tags and formating you want on the command line,

exiftool -p '------$/Shutter speed ${ShutterSpeed}$/iso ${ISO}$/------$/$/White balance  ${WhiteBalance}$/$/' f500_0620.jpg

you put them in a file and put the file name in the command line.

So you create a file called, say testfile.txt and put in that

------$/Shutter speed ${ShutterSpeed}$/iso ${ISO}$/
------$/$/White balance  ${WhiteBalance}$/$/


then you use the command line

exiftool -p testfile.txt f500_0620.jpg

and get the output on your screen

------
Shutter speed 1/60
iso 400

------

White balance  Auto




Shield4


Shield4

Brilliant!  Will need some tweaking but that's amazing!  Love EXIFTOOL!