Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey David,
    If I have to venture a guess, Pete has noticed the same thing we did on Google image search and is asking a very similar question as we did:

    how to batch/mass replace the IPTC metadata field for the Copyright Notice with our desired text?

    Thread Starter petehobden

    (@petehobden)

    It’s not just Google but also many websites (including my own) that have the metadata info though not always visible.
    Facebook keeps metadata, Instagram and Bluesky strip it. I check withe the firefox plugin IPTC Photo Metadata inspector

    Plugin Author David Lingren

    (@dglingren)

    First, thank you for your generous feedback on the plugin. Thanks as well for the clarification and to @bibliata for the comment from this related topic:

    Bulk AUTHOR image tag change? | ww.wp.xz.cn

    As I wrote there, MLA provides several features to extract keywords and other metadata from image files and update the WordPress database with the values. I regret that MLA does not have any features for changing metadata within the image files themselves. I made an early design decision not to have any features that modify the files directly. I do not know of any other WordPress plugin that provides that capability.

    I regret that the news is not more positive but I am marking this topic resolved simply because I have answered your question to the best of my ability. If you do find a solution consider posting an update here so I and others can benefit. Thanks for your understanding and for your interest in MLA.

    Thread Starter petehobden

    (@petehobden)

    No problem. I suspected that this was the case.
    Thanks for your reply.

    ExifTool is a versatile command-line utility for reading, writing, and editing metadata in various file formats, including JPEG. You can use it to perform a bulk update of EXIF metadata on your server. To install ExifTool on your Debian server, run:

    sudo apt-get update
    sudo apt-get install libimage-exiftool-perl

    To update the copyright notice on all JPEG files in a directory, navigate to that directory and run:

    exiftool -overwrite_original -r -ext jpg -ext jpeg -CopyrightNotice=”Your Copyright Notice” /var/www/YourWPdir/

    If you’re using Apache as your web server, you can use the mod_headers module to add the copyright notice as an HTTP header when serving the images. This method doesn’t modify the actual files. First, enable the module:

    sudo a2enmod headers
    sudo systemctl restart apache2

    Then, add the following lines to your Apache configuration file or .htaccess file:

    <FilesMatch “\.(jpg|jpeg)$”>
    Header set Copyright “Your Copyright Notice”
    </FilesMatch>

    This will add the “Copyright” HTTP header with your notice to all JPEG files served by your server. Note that this approach is not the same as modifying the EXIF metadata in the files; it only sends the copyright notice as an HTTP header when serving the files.

    • This reply was modified 1 year, 1 month ago by bibliata.
    Plugin Author David Lingren

    (@dglingren)

    Thanks, @bibliata, for the information about the ExifTool utility and the HTTP header approach.

    For those of us on a Microsoft Windows development platform, there is a similar application, Exif Pilot, I have found very helpful:

    Editing, Creating and Viewing EXIF data with free Exif editor

    There are 32- and 64-bit free versions and a paid version that adds bulk editing capabilities and a command line mode.

    David,
    THANK YOU so much for attention to details.

    On another note, how do we use your plugin to mass/batch downsize our media libraries? We will be happy to keep a thumb size and the ~600px one, but everything else needs to go. The difference between attached and inserted images is understood, but we also have many autogenerated from text2thumb plugins.

    What would be the fastest and better way to remove b/w 20-30GB of unused images from a website and leave only the 2-3 that are actually being used in the post?

    //THANKS

    Plugin Author David Lingren

    (@dglingren)

    Thanks, @bibliata, for your update. You have asked two new questions unrelated to the current topic. I have some thoughts, but it would be great if you started a new topic with a descriptive title, e.g., How can I delete unused items and intermediate sizes. That will make it easier for other MLA users to take advantage of the answers. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Modify IPTC metadata in place.’ is closed to new replies.