Comments (4)
I am not too crazy about the idea of adding the attributes for this. I think it would be a better approach to copy the exif data to your own class and then serialize how you wish.
With that said, depending on what you are trying to do, there might be ways to further expose exiftool functionality to achieve a similar result. There is an ability of exiftool to dump json (and other formats too) to files. For example, try running the following commands:
-
dump exif data into one large json array for all images under a particular directory:
exiftool -r -j image_directory > exifdata.json
-
dump exif data in json format, such that a sidecar file is created for each image
exiftool -r -j -w .json image_directory
If either the first or second option are useful to you to have in NExifTool, I would be happy to consider adding that to the library.
from nexiftool.
I'd not considered that exiftool might have the function built in, I'll look into those options and let you know how it goes.
Thanks.
from nexiftool.
I'm happy to report that the first option exiftool -r -j image_directory > exifdata.json
works brilliantly.
The second option is also quite handy.
Having either as part of the library would be very helpful - as would the ability to then read the resulting JSON information into a Tag
but I understand that that might be a lot of extra work.
from nexiftool.
Thanks for getting back to me, glad to hear that worked for you. I have a lot going on at the moment, but once I have some time I will take a look at adding this to the library. If you have interest in implementing such a feature, I'd be happy to accept a PR.
from nexiftool.
Related Issues (18)
- support file names with spaces HOT 2
- Feature proposal HOT 3
- Need Compiled projects HOT 1
- Create/Modify values HOT 5
- XMP Category values HOT 4
- List-type tags such as Keywords return concatenated string of all values. HOT 7
- Error when trying to start the exiftool process. Please make sure exiftool is installed, and its path is properly specified in the options HOT 1
- How to write semicolon separated values in XPKeywords? HOT 3
- Changing keywords HOT 2
- Two, Imagewidth, and Imageheight ? HOT 1
- WaitingForActivation status returned HOT 1
- Adding Argument Operation HOT 3
- Support for non-ASCII file paths
- Extracting Jpeg from Raw Image HOT 3
- NExif corrupting files when writing Keywords tag HOT 1
- Usage HOT 5
- Rounding values HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexiftool.