[Originally posted by igor77 on 2009-02-27 12:09:30-08]Hi, Phil,
I'm sorry for disturbing yor with question which seems stupid, but I can't find the answer myself for some days and have to ask your help.
I need to check value of one tag from CR2 file (let it be CanonVDR:rotation tag) and according to this value I need to change another tag in the same CR2 file (EXIF:orientation) and in the JPG (EXIF:orientation too) with the same file name.
For instance, I can do first step:
exiftool -s -n -if "$CanonVRD:rotation eq 1" -exif:orientation=6 *.cr2
But the same time I need put "8" to the exif:orientation tag of file %%f.jpg.
I've tried many different variants, but none works :-(
This may be two command lines - one as I have mentioned above, and the second with "if" related to CR2 and operation with jpg with the same name.
Thanks in advance,
Igor
[Originally posted by exiftool on 2009-02-27 13:05:47-08]
Hi Igor,
This is not a stupid question. What you want to do here is
very advanced. So advanced in fact that exiftool does not
have this ability. Currently, the -if statement always
applies to tags in the source image, which is the same image that
will be edited when writing tags.
The only solution I see to this is to write a batch file to do the
work for you. In Unix, this would be very simple to do, but
if you are running Windows I can't be much help.
- Phil
[Originally posted by igor77 on 2009-03-02 05:32:39-08]
Hi, Phil,
Thank you for your answer.
Yes, I use Windows :-) I'll try to write a batch. The main thing is I know what I want, and I only have to translate it into machine language :-)
Igor