ImageMagick: MagickCore, C API for ImageMagick: Get/Set Image Properties
Author: ImageMagick Studio LLC
Description: ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (P [cell cut: 1167 characters, first 1000 kept]
Keywords: magickcore, c, api, for, imagemagick:, get/set, image, properties, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing

Unix
Mac OS X
Windows
Processing
Options
Usage
MagickWand
MagickCore
PerlMagick
Magick++
Unix
Windows
Links

## CloneImageProperties

CloneImageProperties() clones one or more image properties.

The format of the CloneImageProperties method is:

      MagickBooleanType CloneImageProperties(Image *image,
        const Image *clone_image)

A description of each parameter follows:

##### image

the image.

##### clone_image

the clone image.

## DefineImageProperty

DefineImageProperty() associates a key/value pair with an image property.

The format of the DefineImageProperty method is:

      MagickBooleanType DefineImageProperty(Image *image,
        const char *property)

A description of each parameter follows:

##### image

the image.

##### property

the image property.

## DeleteImageProperty

DeleteImageProperty() deletes an image property.

The format of the DeleteImageProperty method is:

      MagickBooleanType DeleteImageProperty(Image *image,const char *property)

A description of each parameter follows:

##### image

the image.

##### property

the image property.

## DestroyImageProperties

DestroyImageProperties() releases memory associated with image property values.

The format of the DestroyDefines method is:

      void DestroyImageProperties(Image *image)

A description of each parameter follows:

##### image

the image.

## FormatImageProperty

FormatImageProperty() permits formatted property/value pairs to be saved as an image proporty.

The format of the FormatImageProperty method is:

      MagickBooleanType FormatImageProperty(Image *image,const char *property,
        const char *format,...)

A description of each parameter follows.

##### image

The image.

##### property

The attribute property.

##### format

A string describing the format to use to write the remaining arguments.

## GetImageProperty

GetImageProperty() gets a value associated with an image property.

The format of the GetImageProperty method is:

      const char *GetImageProperty(const Image *image,const char *key)

A description of each parameter follows:

##### image

the image.

##### key

the key.

## GetNextImageProperty

GetNextImageProperty() gets the next image property value.

The format of the GetNextImageProperty method is:

      char *GetNextImageProperty(const Image *image)

A description of each parameter follows:

##### image

the image.

## InterpretImageProperties

InterpretImageProperties() replaces any embedded formatting characters with the appropriate image property and returns the interpretted text.

The format of the InterpretImageProperties method is:

      char *InterpretImageProperties(const ImageInfo *image_info,Image *image,
        const char *embed_text)

A description of each parameter follows:

##### image_info

the image info.

##### image

the image.

##### embed_text

the address of a character string containing the embedded formatting characters.

## RemoveImageProperty

RemoveImageProperty() removes a property from the image and returns its value.

The format of the RemoveImageProperty method is:

      char *RemoveImageProperty(Image *image,const char *property)

A description of each parameter follows:

##### image

the image.

##### property

the image property.

## ResetImagePropertyIterator

ResetImagePropertyIterator() resets the image properties iterator. Use it in conjunction with GetNextImageProperty() to iterate over all the values associated with an image property.

The format of the ResetImagePropertyIterator method is:

      ResetImagePropertyIterator(Image *image)

A description of each parameter follows:

##### image

the image.

## SetImageProperty

SetImageProperty() associates an value with an image property.

The format of the SetImageProperty method is:

      MagickBooleanType SetImageProperty(Image *image,const char *property,
        const char *value)

A description of each parameter follows:

##### image

the image.

##### property

the image property.

##### values

the image property values.

Discourse Server • Studio