ImageMagick – MagickWand, C API: Command-line Interface
Author: ImageMagick Studio LLC
Description: ImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for web developers, graphic designers, and researchers, it offers versatile tools for image processing, including batch processing, format conversion, and complex image transformations.
Keywords: MagickWand, C API: Command-line Interface, Image Processing, Digital Image Editing, Image Conversion, Open-Source Software, Image Manipulation, Command-Line Image Tools

# Mogrify

## MagickCommandGenesis

MagickCommandGenesis() applies image processing options to an image as prescribed by command line options.

The format of the MagickCommandGenesis method is:

    MagickBooleanType MagickCommandGenesis(ImageInfo *image_info,
      MagickCommand command,int argc,char **argv,char **metadata,
      ExceptionInfo *exception)

A description of each parameter follows:

image_info
  the image info.
command
  Choose from ConvertImageCommand, IdentifyImageCommand, MogrifyImageCommand, CompositeImageCommand, CompareImageCommand, ConjureImageCommand, StreamImageCommand, ImportImageCommand, DisplayImageCommand, or AnimateImageCommand.
argc
  Specifies a pointer to an integer describing the number of elements in the argument vector.
argv
  Specifies a pointer to a text array containing the command line arguments.
metadata
  any metadata is returned here.
exception
  return any errors or warnings in this structure.