Fooling Adobe Lightroom into thinking that a Canon S95 RAW comes from a S90

Started by frereroy, September 01, 2010, 12:45:19 PM

Previous topic - Next topic

littlespaceman

Thanks Phil - that's brilliant, works perfectly.

(I was opening Terminal, typing exiftool to open the exif application then trying to run the command in a new command window)

FWIW I also get the black bar on the left side of the image that has been referred to in previous posts on this thread, but I can live with that rather than messing around with DNG conversions etc - what are these camera manufacturers playing at with all these different RAW formats??

One last question for you - when I run the command, the original G12 RAW file becomes visible as a thumbnail, and another file is created called 'IMG_0396-2.CR2_original'

Is this of any importance at all or can I just delete it once the original file is converted?

Cheers Phil

littlespaceman

Hi Phil

Sorry, one last question for you -

Is there a limit to how many subfolders a CR2 file can be in to be converted using Exiftool? I can get things to work perfectly if the files are on my desktop, or if they are within a file on my desktop, but I would like to keep a folder within 'My Pictures' specifically for the CR2 files I wish to convert, to help keep them organised.

This file is located here       /Users/Olly/Pictures/My Photography/Imports/Exiftool Imports

However when I use that location within the command line

exiftool -ext cr2 -canonmodelID="PowerShot G11" ~/Pictures/My Photography/Imports/Exiftool Imports/

it comes up with the following message


File not found: /Users/Olly/Pictures/My
File not found: Photography/Imports/Exiftool
File not found: Imports


Is this because the folder with the files is too many 'layers' down?

Thanks again


Phil Harvey

I wouldn't suggest deleting the _original file unless you already have backups.  Make sure you keep the originals because you will want to use them if you ever update your version of Lightroom.

Quote from: littlespaceman on February 23, 2011, 01:33:10 PM
exiftool -ext cr2 -canonmodelID="PowerShot G11" ~/Pictures/My Photography/Imports/Exiftool Imports/

it comes up with the following message


File not found: /Users/Olly/Pictures/My
File not found: Photography/Imports/Exiftool
File not found: Imports


Is this because the folder with the files is too many 'layers' down?

No.  It is because of the spaces in the directory names.  You need to place quotes around the filename or escape the spaces with backslashes.  (You will notice that the Terminal uses the backslash technique when you drag and drop files like this.)

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


Phil Harvey

I'm glad you sorted it out because I failed to notice that you are using the tilde (~) in your directory name.  This is a special character that is expanded to your home directory name (/Users/Olly) by the shell.  You can NOT put quotes around this character because if you do the shell won't expand it properly.  Here are some examples how you could escape or quote this argument in Mac or Linux shells:

~/Pictures/My\ Photography/Imports/Exiftool\ Imports/

~"/Pictures/My Photography/Imports/Exiftool Imports/"

~/Pictures/'My Photography'/Imports/'Exiftool Imports'/

It sounds like you found a technique that works, but I thought I would mention this in case is comes up for someone else.

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

littlespaceman

Thanks again Phil

Just out of interest, regarding your point about keeping the original of the files in case I upgrade my copy of Lightroom, won't the converted CR2 just work in the new copy of Lightroom anyway? That is to say, why would you need the original copies? The original copies also change their names anyway don't they?

All the best

Phil Harvey

You can use the -restore_original option to restore images from the "_original" backups.

When you get the new version of Lighroom you would either have to re-run exiftool to change the camera name back to G12 again, or restore from the originals.  It is just safer to do the latter.

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

littlespaceman

Wouldn't the new version of LR just accept the converted RAW files as they are?

FWIW, the command I run is the one suggested by JavaJunky, that misses out the '-model="' part, instead just setting 'canonmodelID'.  That way, LR will edit the picture as if it were an G11, but list the camera as an G12 for searching using Metadata, etc. purposes within LR.

Does that mean too that a new version of LR will just read the converted RAW's as being G12 files anyway?

Thanks again!

Phil Harvey

I can't say for sure, but I would guess that the new version of LR would read the edited files as G11.  But if it contains an optimized colour curve for the G12, you might get better results with the original files.

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

goswin

Hello, I am also in need of help:

I am trying to convert S95 CR2 files to S90 ones so that my lightroom can identify them.
All of the files are in a folder called "exif" on my desktop.

I am a mac user and in Terminal I do the following:


exiftool -model="Canon PowerShot S90" -canonmodelID="PowerShot S90"~/Desktop/exif
the reply:No file specified


trying now just with one single file on my desktop:

exiftool -model="Canon PowerShot S90" -canonmodelID="PowerShot S90"~/Desktop/
the reply:No file specified.

What am i doing wrong? I would really benifit from the batch mode as I have plenty of files to have data re-written.

Thanks for your help.
Goswin

Phil Harvey

Hi Goswin,

Quote from: goswin on March 29, 2011, 04:10:17 AM
exiftool -model="Canon PowerShot S90" -canonmodelID="PowerShot S90"~/Desktop/exif

The problem is you need a space before the name of the directory:

exiftool -model="Canon PowerShot S90" -canonmodelID="PowerShot S90" ~/Desktop/exif

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

littlespaceman

Hi Phil

Although I'm able to use my exiftool for the G12 files now with no problems, I am getting a vertical black bar on my pictures as mentioned earlier in this thread. Was there a solution to that in the end?

Many thanks

Phil Harvey

I think the solution was to crop the image to remove the black bar.

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

goswin

 :)
Thank you Phil.
Your help is highly appreciated. I was already getting frustrated and now it works. Perfect.
Goswin