You are here

public function ExifPHPExtension::getHumanReadableIptcDescriptions in Exif 8

Same name and namespace in other branches
  1. 8.2 src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::getHumanReadableIptcDescriptions()

Just some little helper function to get the iptc fields.

Return value

array Map of IPTC key with the associated description.

2 calls to ExifPHPExtension::getHumanReadableIptcDescriptions()
ExifPHPExtension::getFieldKeys in src/ExifPHPExtension.php
List of known metadata keys.
ExifPHPExtension::readIptcTags in src/ExifPHPExtension.php
Read IPTC Information from a file.

File

src/ExifPHPExtension.php, line 255

Class

ExifPHPExtension
Class ExifPHPExtension Parser implementation base d on PHP Exif extension.

Namespace

Drupal\exif

Code

public function getHumanReadableIptcDescriptions() {
  return [
    "2#202" => "object_data_preview_data",
    "2#201" => "object_data_preview_file_format_version",
    "2#200" => "object_data_preview_file_format",
    "2#154" => "audio_outcue",
    "2#153" => "audio_duration",
    "2#152" => "audio_sampling_resolution",
    "2#151" => "audio_sampling_rate",
    "2#150" => "audio_type",
    "2#135" => "language_identifier",
    "2#131" => "image_orientation",
    "2#130" => "image_type",
    "2#125" => "rasterized_caption",
    "2#122" => "writer",
    "2#120" => "caption",
    "2#118" => "contact",
    "2#116" => "copyright_notice",
    "2#115" => "source",
    "2#110" => "credit",
    "2#105" => "headline",
    "2#103" => "original_transmission_reference",
    "2#101" => "country_name",
    "2#100" => "country_code",
    "2#095" => "state",
    "2#092" => "sublocation",
    "2#090" => "city",
    "2#085" => "by_line_title",
    "2#080" => "by_line",
    "2#075" => "object_cycle",
    "2#070" => "program_version",
    "2#065" => "originating_program",
    "2#063" => "digital_creation_time",
    "2#062" => "digital_creation_date",
    "2#060" => "creation_time",
    "2#055" => "creation_date",
    "2#050" => "reference_number",
    "2#047" => "reference_date",
    "2#045" => "reference_service",
    "2#042" => "action_advised",
    "2#040" => "special_instruction",
    "2#038" => "expiration_time",
    "2#037" => "expiration_date",
    "2#035" => "release_time",
    "2#030" => "release_date",
    "2#027" => "content_location_name",
    "2#026" => "content_location_code",
    "2#025" => "keywords",
    "2#022" => "fixture_identifier",
    "2#020" => "supplemental_category",
    "2#015" => "category",
    "2#010" => "subject_reference",
    "2#008" => "editorial_update",
    "2#007" => "edit_status",
    "2#005" => "object_name",
    "2#004" => "object_attribute_reference",
    "2#003" => "object_type_reference",
    "2#000" => "record_version",
    "1#090" => "envelope_character_set",
  ];
}