# MagickCore, C API: Read or List Image formats @ ImageMagick
ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Author: ImageMagick Studio LLC
Keywords: magickcore, c, api:, read, or, list, image, formats, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert

AcquireMagickInfo • GetMagickPrecision • IsMagickCoreInstantiated • MagickCoreGenesis • MagickCoreTerminus • SetMagickPrecision

## AcquireMagickInfo

AcquireMagickInfo() allocates a MagickInfo structure and initializes the members to default values.

The format of the AcquireMagickInfo method is:

    MagickInfo *AcquireMagickInfo(const char *module, const char *name,)

A description of each parameter follows:

module
  a character string that represents the module associated with the MagickInfo structure.
name
  a character string that represents the image format associated with the MagickInfo structure.
description
  a character string that represents the image format associated with the MagickInfo structure.

## GetMagickPrecision

GetMagickPrecision() returns the maximum number of significant digits to be printed.

The format of the GetMagickPrecision method is:

    int GetMagickPrecision(void)

## IsMagickCoreInstantiated

IsMagickCoreInstantiated() returns MagickTrue if the ImageMagick environment is currently instantiated: MagickCoreGenesis() has been called but MagickDestroy() has not.

The format of the IsMagickCoreInstantiated method is:

    MagickBooleanType IsMagickCoreInstantiated(void)

## MagickCoreGenesis

MagickCoreGenesis() initializes the MagickCore environment.

The format of the MagickCoreGenesis function is:

    MagickCoreGenesis(const char *path,
      const MagickBooleanType establish_signal_handlers)

A description of each parameter follows:

path
  the execution path of the current ImageMagick client.
establish_signal_handlers
  set to MagickTrue to use MagickCore's own signal handlers for common signals.

## MagickCoreTerminus

MagickCoreTerminus() destroys the MagickCore environment.

The format of the MagickCoreTerminus function is:

    MagickCoreTerminus(void)

## SetMagickPrecision

SetMagickPrecision() sets the maximum number of significant digits to be printed.

An input argument of 0 returns the current precision setting.

A negative value forces the precision to reset to a default value according to the environment variable "MAGICK_PRECISION", the current 'policy' configuration setting, or the default value of '6', in that order.

The format of the SetMagickPrecision method is:

    int SetMagickPrecision(const int precision)

A description of each parameter follows:

precision
  set the maximum number of significant digits to be printed.