Thread

Posted on Wed Oct 8 19:49:58 2008 by ace1497
Sony ARW files
Hi I have just discovered this amazing tool and I want to use it to rename and organize my photos into a new folder structure. I have created a batch file that will move the photos into a new dir year\month\day and rename the photos to hms.ext but it only works on my JPG files not on my ARW (Sony RAW). I did a test and renamed a pic1.arw to pic1.cr2 and ran the tool and it moved this file correctly. Does anyone know why it will not work with the ARW files? I know the supported list says they are read only but if I change the extension to a canon raw file it works fine. I can do this as a work around but I would like to not have to rename the files and I am not sure if it will cause any problems down the road. Anyone out there working with Sony ARW files?
Direct Responses: 8996 | Write a response
Posted on Wed Oct 8 20:02:05 2008 by exiftool in response to 8995
Re: Sony ARW files
A few people have been confused about this recently, so I am changing the wording of the documentation slightly, although I think mostly the problem is that people haven't found this in the application documentation:

"Note: If FILE is a directory name, then only file types with recognized extensions are processed when reading, and only writable types are processed when any tag is written. However, the -ext option may be used to force processing of files with any extension."

Please let me know if you still have any questions.

- Phil
Direct Responses: 8999 | Write a response
Posted on Wed Oct 8 22:19:27 2008 by ace1497 in response to 8996
Re: Sony ARW files
First off tahnks for the quick response! I have been trying different command line options and using the -ext switch but I am still having no luck. I have added it at the beginning and at the end before the dir. Could you please use the example below to show me my mistake? I really appreciate your help this will be a huge tool for me. Current working command line:
exiftool -r -d %%Y/%%B/%%A_%%d/%%d%%m%%Y_%%H%%M%%S%%%%-c.%%%%e "-filename<CreateDate" C:\exif\Test
as stated in my original post this cmd line does exactly what I want but not for my .arw files.
Direct Responses: 9000 | Write a response
Posted on Wed Oct 8 22:55:18 2008 by exiftool in response to 8999
Re: Sony ARW files
If you want to move JPG, CR2 and ARW files, add the following arguments anywhere in your command line:

-ext jpg -ext cr2 -ext arw

- Phil
Direct Responses: 9001 | Write a response
Posted on Thu Oct 9 00:15:38 2008 by ace1497 in response to 9000
Re: Sony ARW files
Thanks again for the quick response!! I tried adding -ext arw at the beginning of the command after the -d switch with no success but I was able to get it to work if I use it at the end just before the dir. I thought I would let you know because in your response you stated anywhere.
exiftool -r -d %%Y/%%B/%%d_%%A/%%d%%m%%Y_%%H%%M%%S%%%%-c.%%%%e "-filename<CreateDate" -ext arw C:\e +xif\Test
Anyways thanks for all your help I am REALLY HAPPY that I was able to find this tool it is going to save me hours of work. I will be sharing this with all of my photographer friends. Cheers, Aaron
Direct Responses: 9002 | Write a response
Posted on Thu Oct 9 01:38:39 2008 by exiftool in response to 9001
Re: Sony ARW files
Hi Aaron,

OK, you got me. You can add options to the command line anywhere except in the middle of another option. The -d option takes an argument, which must come immediately after "-d". Similarly, the extension must come immediately after "-ext" (ie. "-ext ARW"). But other than that, the options you are using can be in any order.

Glad it works for you now though.

- Phil
Direct Responses: 9134 | Write a response
Posted on Sun Oct 26 02:34:51 2008 by arthurb2 in response to 9002
Re: Sony ARW files
Phil, are you able to say if you will be adding 'Write' support for Sony ARW files in the future. I am particularly interested in updating IPTC data, should that be possible, as this will help my, somewhat tortuous, workflow. You could make a lot of people happy, but if not, can I once again thank you for such an excellent tool.

Regards,Arthur.

Direct Responses: 9135 | Write a response
Posted on Sun Oct 26 03:37:57 2008 by exiftool in response to 9134
Re: Sony ARW files
Hi Arthur,

Thanks for the suggestion.

I have had a number of requests for ARW write support, and had a couple of false starts trying to implement this. One real problem that I have no control over is that the Sony ARW format isn't consistent from model to model, and in the past changes to the format could have easily caused the files to be corrupted if rewritten. To avoid this, I would have to have a model-specific check and validate each new model as it comes out. Needless to say, this is more work for me. And on top of that, there are a number of other technical reasons why the Sony format is more difficult to write in the first place (not the least of which is the nasty encryption tthey apply to their metadata).

I still hope to implement ARW write support, but it may be a while before I am able to do it. Right now I am too busy to even think about trying to attack this problem again, but it is on my list if I ever find myself with some extra time on my hands.

- Phil
Direct Responses: 9136 | Write a response
Posted on Sun Oct 26 03:50:36 2008 by exiftool in response to 9135
Re: Sony ARW files
I should point out that I said I would never implement PDF write support since it is a very complicated format. (Much more complex than the ARW format.) But I had an epiphany that gave me the insight to be able to see a solution, and with the necessary time available I was able to implement the scheme. And now, the PDF writer stands as one of my greatest recent additions to exiftool, and maybe the nicest piece of code in the whole package so far, which makes it all worthwile.

So I'll never say never again. ;)

- Phil
Direct Responses: 9141 | Write a response
Posted on Mon Oct 27 01:04:47 2008 by arthurb2 in response to 9136
Re: Sony ARW files
Hello Phil - thanks for giving me an explanation of the difficulties in implementing ARW support; you have my sympathy, it does sound really complicated. In fact, it casts doubt on Sony's approach to getting into the serious amateur and semi-professional market: their own software is not so good that they don't need other people making tools for their DSLRs, which are surprisingly good.

Of course, for my part, you could simplify the task by just doing the A100 formats...

Thanks again, I couldn't be without ExifTool - regards, Arthur.

Write a response