Main Menu

Search results for: code userdefined

Search order
#1
The Image::ExifTool API / Tesseract OCR revisited
August 27, 2024, 06:53:06 PM by StarGeek
......  screenshot of a game I play    The resulting text Code Select Expand Oes  885  \¥{ 965 @ 2  Fw \@u2 Sou  ............  and it doesn't read the circled numbers.  Code Select Expand #----------------------------------- ............ ) Created # # # References: # Sourcecode # https://github.com/tesseract-ocr/ ............ .com/UB-Mannheim/tesseract/wiki  %Image::ExifTool::UserDefined = (  'Image::ExifTool::Composite' => {   ............  # (not ($? >> 8)) checks the return code to see if the command ran without error   ......
#2
......  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- ......
......   I replaced $Focallength with $val in my original code and now it works as planned   Code Select  ............  %Image::ExifTool::UserDefined = (  'Image::ExifTool::Composite' => {   ......
#4
......  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',  },  },  }, );  ......
......  August 29, 2024, 07:21:22 AMThis should do it:  Code Select Expand %Image::ExifTool::myTagList = (   ............ ',  4 => 'MajorBrand', );  %Image::ExifTool::UserDefined = (  'Image::ExifTool::Composite' => {   ......
......  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 => { },   ......
......  I may have been putting it in the wrong place  Code Select Expand include Image::ExifTool::XMP;  #  ............  %Image::ExifTool::UserDefined hash defines new tags to be added # to existing  ............ . %Image::ExifTool::UserDefined = (  # new XMP namespaces (eg. xxx) must be added  ............  => {  TagTable => 'Image::ExifTool::UserDefined::video',  # (see the definition of this table  ............ )  },  },  }, );  %Image::ExifTool::UserDefined::video = (  GROUPS => { 0 => 'XMP', 1 => 'XMP- ............ --------------- 1; #end But this returns an error Code Select Expand C:\>exiftool -config testGps.config  ............  do. If I change include to use, it seems to work Code Select Expand C:\>exiftool -config testGps.config  ......
...... ::Exif::Main' with each entry. Try this:  Code Select Expand %Image::ExifTool::UserDefined = (   ......
......  - 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 = (   ......
#10
......  this example  Try Code Select Expand %Image::ExifTool::UserDefined = (   ............ .  Looking at the QuickTime.pm file in the source code would be a good place to see more examples of  ......
...... " "-Subject<CombineKeys" /path/to/files/  Code Select Expand # Config file to combine the  ............  duplicates and empty entries.  %Image::ExifTool::UserDefined = (  'Image::ExifTool::Composite' => {   ......
#12
Newbies / Re: New Custom XMP field like Keywords
July 24, 2024, 09:36:00 AM by lukasz050
......  so i was able to write my data using this:   Code Select Expand %Image::ExifTool::UserDefined = (  ' ......
......  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,  ......
#14
......  -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; # ......
......  with the next command showing what was written. Code Select Expand C:\>type temp.txt %Image::ExifTool:: ......
#18
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  ......
......  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- ......
...... , 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- ......
#22
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\ ......
......  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 - ......
......  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' => {   ......
#25
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  ......
......  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  ......
#27
The Image::ExifTool API / qrencode config file
August 05, 2024, 09:34:06 PM by StarGeek
......  upon Alan Clifford's idea to create QR codes from an image's GPS coordinate, I put together  ............  with a command such as this exiftool -config GPSQRCode.config -GPSQRCode -b -W %d%f-QR.png /path/to/ ............ /  Code Select Expand #----------------------------------- ............ ----------------------------- # File: GPSQRCode.config # # Description: User-defined Composite  ............  to create a GPS QR code # by running qrencode # # Tag  ............  and example: # # GPSQRCode # This will create a QR code image for any  ............ # Example: # exiftool -config GPSQRCode.config -GPSQRCode -b -W %d%f-QR.png /path/to/ ............  # https://github.com/fukuchi/libqrencode # Windows Port #  ............ ://sourceforge.net/projects/qrencode-for-windows/ # Tutorial #  ............  https://www.howtogeek.com/devops/how-to-create-qr-codes-from-the-linux-command-line/   %Image::ExifTool:: ............  'Image::ExifTool::Composite' => {   GPSQRCode => {  Require => {  0 => ............ ',$val[1]);   # run qrencode  my $QRCode = `qrencode -s 6 -l H - ............ $val[1]"`;  warn "Error running qrencode" and return undef unless $QRCode;   ............  $success = $et->WriteInfo($QRCode);  return \$QRCode;  },  ............  because I was going to check to make sure qrencode existed first by running qrencode --version but  ............  to STDERR. Also, this would mean running qrencode twice for every image. So that might get dropped  ............  file has instructions on installing on the qrencode program on Linux. There is also a Windows port of  ......
#28
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 "##"  ......
......  XMP files I need give ExifTool extra parameter  Code Select Expand exiftool -config onone.config "- ............ -onone:UserFlag=2" (unlike) or Code Select Expand exiftool -config onone.config "- ............ -onone:UserFlag=4" (like)  My onone.config means: Code Select Expand # new XMP namespaces (eg. xxx) must  ............ {  ## TagTable => 'Image::ExifTool::UserDefined::xxx',  TagTable => 'Image::ExifTool:: ......