ExifTool Forum

ExifTool => Newbies => Topic started by: Anna7878 on August 23, 2012, 01:50:20 PM

Title: Export tags as csv to separate txt file for each image in directory ?
Post by: Anna7878 on August 23, 2012, 01:50:20 PM
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.
Title: Re: Export tags as csv to separate txt file for each image in directory ?
Post by: Phil Harvey on August 23, 2012, 01:56:03 PM
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