This has the same effect as the -n option, but for a single tag. See the -n option in the application documentation for more details. Note: Changes to PDF files are reversible because the original metadata is never actually deleted from these files. See the PDF Tags documentation for details. If a group name is not specified when writing information, then the information is added only to the highest priority group for which the tag name is valid however, the information is updated in all groups where the tag already existed. The priority of the groups is given by the list above.
|Published (Last):||28 August 2008|
|PDF File Size:||20.49 Mb|
|ePub File Size:||11.1 Mb|
|Price:||Free* [*Free Regsitration Required]|
Image::ExifTool Posted on by sparkie hi all This is going well! Got Perl installed, got ExifTool installed. Tested a few calls to ImageInfo. What a treat - up pops all the metadata for my jpeg. I thought SetNewValue was the one, but this method seems to be for writing new values to existing tags. So, a wee code snippet where a custom brand new tag is added to file would see me right.
What a fab tool set! Not your job to teach me Perl, I know! How would the sample look? Your sample seems to add a further assoc array within the tag elements?? Thanks again. Mark Posted on by exiftool in response to Hi Mark, What you have done is basically correct. The sample config file gives examples of how to set various attributes. The examples show how to specify a different family 2 group name for an individual tag, and how to make a "List"-type tag.
The "List" tags are written differently, and multiple may contain multiple values like a keywords list. Basically though, there is almost none of this that you need to know if you just want to add simple tags with no special formatting.
Just 2 points: 1 you have given all your tags the same name, so only one tag will be defined. Last question, I hope, for the moment: Does the namespace have to exist? Thank you. Mark Posted on by sparkie in response to aha! Having defined my UserDefined hash, how do write the call to WriteInfo. This doesn;t work Your code should work. Check with the exiftool application and read the FAQ if you are having problems with the user-defined tags.
Could you post your full. ExifTool config file inside a block in this forum? So try this:! I see my tags in the output. Absolutely brand new to Perl and trying something a bit more ambitious than Hello World. Running before I can walk! And in that logic, we no longer need the Image:: prefix?? The config elements seem to address a static class. Sorry for that one.
The client is going to call me this afernoon to see if we can write metadata to his assets. Absolute walk in the park. No bother. Someone should actually write a book on it! It saved me a ton of trouble -- and saved my Perl-expert friends from incessant questioning. And thanks Phil for this incredible tool. Is it possible to achieve the same thing using exiftool at the command line?
Pierre Posted on by exiftool in response to Hi Pierre, User-defined tags can not be defined at the command line. But after you define them in the exiftool config file you can use them at the command line. If you have any comments or questions, feel free to post them on the source of this page in GitHub.
Adding custom tags with Image::ExifTool
Image::ExifTool Posted on by sparkie hi all This is going well! Got Perl installed, got ExifTool installed. Tested a few calls to ImageInfo. What a treat - up pops all the metadata for my jpeg. I thought SetNewValue was the one, but this method seems to be for writing new values to existing tags. So, a wee code snippet where a custom brand new tag is added to file would see me right. What a fab tool set!
Subscribe to RSS
It may be called with one or more arguments. Other arguments are optional. The order of the arguments is not significant, except that the first SCALAR is taken to be the file name unless a file reference or scalar reference comes earlier in the argument list. Below is a more detailed explanation of how the ImageInfo function arguments are interpreted. Advantages of using the object-oriented form are that options may be set before calling ImageInfo , and the object may be used afterward to access member functions. Must be the first argument if used. The remaining scalar arguments are names of tags for requested information.
Metadata Sidecar Files
These are the only files that exiftool can create from scratch. A common example of this is the XMP "sidecar" file which is discussed in the next section in some detail. As well, ExifTool supports XML-format output, which can also be used to generate metadata sidecar files. XMP Sidecar Files There are a number of different ways to generate an XMP sidecar file with exiftool, and the method you choose depends on your circumstances and preferences. Below are a number of example commands which write an output XMP file from information in a source file of any type. Copy XMP, preserving original locations: ie. This is because -all:all preserves the family 1 group ie.