ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:36 AM

Title: Triying to extract PreviewImage with Orientation to subdir
Post by: Archive on May 12, 2010, 08:54:36 AM
[Originally posted by janc on 2009-06-02 11:33:05-07]

Hi Phil.

I have a dir with nef raw's and I need to extract the PreviewImage to a subdir /jpgs with the orientation tag to be able see them with the right orientation.

I have been triying in many ways but with not success.

The first part works ok

exiftool -fast -b -PreviewImage -w jpgs/%f.jpg DIR/*.nef

but after -execute, copying -Orientation to the previously extracted jpgs/*.jpg is where I am lost.

-execute -overwrite_original -tagsfromfile %d%f.nef -Orientation -w jpgs/%f.jpg DIR/*.nef

Please, can you show me the right way?

My best regards and a lot of thanks for this nice exiftool.
Title: Re: Triying to extract PreviewImage with Orientation to subdir
Post by: Archive on May 12, 2010, 08:54:36 AM
[Originally posted by exiftool on 2009-06-02 11:58:06-07]

The command I gave in
this thread
should work if you add a leading "." to ".nef.jpg" as mentioned,
Title: Re: Triying to extract PreviewImage with Orientation to subdir
Post by: Archive on May 12, 2010, 08:54:36 AM
[Originally posted by janc on 2009-06-02 16:19:21-07]

Hi Phil.

I have got it.

From /home/user/DIRnef to /home/user/DIRnef/DIRjpg

exiftool -b -previewimage -w DIRjpg/%f.jpg -ext nef DIRnef

-execute -overwrite_original -tagsfromfile @ -orientation -srcfile DIRjpg/%f.jpg -ext nef DIRnef

Now I can extract the PreviewImage with orientation from a nef's dir to a jpg subdir /jpg, very nice, indeed.

I check that Nikon D300 nef's contains a previewimage with 570x375 pixels but Canon 50D only has a full size -JpgFromRaw which is also extracted with -b -previewimage, it is ok.

Thanks a lot.

My best regards.
Title: Re: Triying to extract PreviewImage with Orientation to subdir
Post by: Archive on May 12, 2010, 08:54:36 AM
[Originally posted by exiftool on 2009-06-02 17:03:06-07]

I'm glad you got it working.

Yes, there was a bit of inconsistency between my use
of the PreviewImage vs. the JpgFromRaw tag name, and
I agree that I should have named it JpgFromRaw
for the CR2 images.  But this is not worth changing now
because I'm sure that people who wrote scripts for their
CR2 images wouldn't be happy if I broke them. Smiley

- Phil