Support » Plugin: Media Library Assistant » Combine image ISO, Shutter speed, Aperture with decription

  • Resolved pulkitsoft

    (@pulkitsoft)


    HI @dglingren,
    How to combine image ISO, Shutter speed, Aperture, Flash, and more image details into the existing image description.

    Example:

    Night light trails.
    ISO:100, Shutter speed: 1/1000, Aperture: F10, Flash: No

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question and for the link to your beautiful web site.

    I can think of two different meanings for “the existing image description“: 1) the Description field (post_content) stored with each Media Library item, or 2) the description/caption value displayed in a gallery.

    It looks like you are not using MLA’s [mla_gallery] shortcode for your gallery display so I assume you are asking how to fill the Description field for your items. If that is not correct, any additional details you can provide will be helpful.

    The information you are interested in is contained in the EXIF (and sometimes XMP) metadata embedded in your image files. MLA provides access to these values with the exif: (and xmp:) data source prefix. MLA also provides “Field-level enhanced EXIF CAMERA values” that are more convenient than the raw EXIF values. You can find more information about these topics in the Settings/Media Library Assistant Documentation tab.

    To populate the Description field you can create a Content Template that combines labels and data source values. Here is an example you can start with:

    template:(ISO: [+exif:ISOSpeedRatings+], )(Shutter speed: [+exif:CAMERA.ShutterSpeed+], )(Aperture: F[+exif:CAMERA.FNumber+], )(Flash: [+exif:CAMERA.Flash+])
    

    The parentheses around each value will omit the label and value if an item does not contain a value. You can also try (Aperture: [+exif:Aperture+], ) or (Aperture: [+exif:FNumber+], ) based on the content of your IMG_8776.jpg file.

    Once you have the template you want you can apply it in either of two ways: 1) you can use the Media/Assistant Bulk Edit area for a one-time application or 2) you can define an IPTC/EXIF mapping rule to apply it automatically. Both alternatives are outlined in this earlier topic:

    Bulk replace a word in media titles

    That topic uses the Title field but you can easily substitute the Description field, and substitute you own template as well.

    I hope this gives you the information you need for your application. I am marking this topic resolved, but please update it if you have problems or further questions regarding the above suggestions. Thanks for your interest in the plugin.

    Hi @dglingren,
    Thanks for your quick and prompt support.

    Your solution working, but your answer a little bit incomplete.

    Understand the scenario.

    I have more than 700 images that already filled with Tittle, caption, and Description. I just want to addon image EXIF details in image “Description” with retaining old description, because all images have their own “Description“.

    Understand with a few examples. What actually I need. Few example image Descriptions listed below.

    Ex1: Image1
    Night light trails.
    ISO:100, Shutter speed: 1/1000, Aperture: F10, Flash: No

    Ex2: Image2
    Red Rose
    ISO:100, Shutter speed: 1/3000, Aperture: F4.5, Flash: No

    Ex3: Image3
    Mountain
    ISO:100, Shutter speed: 1/1000, Aperture: F20, Flash: No

    I must have to retain old image Description.

    In the current scenario when I put the templet(as you provided) put into Image Description and run “Update” than it’s removed old image Description and filled with new EXIF data in the image Description.

    One more thing I tried all three options Add, Remove, Replace. Only replace works and remove the old image Description.

    I hope you understand my query and requirements. Waiting for a solution.

    Thanks in advance.

    https://www.natureshowtime.com/album/night-light-trailspart2/#lg=1&slide=7

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and for trying out the template ideas I suggested.

    You can retain your existing Description by adding it to the template, for example:

    template:([+post_content+]<br />)(ISO: [+exif:ISOSpeedRatings+], )(Shutter speed: [+exif:CAMERA.ShutterSpeed+], )(Aperture: F[+exif:CAMERA.FNumber+], )(Flash: [+exif:CAMERA.Flash+])
    

    Note that this example only works once per item. If you apply it a second time you will get two copies of the information. If you want to retain the existing Descriptions without the camera information you could use a Custom Field mapping rule to copy the values to a WordPress custom field. To create the rule:

    • Navigate to the Settings/Media Library Assistant “Custom Fields” tab.
    • Scroll down to the “Add New Custom Field Rule” section on the left-hand side of the page.
    • Click “Enter new field” and type the name of a new custom field, e.g., “Original Description”.
    • Change the Data Source dropdown to “post_content”.
    • Check the “MLA Column” box if you want to display the field as a column in the Media/Assistant submenu table.
    • Leave the “Quick Edit” box unchecked.
    • Leave the “Bulk Edit” box unchecked.
    • Select “Replace” for “Existing Text”.
    • Select “Native” for “Format”.
    • Select “Text” for “Option”.
    • Check the “Delete NULL Values” box to avoid storing empty values.
    • Click “Add Rule” to create the new rule.

    Once that’s done you can hover over the rule name and use the “Execute” rollover action to create values for your existing items.

    If you do decide to create the custom field you can change your template to something like:

    template:([+custom:Original Description+]<br />)(ISO: [+exif:ISOSpeedRatings+], )(Shutter speed: [+exif:CAMERA.ShutterSpeed+], )(Aperture: F[+exif:CAMERA.FNumber+], )(Flash: [+exif:CAMERA.Flash+])
    

    Again, the rule is an optional safety measure you can adopt if you want to.

    You wrote “I tried all three options Add, Remove, Replace.” I assume this refers to the radio buttons in the center column of the Bulk Edit area. These options only affect term assignments entered in the checklist for the taxonomy above them. They have no effect on any of the other changes made by the Bulk Edit area, such as the Description field.

    I hope these additional suggestions get you the results you want. Let me know if you have problems or further questions regarding them.

    Hi @dglingren,
    Many thanks for prompt and instant support, your solution and plugin are awesome working perfectly lighting fast, It saves lots of time.

    I just wanted to know where I can get the full list if EXIF templates, so I could generate templates string myself and add more EXIF details to the image as per my choice like…

    Camera Model
    Camera Maker
    Lense Model
    Exposure
    and many more…

    For you only.

    I am the owner of “https://www.pulkitsoft.com/“, My product Digital Signer used to digitally sign PDF documents, if you need then ask me I will give you a free license.

    Visit the website and email me if you need it.

    https://digitalsigner.pulkitsoft.com/

    Plugin Author David Lingren

    (@dglingren)

    Thank you for the positive feedback and for your generous offer to share the Digital Signer product; much appreciated.

    You can find more information about Content Templates, EXIF and XMP metadata in the Settings/Media Library Assistant Documentation tab. Here are two excepts from the “IPTC & EXIF Processing Options” section of the Documentation:

    Some image file formats such as JPEG DCT or TIFF Rev 6.0 support the addition of data about the image, or metadata, in the image file. In addition, many JPEG, TIFF and PDF files use the Extensible Metadata Platform (XMP) framework. XMP metadata varies from file to file but is often extensive. Many popular image processing programs such as Adobe PhotoShop allow you to populate metadata fields with information such as a copyright notice, caption, the image author and keywords that categorize the image in a larger collection. WordPress uses some of this information to populate the Title, Slug and Description fields when you add an image to the Media Library.

    The EXIF (EXchangeable Image File) metadata, if any, embedded in a JPEG DCT or TIFF Rev 6.0 image file. Though the specification is not currently maintained by any industry or standards organization, almost all camera manufacturers use it. For this category, you can code any of the field names embedded in the image by the camera or editing software. There is no official list of standard field names, so you just have to know the names your camera and software use; field names are case-sensitive. You can find more information in the Exchangeable image file format article on Wikipedia. You can find External Links to EXIF standards and tag listings at the end of the Wikipedia article.

    As you’ll see, EXIF data varies from camera to camera and tool to tool. You can use the “ALL_EXIF” and “ALL_XMP” data sources to explore within MLA, or use a standalone tool like EXIF Pilot, by Two Pilots software.

    Of course, you can also use many other tools such as Adobe Photoshop or Lightroom for this task.

    I am marking this topic resolved, but please update it if you have problems or further questions regarding the above suggestions. Thanks again for your interest in MLA.

    Hi @dglingren,
    Thanking you sir, without your support and your wonderful plugin, it’s not possible to create my website, its saved almost my 2 months.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.