exiftool | js wrapper around exiftool , providing metadata extraction | Runtime Evironment library

 by   nathanpeck JavaScript Version: 0.0.3 License: MIT

kandi X-RAY | exiftool Summary

kandi X-RAY | exiftool Summary

exiftool is a JavaScript library typically used in Server, Runtime Evironment, Nodejs applications. exiftool has no bugs, it has a Permissive License and it has low support. However exiftool has 1 vulnerabilities. You can install using 'npm i exiftool' or download it from GitHub, npm.

A node.js wrapper around exiftool, a commandline utility that can extract metadata from many different filetypes, including JPEG, PNG, PDF, WMV, MOV. For a full list see the exiftool list of supported filetypes.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              exiftool has a low active ecosystem.
              It has 70 star(s) with 25 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 4 have been closed. On average issues are closed in 292 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of exiftool is 0.0.3

            kandi-Quality Quality

              exiftool has 0 bugs and 0 code smells.

            kandi-Security Security

              exiftool has 1 vulnerability issues reported (0 critical, 1 high, 0 medium, 0 low).
              exiftool code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              exiftool is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              exiftool releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of exiftool
            Get all kandi verified functions for this library.

            exiftool Key Features

            No Key Features are available at this moment for exiftool.

            exiftool Examples and Code Snippets

            No Code Snippets are available at this moment for exiftool.

            Community Discussions

            QUESTION

            imagemagick convert -crop with pipe before it
            Asked 2022-Mar-21 at 11:58

            I want to use imagemagick to crop an image. However, imagemagick will be receiving the image data to crop through a pipe before it:

            ...

            ANSWER

            Answered 2022-Mar-21 at 11:58

            Updated Answer

            It transpires that the problem was caused by inadvertently using GraphicsMagick rather than ImageMagick.

            Original Answer

            You should be able to use a dash - to refer to the stdin if that stream has a well-known magic number (signature) at the start:

            Source https://stackoverflow.com/questions/71553092

            QUESTION

            best way to get metadata from pictures in a folder
            Asked 2022-Feb-14 at 13:50

            I'm looking for the easiest way to get a maximum of metadata from all pictures of a single folder.

            I actually want to make a soft (bash / vba / whatever) where I just have a simple action to do to export all metadata of each pics inside an excel worksheet.

            What's about Exiftool ? is that the best technique ? Is anyone know a soft who do that ?

            Thanks for the help, dear community.

            ...

            ANSWER

            Answered 2022-Feb-14 at 13:50

            Use exiftool to create a csv file then open that with Excel.

            exiftool -csv *.jpg > data.csv

            Source https://stackoverflow.com/questions/71112585

            QUESTION

            How to edit creation date of MP4 files?
            Asked 2022-Feb-11 at 14:19

            Currently, I'm working on a python3 script that helps me sort the Google Photos takeout files. The Takeout service for Google Photos actually strips all the metadata of an image/video into a separate JSON file.

            This script that I'm working on helps me to merge the timestamp present in the JSON file into its subsequent photo or video. In order to achieve this, I'm currently using - ExifTool by Phil Harvey, which is a Perl executable. I call this tool in a subprocess to edit the Date tags in EXIF/Metadata.

            This process is quite hefty and is taking a large amount of time. Then I realised that most of my photos are JPG and videos are MP4, it is very easy to edit Exif data of JPG files in python using some of the libraries present & for the lesser proportion of photos like PNG I can use exiftool.

            This has drastically improved the runtime of my script. Now I want to know that is there any way to edit the creation dates of MP4 files natively in python which can theoretically execute faster than the subprocess method.

            Please help! Thanks in advance.

            ...

            ANSWER

            Answered 2022-Feb-11 at 14:19

            Im not too familiar with it, but ffmpeg seems like an option for just the mp4's.

            Source https://stackoverflow.com/questions/71081008

            QUESTION

            Powershell: How can I count the lines of output from a command for each of many files?
            Asked 2022-Jan-20 at 05:46

            exiftool produces multiple lines of output for each file it processes. I want to invoke it on all the jpgs in a directory, and I want to see how many lines are output for each file. Doing this,

            ...

            ANSWER

            Answered 2022-Jan-20 at 03:09
            Get-ChildItem -Filter *.jpg |
              ForEach-Object { (exiftool $_.FullName).Count }
            

            Source https://stackoverflow.com/questions/70779301

            QUESTION

            exiftool shows incorrect Duration for MP3. How does that happen?
            Asked 2022-Jan-19 at 20:06

            Downloaded seven MP3 files from a website. exiftool says the Duration is two minutes.

            Opened it in an audio editor and find that it is actually four minutes.

            Opened a (non-downloaded) MP3 file in the same editor, duration different from two or four.

            Copied all audio from the downloaded file and pasted over the other audio. Editor shows the other changing to four minutes.

            exiftool shows the second file has a duration of four minutes.

            Same behavior (different numbers) for the other six downloaded files. First one is the only one where the difference was approximately a factor of two (so it's not stereo vs. mono)

            Is Duration an ID3 tag that can be falsified, as opposed to being measured from the actual audio?

            ...

            ANSWER

            Answered 2022-Jan-19 at 20:06

            There should be an (approx) in the exiftool output after the Duration value. Duration is not an embedded tag, it's a value that's calculated on the fly by exiftool. If you add the -G (-groupNames) option to your command, you'll see that it is part of the Composite tag group. If you check the listing there, you'll see the tags that exiftool uses to calculate the Duration. It's most likely the group that includes ID3Size and MPEG:AudioBitrate.

            Exiftool doesn't read and parse the stream data, which the audio editor will do and get a more accurate result. Odds are there is something incorrect about the header for your file.

            Related post on the exiftool forums.

            Source https://stackoverflow.com/questions/70776905

            QUESTION

            Do I need to downgrade my conda version in order to install a module?
            Asked 2022-Jan-18 at 22:43

            I install new modules via the following command in my miniconda

            ...

            ANSWER

            Answered 2022-Jan-06 at 20:11

            Consider creating a separate environment, e.g.,

            Source https://stackoverflow.com/questions/70610324

            QUESTION

            Exiftool export JSON with Python
            Asked 2022-Jan-07 at 12:19

            I´m trying to extract some metadata and store them in a JSON file using Exiftool via Python.

            If I run the following command (according to the documentation) in the CMD it works fine, generating a temp.json file:

            ...

            ANSWER

            Answered 2022-Jan-06 at 19:42

            I believe the problem is that file redirection is a property of the command line and isn't available with subprocess.run. See this StackOverflow question.

            For a exiftool solution, you would use the -W (-tagOut) option, specifically -W+! C:/Users/XXX/Desktop/test_folder/temp.json. See Note #3 under that link.

            Source https://stackoverflow.com/questions/70611277

            QUESTION

            Exiftool - changing PENTAX related EXIF tags to Pentax
            Asked 2022-Jan-05 at 12:23

            I just discovered that GIMP 2.10 removes JPG EXIF data because of the "PENTAX" in uppercase present in the EXIF data (the bug is described here and here).

            Tried Exif Pilot freeware and found out the EXIF fields:

            Make=PENTAX

            Model=PENTAX K-x

            Fixing them to "Pentax K-x" and "Pentax" solves the problem but requires me to do it manually one by one in Exif Pilot GUI.

            Is there any way to do this as batch for a whole folder with JPG files? I tried to find some Exiftool parameters to replace "PENTAX" with "Pentax" but to keep the model information correctly but no success so I would appreciate help.

            thanks

            ...

            ANSWER

            Answered 2022-Jan-05 at 12:23

            Windows is lacking in having the generic command grep for this common task on many other systems. The jpeg files are binary but like a PDF the Meta data itself is held as plain text. Do check your text string is similar to below otherwise you will/may need to parse both PENTAX entries separately as single words.

            So in this fixed case it it should be easy to use any binary file reader / writer and "Find aNd Replace" the text string. Just ensure it is byte for byte the same length.

            Source https://stackoverflow.com/questions/70585227

            QUESTION

            Why does EXIF geodata need so much precision?
            Asked 2021-Dec-19 at 14:50

            According to spec, EXIF stores latitude and longitude with 192 precision each. But a simple calculation shows that you only need 32 bits to divide the circumference of Earth into segments of 9 mm:

            ...

            ANSWER

            Answered 2021-Dec-19 at 14:50

            The format stores latitude and longitude each as 6 32-bit integer values, which adds up to 192 bits. The 6 integers store each of degrees, minutes and seconds as rational numbers with a numerator and denominator.

            Why this format? Presumably it's designed for very simple processors that can't handle floating point, and might not even be able to do division. The format is more than 25 years old (though I'm not sure when GPS data was added), and cameras weren't as smart back then. Cameras needed to be able to store lots of data (pictures are big), but they didn't need to do a lot of mathematical operations on it. So they wasted some bits to make manipulation easier.

            Source https://stackoverflow.com/questions/70412268

            QUESTION

            Copy values from one XMP tag to another XMP tag
            Asked 2021-Dec-12 at 16:57

            I have a lot of images (JPG) with some metadata. I'm interested in these three tags, for example, from one of the images:

            [XMP] FlightPitchDegree : 0.734793
            [XMP] FlightRollDegree : -1.024403
            [XMP] FlightYawDegree : 192.286436

            I need to copy these values for each image to the next tags:

            Xmp.Camera.Pitch Xmp.Camera.Roll Xmp.Camera.Yaw

            Mostly for tag editing, I'm using ExifTool, but I can't find commands for copying values between tags inside one file. I'll be very appreciative of any recommendation.

            Best, Andriy

            ...

            ANSWER

            Answered 2021-Dec-12 at 16:57

            To copy from one tag to another you would use the redirection feature of the -TagsFromFile option. Basically it would be
            exiftool "-TARGETTAG

            You have the names of the SourceTags (FlightPitchDegree/FlightRollDegree/FlightYawDegree), you just need to figure out the exiftool names of your target tags. I can find CameraPitch/CameraYaw/CameraRoll tags on the DJI Tags page, but those are not XMP tags. The only other place I can find tags with similar names are part of the XMP-Camera group, which are not built into exiftool and you would have to download the pix4d.config file and use the -Config option to include those definitions.

            Source https://stackoverflow.com/questions/70324723

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            ExifTool 8.32 allows local users to gain privileges by creating a %TEMP%\par-%username%\cache-exiftool-8.32 folder with a victim's username, and then copying a Trojan horse ws32_32.dll file into this new folder, aka DLL Hijacking. NOTE: 8.32 is an obsolete version from 2010 (9.x was released starting in 2012, and 10.x was released starting in 2015).

            Install exiftool

            To make use of exiftool you will need to download and install the appropriate exiftool package for your system. For other systems or for information on how to compile exiftool from source refer to the official documentation for exiftool.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i exiftool

          • CLONE
          • HTTPS

            https://github.com/nathanpeck/exiftool.git

          • CLI

            gh repo clone nathanpeck/exiftool

          • sshUrl

            git@github.com:nathanpeck/exiftool.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link