Two questions regarding output

Started by Archive, May 12, 2010, 08:54:11 AM

Previous topic - Next topic

Archive

[Originally posted by bogdan on 2007-10-13 10:32:03-07]

Hi Phil,

In short, two questions:

1.Is it possible that tag values are displayed in the same sequence as tags parameters? For example:

exiftool -exif:iso -exif:fnumber image.jpg

-would display:

ISO: 200 -first, because it's first parameter

FNumber: 5.6

2.Is it possible to "format" output for (example) "-list -exif:all" command? What I'm looking for, is each tag name in separate line.

Both questions are not essential, but I'd like to know :-)

Thanks in forward,

Bogdan

Archive

[Originally posted by exiftool on 2007-10-13 12:47:34-07]

Hi Bogdan,

Code:
   1. Is it possible that tag values are displayed in the same sequence as
    tags parameters?

Yes.  They are. Smiley

Code:
   2. Is it possible to "format" output for (example) "-list -exif:all" command?

Did you try the -l (lowercase "L") option?

- Phil

Archive

[Originally posted by bogdan on 2007-10-13 14:13:55-07]

Hi Phil,

1st question: thanks for (short) answer -I'll dig into that :-)

2nd question: maybe I wasn't clear... I'm looking after:

exiftool -list -exif:all

-where each output line should contain only one tag. I've tried with:

exiftool -list -l -exif:all

-which gives the same as if lowercase "L" isn't used.

Greetings,

Bogdan

Archive

[Originally posted by exiftool on 2007-10-13 19:30:17-07]

Ah I see now.  I misunderstood your second question.

Sorry, there are no options that control the output of -list.
The -l option puts the tag names on a separate line only
when extracting information.

- Phil

Archive

[Originally posted by bogdan on 2007-10-14 07:21:55-07]

Sorry to bother you... I'm back again with my 1st question :-(

The only option I could find was "-p". So, for example:

exiftool -p "$ISO, $Model" name.jpg

-gives the same output sequence as tags are specified.

The only problem (for me) is, that output doesn't (can't) contain tag names, unless I specify them:

exiftool -p "ISO:$ISO, Model:$Model" name.jpg

-and get:

ISO:200, Model:Canon EOS 350D DIGITAL

Not very practical (in my case), but I could implement that. Now, how to force, so each output tag is listed in separate line (like in default -S output):

ISO:200

Model:Canon EOS 350D DIGITAL

Is that possible? If yes,... how about small hint this time? :-)

Greetings,

Bogdan

Archive

[Originally posted by bogdan on 2007-10-14 11:03:15-07]

Actually it seems, that exiftool outputs tags (per default) in the same sequence as they are specified:

exiftool -S -exif:ISO -exif:Make image.jpg

-gives:

ISO:200

Make:Canon

Then, how come I had troubles? Because I always used either "-g0", "-g1" or "-g3" output option. And I assume, if "-g" option is used, then tag sequence is out of order.

Now, if that's expected behaviour, then simple "Yes/No" would do :-)

Bogdan

Archive

[Originally posted by exiftool on 2007-10-14 15:29:27-07]

Ah.  I see your problem now.  Yes, the tags are re-sorted
into groups when the -g option is used.  This changes the
default behaviour which is to write the tags in the order
they are given.

If you want the group names without sorting the output by
group, use -G instead of -g.

- Phil