class ExifTagger::Tag::Keywords

MWG:Keywords, string+, List of Strings

IPTC:Keywords, XMP-dc:Subject

exiftool types:

Keywords = Array ["aaa", "bbb"] OR String "aaa"
Subject = Array ["aaa", "bbb"] OR String "aaa"

Constants

EXIFTOOL_TAGS
MAX_BYTESIZE

Private Instance Methods

generate_write_script_lines() click to toggle source
# File lib/phtools/exif_tagger/tags/keywords.rb, line 27
def generate_write_script_lines
  @value.each do |o|
    unless Tag.empty?(o)
      @write_script_lines << %(-MWG:Keywords-=#{o})
      @write_script_lines << %(-MWG:Keywords+=#{o})
    end
  end
end
validate_vs_previous() click to toggle source
# File lib/phtools/exif_tagger/tags/keywords.rb, line 22
def validate_vs_previous
  @warnings = []
  @warnings.freeze
end