{"id":136392,"date":"2021-02-11T08:24:04","date_gmt":"2021-02-11T08:24:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/add-exif-and-iptc-meta-data-to-attachment\/"},"modified":"2025-12-02T16:09:53","modified_gmt":"2025-12-02T16:09:53","slug":"add-exif-and-iptc-meta-data-to-attachment","status":"publish","type":"plugin","link":"https:\/\/cs.wordpress.org\/plugins\/add-exif-and-iptc-meta-data-to-attachment\/","author":5101522,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"trunk","tested":"6.9.0","requires":"5.2","requires_php":"7.3","requires_plugins":null,"header_name":"Add EXIF and IPTC meta data to Attachment","header_author":"Say Hello GmbH","header_description":"Extends the attachment meta data to include a much wider range of EXIF and IPTC information when an image is uploaded. Currently supports JPG only.","assets_banners_color":"788d95","last_updated":"2025-12-02 16:09:53","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/add-exif-and-iptc-meta-data-to-attachment\/","header_author_uri":"https:\/\/sayhello.ch\/","rating":0,"author_block_rating":0,"active_installs":20,"downloads":1847,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"markhowellsmead","date":"2021-02-11 08:24:26"},"1.0.1":{"tag":"1.0.1","author":"markhowellsmead","date":"2022-02-07 16:28:41"},"1.1.0":{"tag":"1.1.0","author":"markhowellsmead","date":"2022-02-07 16:32:06"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2472877,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2472877,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2472877,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2472877,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2472877,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2264,12056,133,4096,259],"plugin_category":[50],"plugin_contributors":[84231],"plugin_business_model":[],"class_list":["post-136392","plugin","type-plugin","status-publish","hentry","plugin_tags-attachment","plugin_tags-exif","plugin_tags-image","plugin_tags-iptc","plugin_tags-upload","plugin_category-media","plugin_contributors-markhowellsmead","plugin_committers-markhowellsmead"],"banners":{"banner":"https:\/\/ps.w.org\/add-exif-and-iptc-meta-data-to-attachment\/assets\/banner-772x250.png?rev=2472877","banner_2x":"https:\/\/ps.w.org\/add-exif-and-iptc-meta-data-to-attachment\/assets\/banner-1544x500.png?rev=2472877","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/add-exif-and-iptc-meta-data-to-attachment\/assets\/icon.svg?rev=2472877","icon":"https:\/\/ps.w.org\/add-exif-and-iptc-meta-data-to-attachment\/assets\/icon.svg?rev=2472877","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WordPress extracts image meta data from a file when it is uploaded and adds it to the newly created Attachment Post in the database. This Plugin extracts and saves a much wider range of EXIF and IPTC information than WordPress Core usually stores.<\/p>\n\n<p>This Plugin currently supports JPEG and WEBP files.<\/p>\n\n<p>This plugin does not output any data on the website or in the WordPress Admin area. If this is required, a developer will need to amend the Theme or Plugin which generates the HTML for the website.<\/p>\n\n<p>The Plugin does not add any information to Attachment Posts which have already been created. (The Plugin does, however, update the stored meta data when a new image is uploaded to an existing Attachment Post; for example when the <a href=\"https:\/\/wordpress.org\/plugins\/enable-media-replace\/\">Enable Media Replace Plugin<\/a> is used.)<\/p>\n\n<p>The information is not visible in the Media editor, but is available to developers when using the <code>wp_get_attachment_metadata<\/code> function. The data is stored in a subset of the array returned by this function, within the array key <code>shp_additional_metadata<\/code>.<\/p>\n\n<p>e.g.<\/p>\n\n<pre><code>&lt;?php\n$attachment_metadata = wp_get_attachment_metadata($attachment_id);\nvar_dump($attachment_metadata['shp_additional_metadata']);\n<\/code><\/pre>\n\n<h3>Hooks<\/h3>\n\n<p>The data array can be manipulated using <code>add_filter<\/code> once it has been retrieved from the file, using the following hooks.<\/p>\n\n<h4>All additional data<\/h4>\n\n<p>All IPTC data which is added by the plugin.<\/p>\n\n<pre><code>&lt;?php\napply_filters('shp_additional_metadata\/iptc', $exif['iptc'], $source_path);\n<\/code><\/pre>\n\n<h4>IPTC data<\/h4>\n\n<p>All data which is added by the plugin.<\/p>\n\n<pre><code>&lt;?php\napply_filters('shp_additional_metadata\/all_exif', $exif, $source_path);\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Install from the WordPress Plugin Directory or upload the <code>shp_additional_metadata<\/code> folder to the installation's plugins directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h3>1.1.0<\/h3>\n\n<ul>\n<li>Add WEBP support<\/li>\n<li>Confirm functionality in WordPress 5.9.<\/li>\n<\/ul>\n\n<h3>1.0.1<\/h3>\n\n<ul>\n<li>Fix EXIF checks<\/li>\n<\/ul>\n\n<h3>1.0.0<\/h3>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Extends the attachment meta data to include a much wider range of EXIF and IPTC information when an image is uploaded. This plugin does not output any &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/136392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=136392"}],"author":[{"embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/markhowellsmead"}],"wp:attachment":[{"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=136392"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=136392"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=136392"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=136392"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=136392"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=136392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}