Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/content/60/9972860/html/smf/Sources/Load.php(225) : runtime-created function on line 3

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/content/60/9972860/html/smf/Sources/Load.php(225) : runtime-created function on line 3
Print Page - Writing star ratings to NEFs

The DAM Forum

Software Discussions => Media Pro & Expression Media => Topic started by: cdubea on February 26, 2009, 12:06:23 PM



Title: Writing star ratings to NEFs
Post by: cdubea on February 26, 2009, 12:06:23 PM
It's your friendly pain again.  Thank goodness for this forum!

I've just realized that XM will only write star ratings to XMP files but Nikon products (CaptureNX2 and ViewNX) don't read XMP files   :<

Has some clever soul crafted a script to work around this issue?  Would definitely prefer something which is useable on a Windows box.

thanks all

chris


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on February 26, 2009, 12:32:32 PM
I've just realized that XM will only write star ratings to XMP files but Nikon products (CaptureNX2 and ViewNX) don't read XMP files.

xMedia will write XMP files if you choose "extract metadata".  However, if you choose "synchronize to original files", then xMedia does modify the NEF file itself.

Has some clever soul crafted a script to work around this issue?  Would definitely prefer something which is useable on a Windows box.

This past weekend I posted an outline of an algorithm for using the DOM (MSXML6) to read and write XMP files.  I used this to allow xMedia and Bridge to communicate.  But you're asking something a little different.  I think you want to use the synchronize feature of xMedia, not the extract metadata feature (but correct me if I'm wrong).

http://thedambook.com/smf/index.php?topic=3914.0

-Matt


Title: Re: Writing star ratings to NEFs
Post by: cdubea on February 26, 2009, 12:39:36 PM
I've just realized that XM will only write star ratings to XMP files but Nikon products (CaptureNX2 and ViewNX) don't read XMP files.

xMedia will write XMP files if you choose "extract metadata".  However, if you choose "synchronize to original files", then xMedia does modify the NEF file itself.


This past weekend I posted an outline of an algorithm for using the DOM (MSXML6) to read and write XMP files.  I used this to allow xMedia and Bridge to communicate.  But you're asking something a little different.  I think you want to use the synchronize feature of xMedia, not the extract metadata feature (but correct me if I'm wrong).

http://thedambook.com/smf/index.php?topic=3914.0

-Matt


xMedia won't write ratings.  This has been confirmed over on the MS forum.  All I'm really looking for at this juncture is the ability to get my star ratings written into my NEFs through xMedia via a script as opposed to another application like Downloader Pro, Photo Mechanics, etc.  If I buy another piece of photo software my wife's head is gonna explode.....

I suspect with a modicum of code and exiftool, I could be there.  But I'm not yet   ;>

thanks,


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on February 26, 2009, 12:51:13 PM
xMedia won't write ratings.  This has been confirmed over on the MS forum.  All I'm really looking for at this juncture is the ability to get my star ratings written into my NEFs through xMedia via a script as opposed to another application like Downloader Pro, Photo Mechanics, etc.

OK, I understand now.  This should be possible using the NEF SDK.  I have that SDK (you have to write to Nikon and ask for it), but I haven't actually used it yet.  (I originally needed it to read DataTimeDigitized and SubSecTime, but the Microsoft WIC SDK was released around the same time and so it was faster to do it that way.)

You might be able to use the WIC SDK to write ratings into the NEF files, but I haven't tried it.  (I don't like to touch my NEF files, so my workflow is based around XMP.  Hence I have no already-written script that does exactly what you need.)

-Matt


Title: Re: Writing star ratings to NEFs
Post by: cdubea on February 26, 2009, 12:57:18 PM

OK, I understand now.  This should be possible using the NEF SDK.  I have that SDK (you have to write to Nikon and ask for it), but I haven't actually used it yet.  (I originally needed it to read DataTimeDigitized and SubSecTime, but the Microsoft WIC SDK was released around the same time and so it was faster to do it that way.)

You might be able to use the WIC SDK to write ratings into the NEF files, but I haven't tried it.  (I don't like to touch my NEF files, so my workflow is based around XMP.  Hence I have no already-written script that does exactly what you need.)

-Matt


I would be perfectly happy with XMP sidecars, if Nikon's products recognized them.  I've got an old copy of the SDK somewhere, but I think for what I want, I'm gonna focus on exiftool.  I've used it before and it's very robust.

thanks


Title: Re: Writing star ratings to NEFs
Post by: peterkrogh on February 26, 2009, 04:09:13 PM
Chris,
I think this is because Nikon is not recognizing XMP data in the file that is being written by EM. (EM uses the Nikon code to write the data).

You could hack it and select all images with one star and write the keyword 1Star into the files.  Nikon software should see that.
Peter


Title: Re: Writing star ratings to NEFs
Post by: roberte on February 26, 2009, 07:56:06 PM
Hi Chris,

Nikon's recent models do use XMP but Nikon have yet to release an SDK or WIC for other vendors to access it. I'd use Color Labels that map to IPTC Urgency in NEFs or consider DNG. Of course that means saying goodbye to Nikon Capture NX.

-- Robert.


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on February 28, 2009, 12:57:05 PM
All I'm really looking for at this juncture is the ability to get my star ratings written into my NEFs through xMedia via a script as opposed to another application like Downloader Pro, Photo Mechanics, etc.

I was able to successfully use the WIC SDK to read the xmp rating.  The metadata path is:

"/ifd/{ushort=700}/xmp:Rating"

However, I tried using the fast encoder/fast writer to write a new rating value back into the file, and the Commit() operation failed with error WINCODEC_ERR_UNSUPPORTEDOPERATION.  The API docs are telling me that:

"If Commit fails for any reason, you will need to re-encode the image to ensure the new metadata is added to the image."

That makes the solution a little more difficult: I think it means creating a copy of original file with the modified xmp, throwing away the original file, and then renaming the copy to match the original.  (But I could be wrong.)  Perhaps there's a solution that is not based on the fast encoder/fast writer method.

-Matt




Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on February 28, 2009, 04:50:48 PM
Perhaps there's a solution that is not based on the fast encoder/fast writer method.

I finally got this to work using the XMP Toolkit SDK.  (Sadly, I had to give up using the WIC SDK, because I'm at the mercy of Nikon's WIC plugin, and that's too many variables for me.)  I memory-mapped the file and scanned for the XMP packet header, and then used the XMP Toolkit to read and then write the rating, and then serialized that back to the stream.

At some point I should probably write a proper NEF file handler and incorporate that into the toolkit, but this method works if all you want to do is manipulate the ratings value.

For now it's just a command-line app, which you can call from a script.  When time permits I'll fold this logic into my COM wrapper (which you can already call from a script).

Let me know if you want any of the code or the binary.

I haven't actually written an xMedia script (yet), but that's relatively simple to do.  If you need help with that part let me know.

-Matt




Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 01, 2009, 09:31:22 PM
For now it's just a command-line app, which you can call from a script.  When time permits I'll fold this logic into my COM wrapper (which you can already call from a script).

I created a COM server that you can call from a script, so you can say:

Option Explicit
Dim objNEF, intRating

Set objNEF = CreateObject("MJH.NEFHelp")

objNEF.SetRating "XYZ.NEF", 5    'set rating

intRating = objNEF.GetRating("XYZ.NEF")

For now I can only manipulate an XMP packet that is already present in the NEF file.  You'll have to run ViewNX (or CaptureNX, etc) to create the XMP packet, and then use xMedia to read/write the rating value.

-Matt



Title: Re: Writing star ratings to NEFs
Post by: cdubea on March 06, 2009, 07:16:45 PM

I created a COM server that you can call from a script, so you can say:

Option Explicit
Dim objNEF, intRating

Set objNEF = CreateObject("MJH.NEFHelp")

objNEF.SetRating "XYZ.NEF", 5    'set rating

intRating = objNEF.GetRating("XYZ.NEF")

For now I can only manipulate an XMP packet that is already present in the NEF file.  You'll have to run ViewNX (or CaptureNX, etc) to create the XMP packet, and then use xMedia to read/write the rating value.

-Matt



Hi Matt,

This sounds very cool.  Can I get a copy to toy with?

Thanks



Title: Re: Writing star ratings to NEFs
Post by: peterkrogh on March 07, 2009, 06:14:35 AM
Just a word here of caution for those considering hacking raw files.  It's possible that you might do something that could break the file, or make some software refuse to open the file in the future. As I recall, PhotoMechanic added XMP notation to proprietary raw at some point, and that made Capture 1 either refuse to open the files, or refuse to display metadata in the files.

I'd be careful about doing this.  Make sure you have two backups.

Peter


Title: Re: Writing star ratings to NEFs
Post by: BobSmith on March 07, 2009, 06:38:54 AM
Yep...  I went through exactly that with Kodak raw files at some point a few years ago.  Iview wrote some relatively benign piece of metadata back to the raw file in a way that rendered the files unrecognizable by Kodak software.  ACR and most other third party processors could still read the files and metadata but Kodak's wouldn't.  To their credit, the Iview team quickly rectified the problem but it was too late for a few key raw files in my collection.  Kodak shooters relied on Kodak software For the same reasons that some Nikon shooters are ardent supporters of Nikon software.  The Kodak software could render files and access features in a way that third party options couldn't.  Completely losing access to Kodak software was a serious loss.  If you go down this path, make sure you keep an untouched version of the original file.

Bob Smith


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 08, 2009, 09:01:42 AM
Just a word here of caution for those considering hacking raw files.  It's possible that you might do something that could break the file, or make some software refuse to open the file in the future.

Yes, and that's why I said the tool I wrote will only manipulate XMP packets already embedded in the NEF file.  (It's actually much more conservative than that: it will only read and write the xmp:Rating field.)  As it stands now, the only tool that will embed an XMP packet in a NEF file is ViewNX or CaptureNX.  Once the XMP packet has been embedded, then it's trivial to use the Adobe XMP Toolkit to both find the packet, manipulate the contents of the packet.

At some point I'll probably write something to embed the XMP packet in a the NEF file, but I haven't done that yet.  To do that, I would either have to use the XMPFiles part of the Adobe XMP Toolkit SDK, and force it to treat the NEF as a TIFF, or just write my own custom NEF file handler.  The other alternative is to use the Nikon NEF SDK (which I have, but haven't investigated yet) to embed the XMP packet.

Of course, if you don't want to manipulate NEF files, then you can manipulate the contents of XMP side-car files, either using the Adobe XMP Toolkit (low-level and harder - requires a COM wrapper), or using the DOM (high-level and much easier -- see my others posts in this forum for how to do this).  In fact this is the technique I use myself.  When I move the NEF into my archive, I compute an MD5 and enter that as a custom field of the xMedia catalog.  The NEF itself is never changed.


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 08, 2009, 09:05:26 AM
This sounds very cool.  Can I get a copy to toy with?

Yes, I'll get it to you this afternoon.  I'm traveling this weekend but I'll contact you later today.

-Matt


Title: Re: Writing star ratings to NEFs
Post by: peterkrogh on March 08, 2009, 10:36:35 AM
Matthew,
Thanks for clearing that up.  Sounds like a reasonable practice.
Peter


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 09, 2009, 08:50:46 PM
This sounds very cool.  Can I get a copy to toy with?

I emailed you a zip file containg the COM server (nefhelp.dll) last night.  Let me know if you received it.

-Matt


Title: Re: Writing star ratings to NEFs
Post by: peterkrogh on March 09, 2009, 09:47:34 PM
I did not.
And I don't think I'd have time to look at it. I hit a completion milestone turning in the book, and I'll be totally slammed for the next couple weeks getting the layout edits done.
Peter


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 09, 2009, 10:04:19 PM
And I don't think I'd have time to look at it. I hit a completion milestone turning in the book, and I'll be totally slammed for the next couple weeks getting the layout edits done.

Oh, sorry -- I was answering Chris's post.  I keep forgetting that all posts go to the end of the queue. Too used to threaded email readers, I guess...

-Matt

P.S. New ed. for The DAM Book?  That would be great -- I read the 1st ed. three times and learned much from it.


Title: Re: Writing star ratings to NEFs
Post by: peterkrogh on March 10, 2009, 06:11:12 AM
Matt,
Yes, a total rewrite - 200 additional pages - been a long 8 months...
Peter


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 12, 2009, 12:58:38 PM
At some point I should probably write a proper NEF file handler and incorporate that into the toolkit, but this method works if all you want to do is manipulate the ratings value.

An NEF file is just a TIFF file.  The XMP Toolkit SDK can read and write XMP packets in TIFF files, so feature I wanted to test was to attempt to use the built-in TIFF file handler to manipulate the XMP packet embedded in a NEF file.

Out-of-the-box, the XMP Toolkit SDK does not read NEF files, because there is a test in XMPFiles to explicitly disable support for known camera raw files.  So I simply disabled that check in the sources, and now I'm able to read and write XMP packets in NEF files too, using just the TIFF handler in the XMP Toolkit SDK.  Importantly, I'm now able to expand a NEF file to add an XMP packat that didn't already exist (which, among other things, is where the rating is stored), which removes the limitation of the COM wrapper I wrote for manipulating embedded rating values.

If anyone is interested in knowing what I changed in the XMP Toolkit SDK, let me know and I'll send you a patch file.  If anyone wants the COM wrapper object for reading and writing XMP packets in NEF files, drop me a line and I'll send it to you.

-Matt


Title: Re: Writing star ratings to NEFs
Post by: peterkrogh on March 13, 2009, 09:28:28 AM
Matt,
You might be interested in this.
We've just tracked down an issue in Photoshop where a a blank XMP tag - IPTC Date Created - will stop Photoshop from parsing all metadata in a file.

Just a caution that stuff that should not cause problems sometimes does...
Peter


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 13, 2009, 12:27:23 PM
We've just tracked down an issue in Photoshop where a a blank XMP tag - IPTC Date Created - will stop Photoshop from parsing all metadata in a file.

Thanks for the heads-up.  I assume Photoshop is using some version of the XMP Toolkit, so that probably means there's a bug in there somewhere.  (There was probably a parse error, and the toolkit simply threw an exception.)

I did modify my copy of the toolkit to allow NEF files to be handled as TIFF files.  This worked, but there were a couple of issues.  When the NEF file didn't have an embedded XMP packet, the file handler would report that it did found an XMP packet (but with "unknown" offset and length).  I think that's because "getting XMP" in the XMP toolkit is interpreted more broadly than getting just the (raw) XMP packet; really it means "get me all of the metdata," but that's not what I want.  (Of course, I could be interpreting the return value incorrectly -- perhaps the intended mechanism is that if the value of the raw XMP returned has zero-length, then that's the toolkit's way of saying that there's now raw XMP.)

The other issue is that the TIFF file handler attempts to "reconcile" metadata in different parts of the file so it's all the same.  This is normally a good thing, but unfortunately I couldn't get the TIFF handler to just write the XMP packet I specified; it would write a /tiff:NativeDigest and an /exif:NativeDigest too.  This is harmless, but my goal was to attempt match the behavior of Nikon ViewNX.

So I ended up making a custom NEF file handler based on sources copied directly from the TIFF handler.  What the NEF file handler does differently from the TIFF file handler is to not reconcile any metadata.  It simply reads any XMP there, changes the xmp:Rating, and then writes it back out.  This appears to be working fine.

It's too bad Nikon and Adobe had to get into a pissing contest about NEF intellectual property, since the ultimate losers are us poor photographers.  Nikon wants to keep their NEF file format a secret, but then Adobe retaliated by deliberately crippling the XMP Toolkit SDK to not support NEF (or any other known camera raw file) files.  But to add an xmp:Rating to the NEF file (as ViewNX does), I can't use the NEF SDK because that API doesn't support file expansion (or indeed any other form of XMP manipluation).  So that means me, and every other developer of metadata-handling apps (including Adobe!), has to write our own code for TIFF file expansion.  This is really, really dumb.

It would be helpful if Nikon would make peace with Adobe and open the spec for NEF files, but control the standard the same way Adobe controls the TIFF and FLV standards (both of which are now fully open).  Then Adobe could officially incorporate NEF support into the XMP Toolkit SDK.  As it stands now, every tool author must make the same custom hacks to the XMP Toolkit.  This doesn't help Nikon or anyone else. 

Just look at all the headaches people have been having attempting to use EM to sync annotations back to NEF files.  The iView guys got it wrong, and now Microsoft has it wrong -- but what did Nikon expect if neither the XMP Toolkit SDK nor the NEF SDK supports XMP manipulation of NEF flies?  Without support from a standard API, then everyone is going to do it a little differently, and probably get it wrong anyway.

My advice to Nikon is to open the NEF file format, and then lobby Adobe to add NEF support to the XMP Toolkit SDK.    If nothing else, Nkon should customize the XMP Toolkit API to add NEF support and then bundle that with their NEF SDK.  This will allow developers (like me) to get it right when writing metadata authoring tools, which will enable users (like the OP) to have a seemless workflow experience.

To Adobe's credit they created the XMP standard, and provided a nice, easy-to-use API to manipulate XMP.  In principle this should be enough to create the infrastructure necessary to ensure all the metadata gets carried along correctly by all tools in the chain.  But in practice this depends on vendors being willing to allow Adobe's API to be used with their (proprietary) camera raw files -- but not all vendors are willing to do that.

Memo to Nikon: this is not helping you, or your customers.

-Matt



Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 15, 2009, 01:22:11 PM
So I ended up making a custom NEF file handler based on sources copied directly from the TIFF handler.  What the NEF file handler does differently from the TIFF file handler is to not reconcile any metadata.  It simply reads any XMP there, changes the xmp:Rating, and then writes it back out.  This appears to be working fine.

I have uploaded the latest version of the NEF Help tool to my website:

http://home.earthlink.net/~matthewjheaney/nefhelp-1.0.1.0.zip

This allows you to read and write the xmp:Rating value (expanding the NEF file, if necessary). 

There are also methods for reading all of the metadata in the file, or just the embedded XMP packet.  Having the metadata in XML from allows you to use the DOM to parse it -- so this essentially duplicates the features available in exiftool.

The README.TXT file explains how to use the API from a script.

-Matt


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 16, 2009, 06:44:27 PM
I have uploaded the latest version of the NEF Help tool to my website:

I have just uploaded a minor update.  This adds a method to dump just the XMP packet to standard output:

http://home.earthlink.net/~matthewjheaney/damtools/nefhelp-1.0.2.0.zip

-Matt


Title: Re: Writing star ratings to NEFs
Post by: cdubea on March 19, 2009, 05:27:46 PM
Matt,

Thank you for all your work.  Yes I got the files and will have to hack up an XM script to write the star ratings to the NEFs.


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 19, 2009, 06:15:30 PM
Thank you for all your work.  Yes I got the files and will have to hack up an XM script to write the star ratings to the NEFs.

OK, let me know how you make out.

As you've already found out, xMedia writes the classic IIM metadata to the image resource block when you sync annotations back to the file (that's why the ratings didn't get sync'd -- because the rating value is only stored in the XMP).  What I'd like to be able to do is sync the newer, IPTC core metadata to the XMP block -- and not write the image resource block (IIM metadata) at all.  For that reason, I'll have a new release soon that will allow you to sync all of the embedded XMP (not just the xmp:Rating value).

Eventually, I'd also like to provide a COM wrapper to the XMP Toolkit SDK, so you won't have to depend on what I happen to provide in NEFHelp and friends, or what xMedia happens to provide, or indeed what any DAM happens to provide.  Most DAM apps or browsers use some version of the XMP Toolkit to write metadata, so there's no real reason you shouldn't be able to too.

I have some other DAM tools that you might find useful that I'm preparing for upload to my website; I'll post again when they're ready.

-Matt


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 22, 2009, 10:41:58 PM
I have some other DAM tools that you might find useful that I'm preparing for upload to my website; I'll post again when they're ready.

I just posted v1.0.3 of the NEF Help tool.  There were no interface changes, but some error handling was improved.  Also, the zip file now includes a couple of Expression Media scripts that use the NEF Help object to read and write ratings from the image files.

The scripts use a progress dialog to monitor execution of the script, and to allow the user to cancel the script.  The progress dialog object is pretty much necessary when using Expression Media, because that application does not pump Windows messages during long-running scripts, which pretty much locks up the computer.  Version 1.0.1 of the progress dialog tool is available at my website.

http://home.earthlink.net/~matthewjheaney/damtools/

-Matt

keywords: XMP, NEF, rating, xmp:Rating, Expression Media



Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on March 25, 2009, 09:49:45 PM
I just uploaded the latest version of my NEF Helper tool (v1.0.4) and Expression Media scripts package (v1.0.1), which now support synchronization of label values between Expression Media other apps such as Nikon CaptureNX2 and ViewNX.

To provide label support in the Expression Media script, a small configuration step is necessary to specify the mapping function from labels to integers; the README has the details.

http://home.earthlink.net/~matthewjheaney/damtools/index.html

-Matt

keywords: NEF, XMP, metadata, rating, xmp:Rating, xap:Rating, label, xmp:Label, xap:Label, synchronization


Title: Re: Writing star ratings to NEFs
Post by: matthewjheaney on April 08, 2009, 12:43:13 PM
I have just released v1.1 of the NEF Helper tool.  It now supports reading and writing the photoshop:Urgency field.  This means you can now fully synchronize labels (and ratings) between Expression Media (or any scriptable DAM tool that runs on Windows) and Nikon tools (ViewNX, Capture NX2, etc).  It works for NEF files, JPG files, and for any other file type supported by the Adobe XMP Toolkit.

http://home.earthlink.net/~matthewjheaney/damtools/index.html


You can also use it to dump the XMP packet.  You can get the XMP data and print it in its serialized form, as raw XML:

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
            xmlns:xmp="http://ns.adobe.com/xap/1.0/">
         <xmp:Rating>4</xmp:Rating>
         <xmp:Label>mellow yellow</xmp:Label>
      </rdf:Description>
      <rdf:Description rdf:about=""
            xmlns:MicrosoftPhoto="http://ns.microsoft.com/photo/1.0">
         <MicrosoftPhoto:Rating>75</MicrosoftPhoto:Rating>
      </rdf:Description>
      <rdf:Description rdf:about=""
            xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
         <photoshop:Urgency>0</photoshop:Urgency>
      </rdf:Description>
   </rdf:RDF>
</x:xmpmeta>


You can also display the output of the DumpObject method in the XMP Toolkit, which has a more human-friendly format:

Dumping XMPMeta object ""  (0x0)

   xmp:  http://ns.adobe.com/xap/1.0/  (0x80000000 : schema)
      xmp:Rating = "4"
      xmp:Label = "mellow yellow"

   MicrosoftPhoto:  http://ns.microsoft.com/photo/1.0  (0x80000000 : schema)
      MicrosoftPhoto:Rating = "75"

   photoshop:  http://ns.adobe.com/photoshop/1.0/  (0x80000000 : schema)
      photoshop:Urgency = "0"


This release can also print a hex dump of the raw XMP packet, header and all, with each byte of the internal UTF-8 byte stream printed as an ANSI character.  This is useful for examining the encoding of Unicode characters that don't have a 7-bit representation (the copyright symbol is the canonical example):


0000: 3C 3F 78 70 61 63 6B 65  74 20 62 65 67 69 6E 3D  <?xpacke  t begin=
0010: 22 EF BB BF 22 20 69 64  3D 22 57 35 4D 30 4D 70  "" id  ="W5M0Mp
0020: 43 65 68 69 48 7A 72 65  53 7A 4E 54 63 7A 6B 63  CehiHzre  SzNTczkc
0030: 39 64 22 3F 3E 0A 3C 78  3A 78 6D 70 6D 65 74 61  9d"?>.<x  :xmpmeta
0040: 20 78 6D 6C 6E 73 3A 78  3D 22 61 64 6F 62 65 3A   xmlns:x  ="adobe:
0050: 6E 73 3A 6D 65 74 61 2F  22 20 78 3A 78 6D 70 74  ns:meta/  " x:xmpt
0060: 6B 3D 22 58 4D 50 20 43  6F 72 65 20 34 2E 34 2E  k="XMP C  ore 4.4.
0070: 30 22 3E 0A 20 3C 72 64  66 3A 52 44 46 20 78 6D  0">. <rd  f:RDF xm
0080: 6C 6E 73 3A 72 64 66 3D  22 68 74 74 70 3A 2F 2F  lns:rdf=  "http://
0090: 77 77 77 2E 77 33 2E 6F  72 67 2F 31 39 39 39 2F  www.w3.o  rg/1999/
00A0: 30 32 2F 32 32 2D 72 64  66 2D 73 79 6E 74 61 78  02/22-rd  f-syntax


Drop me a line if you have any comments or questions.

-Matt


Title: Re: Writing star ratings to NEFs
Post by: Eric Dufresne on November 18, 2009, 07:47:01 AM
Hello,

Your tool is really interesting. No chance that a version of OS X is developed?

Is there a way to make a whole directory (where I put my NEF) on an external drive and connects to a Windows? (I'm not a programmer)

Eric


Title: Re: Writing star ratings to NEFs
Post by: msbc on November 19, 2009, 01:14:17 AM
I'd also be VERY interested in a version that runs on OSX. Maybe you could use ExifTool as a way to achieve this?

Mark


Title: Re: Writing star ratings to NEFs
Post by: charlesBOEHM on November 19, 2009, 06:46:48 AM
What ARE you talking about in this thread??

I expect software to be thoroughly tested before it's sold to the general public. I shouldn't need to learn VBA, Applescript, Java C+, 'hacking' or some other script to run EM2. This thread is providing help to another scripter, or so it seems. I want to get to work on my photographs and I have to use a workaround in EM2 because of a scripts problem addressed on this forum; and the MSEM2 forum has not been solved.

PO'd I guess; and just sounding off. (Sending it anyway)

Charles



Title: Re: Writing star ratings to NEFs
Post by: Eric Dufresne on November 20, 2009, 09:20:13 AM
Hello,

This thread is not just providing help to another script. Matt has developed an application that is capable of synchronization of Label, Rating & Urgency IPTC fileds vs XML fields. Software such as Nikon Capture NX2 does not support XML fields, so that if you use Capture NX for RAW development and DAM software who writes in the XML fields, such as Expression Media, the three fields no longer follow from one software to another software.

Matt's program is useful for people who use Capture NX or View NX and metedata that are recorded directly into the NEF and not DNG, TIFF, JPG, etc.

Eric


Title: Re: Writing star ratings to NEFs
Post by: Eric Dufresne on November 20, 2009, 09:28:16 AM
I'd also be VERY interested in a version that runs on OSX. Maybe you could use ExifTool as a way to achieve this?

Mark

@ Matt: Do you think exiftool would be a good alternative? (read/write metadata vs break NEF file)


Title: Re: Writing star ratings to NEFs
Post by: roberte on November 23, 2009, 10:23:29 PM
Hi,

By default when PM writes XMP data into NEFs and CR2s it takes a best guess assuming they're TIFF-EP based formats. Unique to PM it can undo these changes returning the Raw to its virgin state. Camera Bits do not use the Nikon SDK.

EM uses the Nikon SDK to write metadata back to NEFs. The current SDK does not support XMP even though the NEF file format has supported XMP for a couple of years.

Bottom line: EM will not write star ratings (or any other XMP data) to NEFs. PM will. Blame Nikon... or move to DNG.

-- Robert.


Title: Re: Writing star ratings to NEFs
Post by: cdubea on July 15, 2011, 08:57:39 AM
I've just posted an e-mail to Matt about the useability of his scripts with Media Pro.  Casual testing this morning seems to indicate they don't write the data any longer.

Hopefully Matt will chime in with a yea or nay.

thanks

chris