Git Product home page Git Product logo

Comments (4)

AerisG222 avatar AerisG222 commented on August 21, 2024

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:

  1. dump exif data into one large json array for all images under a particular directory:
    exiftool -r -j image_directory > exifdata.json

  2. 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.

MartinKlefas avatar MartinKlefas commented on August 21, 2024

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.

MartinKlefas avatar MartinKlefas commented on August 21, 2024

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.

AerisG222 avatar AerisG222 commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.