Export tags as csv to separate txt file for each image in directory ?

Started by Anna7878, August 23, 2012, 01:50:20 PM

Previous topic - Next topic

Anna7878

Hi,

I need to export few tags from each image in directory and create separate txt file with csv data. For example for Image-1.jpg  - Image-1.txt will be created with tags ImageWidth,ImageHeight,FileSize

Image-1.txt :

2435,1597,2.5 MB

for Image-2.jpg Image-2.txt  ... and so on.

1) When I run -csv -ImageWidth -ImageHeight -FileSize  I get also SourceFile tag which adds image path how to exclude it ?
2) How to write such tags into separate txt file for each image in directory ?
3) I downloaded ExifGui and it lovely exports tags from each image to separate file but it dumps all exif and I need just few exif tags as csv - is it possible to achieve in ExifGui ?
4) Is there a tag which contains image resolution like in megapixels ?

Thank you.

Phil Harvey

Hi Anna,

The -csv option is used to output a single .csv file, which you don't want.

Instead, use the -p option to format the output and the -w option to write an output text file for each image.

I'm not sure if this is possible with ExifToolGUI.

There is no tag which calculates the megapixels.  The closest is ImageSize which gives width x height.

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