Remove comment result from txt outup. Help

Started by joe shimamura, March 05, 2016, 05:50:49 AM

Previous topic - Next topic

joe shimamura

Hi everybody, I use this command to have the path and size of my images..

exiftool -S -imagesize -ext JPG . > out.txt

Output:


======== ./1.jpg
ImageSize: 786x772
======== ./2.jpg
ImageSize: 4208x2368
    1 directories scanned
    2 image files read


is there any way to not writing this "1 directories scanned   2 image files read" in the results?

THX :)


ryerman

#1
The -p option provides great flexibility in formatting output.
Luckily for you, the summary you want to avoid is not included when re-directing such formatted output to a file.

Try this:
exiftool -p "========  $Directory/$FileName$/ImageSize:  $imagesize" -ext JPG . > out.txt
Windows 10 Home 64 bit, Exiftool v12.61

joe shimamura

#2
THX ;)

I forgot to tell you.... I use windows 10

exiftool -p "C:\Users\xxxx\Desktop\x\$FileName$/ImageSize:  $imagesize" *.jpg > out.txt


My output

C:\Users\xxxx\Desktop\x\1.jpg
ImageSize:  4208x2368
C:\Users\xxxx\Desktop\x\4.jpg
ImageSize:  786x772


what does this mean ???

Warning: [minor] Unrecognized MakerNotes - 1.jpg
    2 image files read



Phil Harvey

The warning just means that ExifTool doesn't recognize the format of the proprietary makernotes section.  You may ignore minor warnings like this if you wish by adding -m to the command.

- 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 ($).