I'd love to get my hands on some assets that LOC tagged with this spec to see how they log it. While the spec looks good, I haven't seen any solution of saving this as metadata. It isn't guaranteed that other tools will know what to do with partial dates either way.ĭublin Core/ISO 8601/Library of Congress has a comprehensive spec for partial dates: For example, you can have just the year and month and no day, but you can't have month and no year. Or which ones are just missing.Įxiftool supports missing date elements, but only if you have the higher order elements. I used node-exiftool with these settings added in package.I want to be able to indicate what aspects of a date are real and which ones are estimated or calculated. This answer is included for completeness, for those of us who need exiftool in an electron app for both Mac and Windows: Since I never found a way to get exiftool-vendored to work with electron on Mac, I accepted the above answer, as essentially a warning to steer clear of exiftool-vendored for electron on Mac. _dirname at runtime from within an asar package after webpacking will be invalid, so don't rely on that. Many things won't work due to a lack of node compatibility within electron. If you're requiring exiftool-vendored from within a webview, you're gonna have a bad time.
SmartUnpack might work, but if it doesn't use a pattern like node_modules//**/*. Note that this package will spawn exiftool external processes, which means the and exiftool-vendored.exe packages should be included in your asarUnpack. If you're still anxious to try, here are some things to keep in mind: Although PhotoStructure uses this package within electron, there's a nontrivial amount of auxiliary support code specific to that project to make it work smoothly.
You should take a look at what the docs say about making it work with Electron: How do you make this work with electron?Įlectron is notoriously brittle and buggy, and is not officially supported by this package.