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 => { },   ......
......  - to still be able to find the oldest datetime:  Code Select Expand %Image::ExifTool::UserDefined = (   ............  to "00" (i.e. just a few seconds older)?  In the code itself, I guess instead of "$date lt $oldest" I  ............  think? In my test cases it seems to run fine...  Code Select Expand %Image::ExifTool::UserDefined = (   ......
...... " "-Subject<CombineKeys" /path/to/files/  Code Select Expand # Config file to combine the  ............  duplicates and empty entries.  %Image::ExifTool::UserDefined = (  'Image::ExifTool::Composite' => {   ......
......  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,  ......
......  -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/ ......
......  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; # ......
#10
Newbies / Default exiftool arguments
June 10, 2024, 02:01:16 PM by krzysiu
......  neat than aliases. Example config gives this: Code Select Expand # Specify default exiftool command- ............  to all -execute'd commands @Image::ExifTool::UserDefined::Arguments = (  '-i', 'HIDDEN', # ignore  ............  (names beginning with ".") ); ...so I tried this: Code Select Expand @Image::ExifTool::UserDefined:: ............  ideas? Or I have to resotr to exiftool.bat with Code Select Expand exiftool.exe -overwrite_original -p  ......
......  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- ......
......  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  ......
......  to edit this tag.  Here's my current script:  Code Select Expand #!/usr/bin/perl use warnings; use  ............ -tags-that-are-not-writable-by-exiftool # Source code where tags are defined: # https://github.com/ ............ /tree/master/lib/Image/ExifTool %Image::ExifTool::UserDefined = (  'Image::ExifTool::Samsung::Trailer' => {   ............  these by looking through exiftool source code for examples.  When I run this script, the  ......
#14
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  ......
#15
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:: ......
...... , 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 - ......
#18
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' => {   ......
......  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 "##"  ......
......  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/ ......
#23
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 = (   ......
#25
......  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": {  " ......
......  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  ......
#28
......   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: -  ......
...... -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 = ( #  ......