WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Re-Extract EXIF Data from already uploaded photos? (4 posts)

  1. shaneholden
    Member
    Posted 5 years ago #

    I didn't realize until last night that all of the photos that I've uploaded did not get the EXIF data extracted during the upload process. Of course this is due to a server issue, but once resolved, is it possible to have it pulled from the images w/o having to go through the reupload process again? I've done hundreds and hate to have to do it again just to be able to display the data.

    Any help is appreciated!

    Thanks!

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    No easy way.

    You could write some custom code to loop through all the attachments and their ID's and do this:
    wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );

    The $id would be the id number of the attachment posts, the $file would be the filename of the attachment (full path).

  3. shaneholden
    Member
    Posted 5 years ago #

    Thanks Otto for the reply!

    I guess I'll have to see if I can find someone willing to give it a shot because custom code is way over my head.

    Thanks again!

  4. eclipticcreations
    Member
    Posted 5 years ago #

    shane,

    I just finished a plugin that extracts the data each time the page is loaded. It doesn't add to the database, though. If you haven't found someone to write custom code for you, it might be what you're looking for.

    WP Gallery Exif Reader

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags