WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Re-Extract EXIF Data from already uploaded photos?

[Resolved] Re-Extract EXIF Data from already uploaded photos?

  • 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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).

    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!

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Re-Extract EXIF Data from already uploaded photos?’ is closed to new replies.
Skip to toolbar