![]() So I wrote a Perl script to do it another way that bypasses the bug (see bug description below script): #!/usr/bin/perlĭie "usage: src.jpg dst.jpg" unless = 2 ![]() First parameter passed should be the file to copy GPS coordinates from, and all other parameters are the target files to be updated: #!/usr/bin/env bashĮxiftool -GPSLongitude="$lon" -GPSLatitude="$lat" is a bug in exiftool where reading and writing the longitude is not consistent. Īnother way to do this is to put the following into a script. The following command will change all files in current directory and its children (recursively), copying all GPS-related tags from the file SOURCE.JPG:Įxiftool −overwrite_original_in_place -r -tagsFromFile SOURCE.JPG -gps:all. Depending on the formats of the source and destination files, some of tags read may not be valid in the destination file, in which case they aren't written. This option is very simple, yet very powerful. To extract that data to a file, you just need to redirect the output. The curv part is the ID value for the TRC (see example code, specifically tagbase.sig swap ( (long)0圆3757276L) /’curv’/ ). If no tags are specified, then all writable tags are copied. 1 Answer Sorted by: 3 That 'message' is simply the binary data of that tag displayed on the command line. Metadata is read from source files and printed in readable form to the console (or written to output text files with -w ). FILE is one or more source file names, directory names, or '-' for the standard input. Any tags specified after this option on the command line are extracted from source file and written to the destination file. A command-line interface to Image::ExifTool, used for reading and writing meta information in a variety of file types. The command-line syntax for doing this is "-tagsFromFile SRCFILE". Free and open source:Ī special ExifTool option allows copying tags from one file to another. It is Windows/Linux/Mac compatible command-line tool and a Perl module as well. ExifTool that runs the command-line tool in batch mode and features methods to send commands to that program, including methods to extract meta-information from. It is a swiss army knife of Exif info manipulation, can do what you need, among many other things.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |