IPTC imported in description rather than caption
-
That’s very strange. I haven’t changed that code in many releases, and I just went back and looked at it again. It’s pretty straightforward and I don’t see any way the field assignment could get crossed in that way.
Is this happening when you upload a new image to the Media Library? Does it happen if you click “Map IPTC/EXIF Metadata” on the Media/Edit Media screen?
If you continue to experience this problem, it would be very helpful to get an image I can test with and a screen shot of your IPTC/EXIF mapping rules. If you contact me through our web site I can send you an e-mail address you can use to send the data to me. You can use the Contact Us page at our web site:
Thanks for your understanding and your patience.
Some problem in the two procedures (upload and “Map IPTC/EXIF Metadata”).
Here are the IPTC of one of those files (printed from my hardisk, before upload):
exiv2 -pi 140308-2807.jpg Iptc.Application2.Program String 7 digiKam Iptc.Application2.ProgramVersion String 5 3.5.0 Iptc.Application2.DateCreated Date 8 2014-03-08 Iptc.Application2.TimeCreated Time 11 18:05:50+00:00 Iptc.Application2.Byline String 21 Marie-Noelle Augendre Iptc.Application2.Copyright String 56 Reproduction et utilisation interdites sans autorisation Iptc.Application2.Keywords String 12 Golden hours Iptc.Application2.ObjectName String 22 Vacheries de Cartayrel Iptc.Application2.Caption String 51 Au col de la Matte, entre Sainte Urcize et Laguiole Iptc.Application2.Keywords String 7 Couleur Iptc.Application2.Keywords String 5 Hiver Iptc.Application2.Keywords String 8 Montagne Iptc.Application2.Keywords String 11 Golden hour Iptc.Application2.Keywords String 10 Plan large Iptc.Application2.Keywords String 13 Sainte-Urcize Iptc.Application2.Keywords String 6 Aubrac Iptc.Application2.Keywords String 14 Format paysage
IPTC/EXIF mapping settings are as follow:
Title : 2#005
Caption : 2#120
but the caption remains empty whatever I do, and the description gets the 2#120 field instead.I don’t remember having had this problem with the previous pictures I had worked with.
One thing is different, though. I have this message when uploading, or remapping:
Warning: exif_read_data(140308-2807.jpg): corrupt EXIF header: maximum directory nesting level reached in /homez.110/marienoe/www/cevennes/wp-content/plugins/media-library-assistant/includes/class-mla-data.php on line 4612
I’ve sometimes seen this message in other programs with some pictures, but it didn’t seem to prevent them from being treated properly.
I can print the whole EXIF/IPTC data if you like, or send one picture to you.
Thank you for this update and for taking the time to post the IPTC information from a sample file.
Thanks as well for adding the “corrupt EXIF header” message, which may explain the issue.
It looks like the MLA mapping logic is failing and you are getting the default WordPress handling for filling the Description (post_content) field. Have a look in the Settings/Media Library Assistant Documentation tab, “WordPress default title, slug and description mapping” section, which summarizes the WordPress logic.
It would be great if you could send one or more of the images that generate the error message. I will see if I can reproduce and hopefully solve your issue. Please get in touch!
I just sent you a message via your contact form.
Thank you for working with me to resolve this issue. We were able to make some improvements in your taxonomy mapping filter as well as find and fix a couple of MLA defects along the way. It was very helpful to have your test images and code to make both of those results possible.
In the end a small change to your mapping rule filter plugin was required to restore the default mapping of other values, such as the caption field.
I am marking this issue resolved. Thanks again for your help and for your interest in the plugin.
- The topic ‘IPTC imported in description rather than caption’ is closed to new replies.