mogrify.c File Reference

#include "wand/studio.h"
#include "wand/MagickWand.h"
#include "wand/magick-wand-private.h"
#include "wand/mogrify-private.h"
#include "magick/blob-private.h"
#include "magick/color-private.h"
#include "magick/image-private.h"
#include "magick/monitor-private.h"
#include "magick/pixel-private.h"
#include "magick/thread-private.h"
#include "magick/string-private.h"
#include "magick/timer-private.h"
#include "magick/utility-private.h"
Include dependency graph for mogrify.c:

Defines

#define UndefinedCompressionQuality   0UL
#define DestroyMogrify()
#define ThrowMogrifyException(asperity, tag, option)
#define ThrowMogrifyInvalidArgumentException(option, argument)
#define MogrifyImageTag   "Mogrify/Image"

Functions

WandExport MagickBooleanType MagickCommandGenesis (ImageInfo *image_info, MagickCommand command, int argc, char **argv, char **metadata, ExceptionInfo *exception)
static Image * GetImageCache (const ImageInfo *image_info, const char *path, ExceptionInfo *exception)
static MagickBooleanType IsPathWritable (const char *path)
static MagickBooleanType MonitorProgress (const char *text, const MagickOffsetType offset, const MagickSizeType extent, void *wand_unused(client_data))
static Image * SparseColorOption (const Image *image, const ChannelType channel, const SparseColorMethod method, const char *arguments, const MagickBooleanType color_from_image, ExceptionInfo *exception)
WandExport MagickBooleanType MogrifyImage (ImageInfo *image_info, const int argc, const char **argv, Image **image, ExceptionInfo *exception)
static MagickBooleanType MogrifyUsage (void)
WandExport MagickBooleanType MogrifyImageCommand (ImageInfo *image_info, int argc, char **argv, char **wand_unused(metadata), ExceptionInfo *exception)
WandExport MagickBooleanType MogrifyImageInfo (ImageInfo *image_info, const int argc, const char **argv, ExceptionInfo *exception)
WandExport MagickBooleanType MogrifyImageList (ImageInfo *image_info, const int argc, const char **argv, Image **images, ExceptionInfo *exception)
WandExport MagickBooleanType MogrifyImages (ImageInfo *image_info, const MagickBooleanType post, const int argc, const char **argv, Image **images, ExceptionInfo *exception)

Variables

static const char MogrifyBackgroundColor [] = "#fff"
static const char MogrifyBorderColor [] = "#dfdfdf"
static const char MogrifyMatteColor [] = "#bdbdbd"

Define Documentation

 
#define DestroyMogrify (  ) 
Value:
{ \
  if (format != (char *) NULL) \
    format=DestroyString(format); \
  if (path != (char *) NULL) \
    path=DestroyString(path); \
  DestroyImageStack(); \
  for (i=0; i < (ssize_t) argc; i++) \
    argv[i]=DestroyString(argv[i]); \
  argv=(char **) RelinquishMagickMemory(argv); \
}

Referenced by MogrifyImageCommand().

#define MogrifyImageTag   "Mogrify/Image"

Referenced by MogrifyImages().

#define ThrowMogrifyException ( asperity,
tag,
option   ) 
Value:
{ \
  (void) ThrowMagickException(exception,GetMagickModule(),asperity,tag,"`%s'", \
    option); \
  DestroyMogrify(); \
  return(MagickFalse); \
}

Referenced by MogrifyImageCommand().

#define ThrowMogrifyInvalidArgumentException ( option,
argument   ) 
Value:
{ \
  (void) ThrowMagickException(exception,GetMagickModule(),OptionError, \
    "InvalidArgument","`%s': %s",argument,option); \
  DestroyMogrify(); \
  return(MagickFalse); \
}

Referenced by MogrifyImageCommand().

#define UndefinedCompressionQuality   0UL

Referenced by MogrifyImageInfo().


Function Documentation

static Image* GetImageCache ( const ImageInfo *  image_info,
const char *  path,
ExceptionInfo *  exception 
) [inline, static]

References MaxTextExtent.

Referenced by MogrifyImage().

static MagickBooleanType IsPathWritable ( const char *  path  )  [inline, static]

Referenced by MogrifyImageCommand().

WandExport MagickBooleanType MagickCommandGenesis ( ImageInfo *  image_info,
MagickCommand  command,
int  argc,
char **  argv,
char **  metadata,
ExceptionInfo *  exception 
)
WandExport MagickBooleanType MogrifyImage ( ImageInfo *  image_info,
const int  argc,
const char **  argv,
Image **  image,
ExceptionInfo *  exception 
)
WandExport MagickBooleanType MogrifyImageCommand ( ImageInfo *  image_info,
int  argc,
char **  argv,
char **  wand_unusedmetadata,
ExceptionInfo *  exception 
)
WandExport MagickBooleanType MogrifyImageInfo ( ImageInfo *  image_info,
const int  argc,
const char **  argv,
ExceptionInfo *  exception 
)
WandExport MagickBooleanType MogrifyImageList ( ImageInfo *  image_info,
const int  argc,
const char **  argv,
Image **  images,
ExceptionInfo *  exception 
)
WandExport MagickBooleanType MogrifyImages ( ImageInfo *  image_info,
const MagickBooleanType  post,
const int  argc,
const char **  argv,
Image **  images,
ExceptionInfo *  exception 
)
static MagickBooleanType MogrifyUsage ( void   )  [static]

Referenced by MogrifyImageCommand().

static MagickBooleanType MonitorProgress ( const char *  text,
const MagickOffsetType  offset,
const MagickSizeType  extent,
void *  wand_unusedclient_data 
) [static]

References MaxTextExtent, and wand_unreferenced.

Referenced by MogrifyImage(), and MogrifyImageInfo().

static Image* SparseColorOption ( const Image *  image,
const ChannelType  channel,
const SparseColorMethod  method,
const char *  arguments,
const MagickBooleanType  color_from_image,
ExceptionInfo *  exception 
) [static]

References MaxTextExtent.

Referenced by MogrifyImage().


Variable Documentation

const char MogrifyBackgroundColor[] = "#fff" [static]

Referenced by MogrifyImageInfo().

const char MogrifyBorderColor[] = "#dfdfdf" [static]

Referenced by MogrifyImage(), and MogrifyImageInfo().

const char MogrifyMatteColor[] = "#bdbdbd" [static]

Referenced by MogrifyImageInfo().


Generated on 2 Jul 2019 for MagickWand by  doxygen 1.6.1