class Magick::Image
def get_exif_by_entry(*entry)
return all entries and values. The return value is an array of [name,value]
return the values associated with the entries. If no entries specified,
Retrieve EXIF data by entry or all. If one or more entry names specified,
def get_exif_by_entry(*entry) ary = [] if entry.empty? exif_data = self['EXIF:*'] exif_data&.split("\n")&.each { |exif| ary.push(exif.split('=')) } else get_exif_by_entry # ensure properties is populated with exif data entry.each do |name| rval = self["EXIF:#{name}"] ary.push([name, rval]) end end ary end