"Fossies" - the Fresh Open Source Software Archive

Member "exiv2-0.27.5-Source/doc/cmd.txt" (21 Oct 2021, 1938 Bytes) of package /linux/misc/exiv2-0.27.5-Source.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Sample Exiv2 command file
    2 # -------------------------
    3 #
    4 # $ exiv2 -m cmd.txt file ...
    5 #
    6 # to apply the commands in cmd.txt to each file. Alternatively, commands can be
    7 # run from the command line directly, without a command file: 
    8 #
    9 # $ exiv2 -M"add Iptc.Application2.Credit String mee too!" file ...
   10 #
   11 # Note the quotes. Multiple -m and -M options are allowed and can be combined.
   12 # 
   13 # Command file format
   14 # -------------------
   15 # Empty lines and lines starting with # are ignored
   16 # Each remaining line is a command. The format for command lines is
   17 # <cmd> <key> [[<type>] <value>] 
   18 # cmd = set|add|del
   19 #    set will set the value of an existing tag of the given key or add a tag
   20 #    add will add a tag (unless the key is a non-repeatable Iptc key)
   21 #    del will delete a tag 
   22 # key = Exiv2 Exif or Iptc key
   23 # type = 
   24 #    Byte|Ascii|Short|Long|Rational|Undefined|SShort|SLong|SRational|Comment
   25 #       for Exif keys, and
   26 #    String|Date|Time|Short|Undefined  for Iptc keys
   27 #    The format for Iptc Date values is YYYY-MM-DD (year, month, day) and
   28 #    for Iptc Time values it is HH:MM:SS±HH:MM where HH:MM:SS refers to local 
   29 #    hour, minute and seconds and ±HH:MM refers to hours and minutes ahead or 
   30 #    behind Universal Coordinated Time.
   31 #    A default type is used if none is explicitly given. The default type is 
   32 #    determined based on the key.
   33 # value 
   34 #    The remaining text on the line is the value. It can optionally be enclosed
   35 #    in double quotes ("value")
   36 #
   37 
   38 add  Iptc.Application2.Credit	String	"mee too! (1)"   
   39 add  Iptc.Application2.Credit		mee too! (2)	        
   40 del  Iptc.Application2.Headline	 
   41 
   42 set Iptc.Application2.Headline	 Filename
   43 
   44 add   Exif.Image.WhitePoint	Short	32 12 4 5 6 
   45 
   46 set  Exif.Image.DateTime	Ascii	"Zwanzig nach fuenf"
   47   set Exif.Image.Artist		Ascii	nobody
   48  set Exif.Image.Artist			"Vincent van Gogh"
   49 
   50 set Exif.Photo.UserComment      Comment charset=Ascii This is an ASCII Exif comment