I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-02-27 12:09:30-08 by igor77
How to combine IF option and operations with 2 different files
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
Direct Responses: 10086 | Write a response