WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Image Metadata Cruncher

A versatile Swiss Army Knife for extraction and processing of IPTC, EXIF and other image metadata.

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 )

Requires: 2.7 or higher
Compatible up to: 3.5.2
Last Updated: 2013-3-13
Downloads: 2,294

Ratings

4 stars
4.3 out of 5 stars

Support

0 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0 0,1,0
100,1,1