Main Menu

Search results for: code userdefined

Search order
#1
......  for me, though you might need to tweak it a bit. Code Select Expand %Image::ExifTool::UserDefined = (  # ............ => {  TagTable => 'Image::ExifTool::UserDefined::USP',  # (see the definition of  ............  namespaces here...  }, );  %Image::ExifTool::UserDefined::USP = (  GROUPS => { 0 => 'XMP', 1 => 'XMP- ......
#2
......  for your Userdata tags. Something like this:  Code Select Expand %Image::ExifTool::UserDefined:: ............  do you want this to be?) );  %Image::ExifTool::UserDefined = (  'Image::ExifTool::XMP::Main' => {   ............ => {  TagTable => 'Image::ExifTool::UserDefined::Userdata',  },  },  }, );  ......
......  from: johndunce on October 29, 2023, 05:13:15 PMCode Select Expand Can't find table Image::ExifTool:: ............  the same as the ID, then you can just do this:  Code Select Expand %Image::ExifTool::UserDefined = (   ............  => { },  Source => { },  TelsReencode => { },  WriterType => { },   ......
...... " "-Subject<CombineKeys" /path/to/files/  Code Select Expand # Config file to combine the  ............  duplicates and empty entries.  %Image::ExifTool::UserDefined = (  'Image::ExifTool::Composite' => {   ......
......  -ThumbnailImage take (I am already using this).  Code Select Expand exiftool -ver 12.60  I setup this  ............  file:  Code Select Expand %Image::ExifTool::UserDefined = (   ............ ,  }, );  Then when I try to write to this tag  Code Select Expand $ exiftool '-NormalImage<=thumb.jpg' ............  example exiftool configs and explored the source code @ https://github.com/exiftool/exiftool/tree/ ......
......  its ability to manipulate and, chiefly, create UserDefined Tags [days ago @Phil and @StarGeek cleared things  ............  image label annotation would be serialized to a UserDefined tag – OR, as suggested, to a renamed standard one  ............  to get my point across, sorry.   What I want is  Code Select Expand   def writeToEXIFtag(data)   ............  #some pseudocode for now  Image.Exif.Label = data  instead of  ............  usual paired text file [json, xml, csv, etc.]   Code Select Expand def writeToJSONFile(path, fileName,  ......
......  hash into your config and it appears to work. Code Select Expand C:\>exiftool -config mie-johndee. ............  but they're a bit different and surprising:  Code Select Expand $ exiftool -config mie-johndee. ............  is the current mie-johndee.config I am using:  Code Select Expand use Image::ExifTool::MIE;  %Image:: ............ ::UserDefined = (  'Image::ExifTool::MIE::Meta' => {   ............ => {  TagTable => 'Image::ExifTool::UserDefined::JohnDee',  DirName => 'MIE- ............  }  }  } );  %Image::ExifTool::UserDefined::JohnDee = (  %Image::ExifTool::MIE:: ......
......  file (t3.config) and refrence the config file   Code to execute: C:\Users\tgi>exiftool -config "C:\ ............ .jpg"  Any guidance is appreciated.   Config File codeCode Select Expand %Image::ExifTool::UserDefined............  { },  pumpkinpie => { }, );  %Image::ExifTool::UserDefined::ns_2 = (  GROUPS => { 0 => 'XMP', 1 =>  ............ },  unknown => { }, );  # The %Image::ExifTool::UserDefined hash defines new tags to be added # to existing  ............ . %Image::ExifTool::UserDefined = (  # new XMP namespaces (ie. XXX) must be  ............ => {  TagTable => 'Image::ExifTool::UserDefined::ns_1',  },  },  ns_2 =>  ............ => {  TagTable => 'Image::ExifTool::UserDefined::ns_2',  },  },  }, );  1; # ......
......  for your answer. I copied the @Image::ExifTool::UserDefined::Geolocation block from the ExifTool Geolocation  ............  file and got the following error message:  Code Select Expand Loaded .Exiftool_config! Cannot  ......
......  exiftool cfg, so I'm just mentioning it here.  Code Select Expand %Image::ExifTool::UserDefined = (   ............ => {  TagTable => 'Image::ExifTool::UserDefined::fstop',  },  },  }, );  % ............ ::ExifTool::UserDefined::fstop = (  GROUPS => { 0 => 'XMP', 1 => 'XMP- ......
#11
Newbies / Re: Config file issues
September 06, 2023, 01:15:10 PM by StarGeek
......  covered by this part in the Example Config file Code Select Expand %Image::ExifTool::UserDefined = (   ............ => {  TagTable => 'Image::ExifTool::UserDefined::xxx',  # (see the definition of  ............ . That is covered further down in the config Code Select Expand # This is a basic example of the  ............  tag definition # in the %Image::ExifTool::UserDefined definition above. # The namespace prefix for  ............  1 group name of 'XMP-xxx'. %Image::ExifTool::UserDefined::xxx = (  GROUPS => { 0 => 'XMP', 1 => 'XMP- ............  and change xxx to the name of your new namespace  Code Select Expand %Image::ExifTool::UserDefined = (   ............ => {  TagTable => 'Image::ExifTool::UserDefined::internal',  # (see the definition  ............  good except for the space in %Image::ExifTool::UserDefined:: internal. And because you set WRITABLE to  ............  jump to the end of the file.  Combined, you get Code Select Expand %Image::ExifTool::UserDefined = (   ............ => {  TagTable => 'Image::ExifTool::UserDefined::internal',  # (see the definition  ............  },  },  }, );  %Image::ExifTool::UserDefined::internal = (  GROUPS => { 0 => 'XMP', 1 => ' ............ > { },  secondTag => { }, );  %Image::ExifTool::UserDefined::Shortcuts = (  MyShortcut => ['XMP-internal: ............  not display the tag name without the config file. Code Select Expand C:\>exiftool -config test.config -P  ......
#12
Metadata / Re: Post your LensType / LensID discoveries here
September 19, 2023, 03:56:46 PM by dmont
......  section in the example config jumped out to me  Code Select Expand @Image::ExifTool::UserDefined:: ......
......  to [PDF] fields.  Using This Custom Config -- Code Select Expand %Image::ExifTool::UserDefined = (   ............ },  }, ); 1; #end  With This Arguments File -- Code Select Expand -Sep ; |<-note that there is one  ............ .pdf  Gives Me This Result -- Code Select Expand exiftool -a -G0 -Sep "##"  ......
...... , if not in the list it defaults to a part of the code which I think wasn't working. In my case, it will  ............  other than with Print statements.  The relevant code I went with in AngleOfView (similar to FOV  ............ , but with my values) reads: Code Select Expand ValueConv => '(defined $val[2] ? 2* ............  -sep ", " /folder/path where the Args file reads Code Select Expand -OwnerName<BodyOwner -xmp: ............ =NSW -CreatorCountry=Australia -CreatorPostalCode=2016 -CreatorWorkEmail=xxxxxxx@tpg.com.au #[CSTR]- ............  -DigitalSourceType=http://cv.iptc.org/newscodes/digitalsourcetype/digitalCapture - ............  Config file, still a bit messy, currently reads: Code Select Expand # %Image::ExifTool::XMP::exif' => {  ............  => { 2 => 'Camera' } }, #}, %Image::ExifTool::UserDefined = (  'Image::ExifTool::Composite' => {   ............ ;  # },  },  }, # end Composite ); # end Userdefined # A special 'Lenses' list can be defined to give  ............  for the Composite:LensID tag @Image::ExifTool::UserDefined::Lenses = (  'Sigma 18-35mm f/1.8 DC HSM',  ' ............ , just because.  Edit 2 set up a Test args file Code Select Expand # exiftool -@ /path/to/Exiftool- ......
......  suit, but I think I have this working for you Code Select Expand %Image::ExifTool::UserDefined = (  ' ............ ::XMP::xmp' => {  weather => { },  }, );  Output Code Select Expand C:\>exiftool -config test3.config - ......
#16
Newbies / Re: Multiple Tags in the FileName
June 15, 2017, 01:16:29 AM by StarGeek
......  slashes, colons, question marks, etc).  QuoteCode Select Expand %Image::ExifTool::UserDefined:: ............  Final (afaik). You would want Final to be  Code Select Expand [code]%Image::ExifTool::UserDefined............  designate as the separator.   Example output: Code Select Expand C:\>exiftool -myshortcut X:\!temp\ ......
......  find it useful, all the better.  Example output: Code Select Expand C:\>exiftool -echo "List tags at  ............  Keyword Config file (also attached at end): Code Select Expand #----------------------------------- ............ ' => $key} ;  }  }  return }  %Image::ExifTool::UserDefined = (  'Image::ExifTool::Composite' => {   ......
......  can't get it to work.   I just did another try:  Code Select Expand exiftool -n -u '-UserComment<$ ............ , then copy that composite tag into UserComment:   Code Select Expand %Image::ExifTool::UserDefined = (   ......
......  a new one! I've received this error on Ubuntu:  Code Select Expand Can't locate Image/ExifTool/ ............ @INC (you may need to install the Image::ExifTool::UserDefined module) (@INC contains: /usr/local/bin/lib /etc/ ......
#20
Newbies / Invalid date/time and No writable tags
February 01, 2024, 06:27:52 PM by Marina
......  all dates to that value. I use this config file:  Code Select Expand %Image::ExifTool::UserDefined = (   ......
......  one from DJI. For DJI, I have this config file:  Code Select Expand %Image::ExifTool::UserDefined = (   ......
#22
......  data   6. Do I Need user configuration file?  Code Select Expand exiftool -config example.config   % ............ ::ExifTool::UserDefined = ( 'Image::ExifTool::GPS::Main'=>{  #Example  ......
...... , but I am struggling to figure out the correct UserDefined syntax in order to produce output similar to the  ............  XMP output for an image, formatted as JSON: Code Select Expand  ...  "History": [{  " ............ .lnk" -v  And here is the abbreviated output: Code Select Expand  ExifToolVersion = 12.30   ............ ": "IDList, LinkInfo, RelativePath, WorkingDir, Unicode, TargetMetadat a",  "FileAttributes": "Archive" ............  for.  Here is the start of my TEST.config file: Code Select Expand %Image::ExifTool::UserDefined = (  ' ............  SubDirectory => { TagTable => 'Image::ExifTool::UserDefined::LNKExt::TargetIDList' },  },  }, ) Below is % ............ ::ExifTool::UserDefined::LNKExt::TargetIDList, which is a modified copy  ............  %Image::ExifTool::LNK::ItemID: Code Select Expand %Image::ExifTool::UserDefined:: ............   SubDirectory => { TagTable => 'Image::ExifTool::UserDefined::LNKExt::TargetIDList::Item_ROOT' },  },  0x2 => { ............   SubDirectory => { TagTable => 'Image::ExifTool::UserDefined::LNKExt::TargetIDList::Item_VOLUME' },  },  0x3 => ............   SubDirectory => { TagTable => 'Image::ExifTool::UserDefined::LNKExt::TargetIDList::Item_FILE' },  }, );I'm  ............  sure how I should set up %Image::ExifTool::UserDefined::LNKExt::TargetIDList or ProcessItemID to produce  ............  ideally look after parsing the LNK TargetIDList: Code Select Expand  ...  "LNKExt": {  " ......
#24
......   11 directories scanned  9 image files read  Code Select Expand %Image::ExifTool::UserDefined = (   ............ 'll see if I can combine this regex into one rule. Code Select Expand # Strip of combinations with: -  ......
......  converting the input, not the output).  Try this Code Select Expand  %Image::ExifTool::UserDefined = (   ............  => {  TagTable => 'Image::ExifTool::UserDefined::Camera',  },  },  }, );  %Image::ExifTool:: ............  processed, positive numbers passed through. Code Select Expand C:\>exiftool -config temp.config -P  ......
...... -line arguments like this in the config file:  Code Select Expand # Specify default exiftool command- ............  other options except -config) @Image::ExifTool::UserDefined::Arguments = (  '-echo', '**** Using my default  ............  to ignore files with names starting with ".":  Code Select Expand @Image::ExifTool::UserDefined:: ......
......  from Calibre (I removed any non-Calibre data): Code Select Expand <?xpacket begin="�" id=" ............ ?xpacket end="w"?>  And here's the config I wrote: Code Select Expand %Image::ExifTool::UserDefined = (   ............  => {  TagTable => 'Image::ExifTool::UserDefined::calibre',  },  },  }, );  %Image:: ............ ::UserDefined::calibre = (  GROUPS => { 0 => 'XMP', 1 => 'XMP- ............  => 'rdf' }  }  } );   %Image::ExifTool::UserDefined::Options = (  Duplicates => 1, # make -a default  ............    Writes the following XMP data (again trimmed): Code Select Expand <?xpacket begin='�' id=' ............ . With the above config only the names are read: Code Select Expand [XMP-calibre] Custom metadata  ............ 's output. There are also warnings in the output. Code Select Expand [ExifTool] Warning  ............  element looks like in a Calibre-modified PDF: Code Select Expand <xmp:Identifier>  <rdf:Bag>   ............ :Identifier>  And the result of running exiftool: Code Select Expand [ExifTool] Warning  ............  and found some commented out lines in XMP.pm:378 Code Select Expand #my %sIdentifierScheme = ( #  ......
......  to set all dates by the "OldestDate" custom Tag:  Code Select Expand exiftool -m - ............  "-FileModifyDate<OldestDateTime" -r "%ddir%" With UserDefined Composite Tag from here https://exiftool.org/ ............  concern shows the following output for AllDates: Code Select Expand exiftool -a -G1 -s -AllDates "%~1"-> ............  Code Select Expand [UserData] DateTimeOriginal  ............  MediaPlayer Classic it shows yet another date:  Code Select Expand General Complete name  ............ -4 Format profile : Base Media Codec ID : isom (isom/iso2/mp41)  ............  : 2011-09-21T12:02:44+0200 Encoded date : UTC 2011-09-21 10:02:44  ............  : 2016-06-11T10:42:27.000000Z <<<<<<<<<<<<<<<< encoder : Lavf60.20.100  Video ID  ............  Format profile : Main@L3.1@Main Codec ID : hvc1 Codec ID/Info  ............ -window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass / no-mcstf /  ............ -sbrc Encoded date : UTC 2011-09-21 10:02:44  ............  10:02:44 Color range : Limited Codec configuration box : hvcC This leads to a  ......
#29
Newbies / Write json string to custom XMP tag
February 22, 2023, 11:07:43 PM by iferencz
......  config file config.config Code Select Expand %Image::ExifTool::UserDefined = (   ............ => {  TagTable => 'Image::ExifTool::UserDefined::xmpJson',  },  },  }, );  % ............ ::ExifTool::UserDefined::xmpJson = (  GROUPS => { 0 => 'XMP', 1 => ' ............  List => 'Seq',  }, );  my tag data data.txt Code Select Expand [  {  DebugJson={"a":1,"b: ............  } ]  My operating system is Windows, when I run  Code Select Expand .\exiftool -config config.config "- ............ <=data.txt" 1.mp4   command, he gives me error:  Code Select Expand Warning: DebugJson is not a  ............  respectively, the output XML data looks like this Code Select Expand <rdf:Description rdf:about=''   ............ , and treat DebugJson as a Json string. Like This Code Select Expand <rdf:Description rdf:about=''   ......
...... )?   My Custom Config File (.ExifTool.config) --  Code Select Expand %Image::ExifTool::UserDefined = (   ............  (210_TEST_Score_B_Books.pdfexifargs.txt) --  Code Select Expand # NOTE: Below tags are custom tags  ......