Image metadata
-
I’ve went through the documents for days and tried the different templates for adding copyright and image content from the description field in EXIF or IPTC and it comes up empty. Are there exact templates you suggest that will work? The documentation does not seem that clear on this.
-
Thanks for your question. It looks like you are trying to compose one or more IPTC/EXIF/WP or perhaps Custom Field mapping rules; is that right? If so, it would be helpful to have more details of the rules you’ve tried so I can offer more specific advice. If you can post a link to some of the images you are using I can look through their metadata and see what they have available.
EXIF and IPTC metadata have a variety of sources for this information. For example, I have an image with descriptions in IPTC 2#105 (headline), IPTC 2#120 (caption-or-abstract) and EXIF “ImageDescription”. A different image uses IPTC 2#005 (object-name), IPTC 2#120 and XMP “description”. You can see which fields contain the information you want by clicking the “Edit” rollover action to access the full-screen Edit Media page and scrolling down to the Attachment File Metadata text area.
If you haven’t already found it, you can read through the Metadata Mapping with MLA PDF document on my web site.
I hope that gives you more ideas for your application. I will leave this topic unresolved for now, and I welcome any further details you can provide. Thanks for your interest in the plugin.
I’ll go over the documentation some more. There is a lot there. I just wanted to add The regular description meta or post content to description EXIF and a copyright notice In the attachment file metadata. Also I noticed that the attachment metadata has an empty array
‘image_meta’ =>
array (
‘aperture’ => ‘0’,
‘credit’ => ”,
‘camera’ => ”,
‘caption’ => ”,
‘created_timestamp’ => ‘0’,
‘copyright’ => ”,
‘focal_length’ => ‘0’,
‘iso’ => ‘0’,
‘shutter_speed’ => ‘0’,
‘title’ => ”,
‘orientation’ => ‘0’,
‘keywords’ =>
array (
),It would be nice to erase all that and perhaps just keep the copyright. I used an image optimizer to strip everything first.
Thanks for your update. You wrote “I used an image optimizer to strip everything first.” Once the image is optimized, all of the metadata is lost. You can confirm that by going to the Edit Media screen and looking through the “Attachment File Metadata” text area.
You mentioned the empty
image_metaarray. Erasing it wouldn’t save you much – it’s better to just ignore it.If the “Attachment File Metadata” text area shows that the images still contain information like description or copyright, I can help you map that to WordPress variables or Custom Field content. However, with the image optimizer that’s not very likely.
I am marking this topic resolved because I don’t think there’s more I can do, but please post an update if you need more help with this topic. Thanks for your interest in the plugin.
I see I misunderstood the plugin. I thought it could write to the Attachment File Metadata. I’ve used it for quick edits and the fact it shows what gallery the images are in is helpful. It’s a gallery website with original artwork and being able to set the parent gallery page to the image was helpful. Other plugins were reading the images as orphaned. I’m also using real media library so the fact it work with that is a plus. I suppose I could still add a custom field copyright with your plugin.
Thanks for your clarifying comments and for the kind words regarding the plugin. As you discovered, MLA does not have any features that alter the files attached to Media Library Items.
Yes, you could write a Custom Field mapping rule that adds Copyright information to the Media Library items. If you decide to pursue that and have problems or questions, start a new topic and I’ll help in any I can. I wish you every success with your site.
You must be logged in to reply to this topic.