Help requested to reverse exiftool -b -JpgFromRaw -w .JPG -ext CRW .

Started by Archive, May 12, 2010, 08:53:58 AM

Previous topic - Next topic

Archive

[Originally posted by culture on 2006-11-17 20:04:25-08]

Hello,  

I'm hopeful that the error or my ways can be pointed out pretty easily.  I'm trying to place a   directory's worth of JPEGs with the same name as their CRW back into the CRW.

I'm on Windows so the command I'm having problems with is:

Code:
exiftool.pl "-jpgfromraw<=%f.jpg" -ext CRW .

any help correcting this would be most appreciated.

Neil...

Archive

[Originally posted by exiftool on 2006-11-17 21:22:05-08]

Hi Neil,

Unfortunately the '%f' syntax currently
only works to specify a filename with the -o, -w and -tagsFromFile
options.  But your idea is a good one, so I will add this ability to
ExifTool 6.57.  It was a relatively simple change so I've done it already
and uploaded a 6.57 pre-release
here.
I tried it quickly and it seems to work OK, but I don't have
time to test it thoroughly now.  If you want to test it out, let
me know how it works for you.  Otherwise, you can wait until
the official 6.57 release after I get a chance to test it more thoroughly
myself.

- Phil

Archive

[Originally posted by culture on 2006-11-18 08:51:35-08]

Hi Phil,

What can I say (other than Thank you!).  Although I can't claim to have tested it thoroughly,
%d and %f appear to work properly on both the jpgfromraw and thumbnailimage.  I also did the following test which was not so successful.

Code:
exiftool.pl "-usercomment=%d%f.%e" -ext CRW .

I was expecting that it would have the same result as

Code:
exiftool.pl "-usercomment<filename" -ext crw .

but the comment appeared as "%d%f.%e".

The code as it stands allows me to complete the section of work that I am doing so thanks once again for the code and the speed of delivery.

Cheers Neil...

Archive

[Originally posted by exiftool on 2006-11-18 11:49:30-08]

Hi Neil,

Thanks for helping with testing.  The %d, %f, %e codes can
only be used where exiftool expects a filename, so they
only work with "<=" and not "=", "+=" or "-=".  The other
assignments expect a tag value, not a filename.  I will
attempt to clarify this a bit in the documentation for the
official release.  However, there is a way to do this using
the redirection feature by redirecting the Directory and
Filename tags to the Comment.  ie)

Code:
exiftool "-usercomment<$filename" -ext CRW .

You can also put in the $directory tag in there too,
except that it is not defined for files in the current directory,
so it won't work with this specific command.

- Phil

Archive

[Originally posted by exiftool on 2006-11-19 14:35:02-08]

I've released 6.57 officially now.  I added documentation for this new
feature and fixed one problem caused this tag not to be written when
this feature is combined with -tagsfromfile in the same command.

But it looks good now, so I have released it officially.

-Phil