Image Metadata Cruncher

Gives you ultimate controll over which image metadata WordPress extracts from an uploaded image
and where and in what form it then goes.

Author:Peter Hudec (profile at wordpress.org)
WordPress version required:2.7
WordPress version tested:3.5.1
Plugin version:1.8
Added to WordPress repository:12-11-2012
Last updated:13-03-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:88
Rated by:5
Plugin URI:http://peterhudec.com/programming/2012/11/13/...
Total downloads:3 591
Active installs:500+
plugin download
Click to start download

A must have tool for photographers who edit their images in Lightroom or Photomechanic and don't want to waste their precious time by writing all the keywords and categories once again by hand.

WordPress by default extracts the EXIF ImageDescription of an uploaded image to the Description field and the IPTC Headline to the Title field of the Edit Media form.

Image Metadata Cruncher gives you ultimate controll over this behaviour. You decide what metadata gets where and in what form.

Moreover, the plugin's simple but powerfull templating system allows you to convert the extracted metadata into complex strings like:

Image was taken with Canon 7D, exposure was 1/125s and aperture was f/2.8.

You can even extract metadata to unlimited custom post meta that will be saved with the image to the database.

The plugin also has some usefull public methods which you can use in your code:

This will return the complete metadata of the image in a stuctured array same as {ALL:PHP}.

$metadata = $image_metadata_cruncher->get_meta_by_path( '/path/to/your/image.jpg' );

The same but by attachment post ID.

$metadata = $image_metadata_cruncher->get_meta_by_id( $attachment_ID );

You can crunch an already uploaded attachment with the crunch() method. The template and its indexes are optional. If missing, templates from plugin's settings will be used.

$template = array(
    'title' => '{IPTC:Title}',
    'caption' => '{IPTC:Caption}',
    'description' => '{IPTC:Headline}',
    'alt' => '{IPTC:Caption}',
    'custom_meta' => array(
        'camera-make' => '{EXIF:Make}',
        'camera-model' => '{EXIF:Model}',
    ),
)

$image_metadata_cruncher->crunch( $attachment_ID, $template )