Plugin Documentation

Goals available for this plugin:

GoalDescription
image-metadata:set-metadata-simpleInjects a minimum of metadata into images. The available metadata set contains:
  • creator
  • description
  • keywords
  • copyright notice (text)
  • URL of full copyright license
The metadata can be specified as default values and as image-specific values. Specific values override default values. To specify default values use the default... tags:
 <configuration>
 <defaultCreator>Mr. Example</defaultCreator>
 <defaultCopyrightText>This work is licensed under the Creative Commons Attribution 3.0 ...</defaultCopyrightText>
 <defaultCopyrightUrl>http://creativecommons.org/licenses/by/3.0/de/</defaultCopyrightUrl>
 ...
</configuration>

Default values can be overwritten in the images section, where the image files that must be processed are listed:
 <configuration>
 ...
 <images>
   <image>
     <file>src/resources/images/ex1.png</file>
     <description>My first example image</description>
     <keywords>test, example</keywords>
   </image>
   <image>
     <file>src/resources/images/ex2.png</file>
     <description>My image with overwritten creator</description>
     <creator>Mr. Creator</creator>
     <keywords>creator, test, example</keywords>
   </image>
   ...
  </images>

This goal uses Exiftool (http://www.sno.phy.queensu.ca/~phil/exiftool/) to process images andtheir metadata. Exiftool must be available in the path, or its location must be specified in the IM4JAVA_TOOLPATH environment variable. See

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven3.0
JDK1.
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>de.textmulch</groupId>
          <artifactId>image-metadata-plugin</artifactId>
          <version>1.0.0</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>de.textmulch</groupId>
        <artifactId>image-metadata-plugin</artifactId>
        <version>1.0.0</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"