Main Menu

Extract embedded jpeg

Started by rvdkrogt, August 08, 2011, 09:13:39 AM

Previous topic - Next topic

rvdkrogt

Bogdan,

In the menu-optioen Export/Import there is a line 'Extract raw image preview'. This option works only for CR2 and NEF files (Canon en Nikon). I have very often other raw images like Pentax PEF, Nikon NRW and Panasonic RW2. Is it possible to enhance this feature that also the other raw-files can be used for extracting the jpg files from raw ?

René

BogdanH

Hi René,

Of course! Sometime I thing nobody actually uses extracting jpg (and even less, embedding) -so I though, why bother...  :)
I have example of PEF file (from K200D) here. But I don't have NRW.. can you tell me which Nikon camera has NRW?
I will also try to find some Panasonic RW2 file somewhere.. then, we'll see.

Bogdan

Phil Harvey

Hi Bogdan,

The Nikon Coolpix P6000 and P7000 write NRW images.

For raw images which don't contain a JpgFromRaw, the PreviewImage is the next best thing.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

BogdanH

Thanks for info, Phil. I have found P6000 NRW and Panasonic RW2.
Btw. I just discovered, that my "quick view" (you know, my small exif parser) doesn't "recognize" RW2 and thus need some modification... -hopefully I can manage this.  :)

Bogdan

rvdkrogt

Hi Bogdan,

When you want I can send you raw-files of a Nikon P7000 (NRW-format) and also from a Panasonic Lumix G1 or FZ100, both in RW-format.
I saw that you put the extension behind the filename before the extension jpg. It is better to use the original filename with the extension jpg in a extra subdirectory.
It should be nice of also the data in xmp-files will be embedded in the jpg-file.

I need this part for working on our website (http://statues.vanderkrogt.net). I always make the photos in raw and I also use a geotagger. The first thing I do on my computer is geotagging the photos with Geosetter, I have to correct the position so that all photo of the same statue have the same position. After that I will make the jpg-files that I need for my brother so that he can make the database with the statues and positions. I will than develop the photos in Lightroom and after developing I export the photos for the website.
When you want the photos send to you, give me a message in the contactpage of my website.

I hope that you can make this in ExiftoolGui. I now use for the second part BreezeBrowser, this program can make the jpg-files with the location in the jpg, but this program is not accepting the Nikon NRW-files and they don't want to do that.

René

Phil Harvey

Quote from: rvdkrogt on August 09, 2011, 03:11:34 AM
I saw that you put the extension behind the filename before the extension jpg. It is better to use the original filename with the extension jpg in a extra subdirectory.

Hmmm.  This request has come up a few times recently in the ExifToolGUI forum.  It is actually exiftool that creates the "_original" files.  But there are ways to get exiftool to behave differently. 

Bogdan: Maybe an ExifToolGUI option to write the edited images to a new folder, keeping the "original" images untouched?  From the command line, this is done with:

exiftool -o c:\some_new_folder ...

When this is done, the "_original" files are not created, and the edited files go into a separate directory.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

rvdkrogt

It is not the _original that I meant. But the original filename is IMG_0054.cr2 and the extracted JPG has the name IMG_0054_CR2.jpg and that is not necessary, it is enough when it has the name IMG_0054.jpg and that is also different from the original raw name.

Of course it is the best way to put the new jpg-files in a subdirectory (preview) with the question that is already in the program.

René

Phil Harvey

Hi René,

I understand now.  I should have realized this because we were talking about extracted images.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

BogdanH

@Phil: For in GUI jpg extraction, I'm using simple "by the book" ExifTool commands only. I.e. for NEF, there's:
exiftool -b -JpgFromRaw -ext NEF "filename1.nef" -w %f_NEF.jpg
-that is, GUI doesn't interfere inbetween.

@René
The reason, why I decided for "filename_NEF.jpg" is, because there are photographers which shoot raw+jpg. Hence I assume(d), because both images have equal content, photographer might decided to have equal filename for them (and keep both in the same folder). For extracted jpg, "_NEF" in filename is just a notice, that file came from raw file (=not from camera).
However, I could add one more "Should original extension be added in filename?" Yes-No question message box...

Bogdan

Phil Harvey

Quote from: BogdanH on August 09, 2011, 11:34:18 AM
@Phil: For in GUI jpg extraction, I'm using simple "by the book" ExifTool commands only. I.e. for NEF, there's:
exiftool -b -JpgFromRaw -ext NEF "filename1.nef" -w %f_NEF.jpg
-that is, GUI doesn't interfere inbetween.

@Bogdan: Right.  What René wants is a way to use "DIRNAME/%f.jpg" instead of %f_NEF.jpg to write the previews to another directory with the same file name.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

rvdkrogt

@Bogdan

When you shoot raw+jpg it is not necessary to extract the embedded jpg-files because you already have all the jpg-files. I only shoot raw and when I am (out say for a week) I make about 3000 photos and when I should use raw+jpg it takes to much space on my cards.
And of course I also want to geotag the photos and these tags I also need in the jpg-file.

René

BogdanH

I understand. From next GUI version:
-if JPG is extracted to the same folder, then "_CR2", "_NEF", etc. will be added to filename -no changes actually (I must insist, because it's usefull for me).
-if JPG is extracted to subfolder, then filename will be equal to source filename (as you need).

This also solves (makes easier for me, actually) your second wish: having metadata in extracted JPG images.
When extracting, resulting JPG images don't contain metadata. Because both (raw and extracted jpg) files have equal names, you can use menu Import all metadata into selected>JPG file(s) and that's it.
Now, before you ask "wouldn't be possible to copy metadata in single run?" Yes, it would be. But, there are some, who don't like to share metadata (for whatever reason).
I hope, such solution is usefull for you.

Bogdan

Phil Harvey

This sounds like a very good solution to me. :)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).