• Resolved bkjproductions

    (@bkjproductions)


    It would be great if there were an option to KEEP the “Title” of the image. One of the nice features of this plugin is that it doesn’t blow away all of the metadata about an image. (Except the Title.)

    Example: I have an image with this “metadata”
    Title: My Shiny Image
    ALT Text: A very shiny image
    Caption: These shiny images are great
    Description: More details about the shiny image.

    Then I go to upload a NEW image, choosing the option to “Replace the file, use the new file name, and update all links” which I would interpret as using the new file name but why would the Title of the image change? The other metadata doesn’t change. What ends up happening is the Title becomes my-shiny-new-image.webp if I am replacing a JPG with a WEBP file. I really would like to keep that Title what it was, because in some of the slideshows on the site, that is what appears. Otherwise I have to go back into the Media Library and update the Title to what it used to be, “My Shiny Image”.

    If that can’t be done, then perhaps modify the language below the Option for “Replace the file, use the new file name, and update all links” to say

    Note: If you enable this option, the name and type of the file you are uploading will replace the old file. All links pointing to the current file (my-shiny-image.webp) will be updated to point to the new file name. The Title of the item in the Media Library will become the new file name without its extension.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi bkjproductions,

    I believe this is the expected behavior, since the title you refer to is not part of the metadata you mean. Note that there are two “titles” in WordPress.

    The title attribute does not change, but the title you talk about does change with each replacement.

    I will anyway forward your feedback to the development team. Perhaps we can indeed improve the language below the Option for “Replace the file, use the new file name, and update all links” ??

    Thanks!

    Thread Starter bkjproductions

    (@bkjproductions)

    @sixaxis The Title that I am referring to is the Title shown when viewing the item in the Media Library. That doesn’t have anything to do with HTML Title attributes such as <IMG title=”whatever”> attribute (or <A href=”#” title=”whatever’>) — those attributes can be changed after the item is inserted into the content area. (It is possible those meta fields will come along for the ride when the item inserted, but they can be changed independently of the item’s record in the database.)

    When we have the intern update the images in the site using Replace Media, now she has to go also update each of the Titles because those are blown away and become the new file name minus extension.

    In the example below, the Title is “Cat on keyboard from Istock” and the filename is istockphoto-1020966590-612×612-1.jpg. We want to get rid of the JPG and use a WebP file (and also lose the cryptic filename, for a little better SEO benefit.)

    When we replace the media with a file called cat with glasses and tie on keyboard from istock.webp then the Title becomes cat-with-glasses-and-tie-on-keyboard-from-istock — the filename-with-dashes-but-without-the-extension.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Thanks, we got that ?? The HTML title attribute does not change, but the title of the Media Library item does change with each replacement.

    Please note that we do not recommend replacing the images with WebP files using Enable Media Replace. If you do that, WebP files will be sent to all browsers, and not all of them support WebP, so some people will see “broken” images. Instead, I recommend using ShortPixel Image Optimizer to create and deliver such WebP files: it makes sure that the original JPG is delivered only to the browsers that don’t support WebP.

    I hope this helps!

    Thread Starter bkjproductions

    (@bkjproductions)

    I am curious what other people would say, as to whether the expected behavior is to change the Title? My intern strongly disagrees, so I have advised her to take this opportunity as a learning experience and write an essay about it.

    Thanks for the advice about Webp, @sixaxis ! I am all set to jump into WebP-for-all, so your advice gives me some pause. Elsewhere I have heard claims that “WebP image format is not supported only by Internet Explorer 11 and the KaiOS browser.” I suppose I can check within my stats to see what browsers are being used. People said that about PNGs for a while, but now you see them everywhere.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Prevent Image “Title” change’ is closed to new replies.