}
if (LocaleCompare("composite",option+1) == 0)
{
+ const char
+ *value;
+
Image
*mask_image,
*composite_image,
geometry;
(void) SyncImagesSettings(mogrify_info,*images,exception);
- clip_to_self=IsStringTrue(GetImageOption(mogrify_info,
- "compose:clip-to-self")); /* if this is true */
+ value=GetImageOption(mogrify_info,"compose:clip-to-self");
+ if (value == (const char *) NULL)
+ clip_to_self=MagickTrue;
+ else
+ clip_to_self=IsStringTrue(GetImageOption(mogrify_info,
+ "compose:clip-to-self")); /* if this is true */
if (IsMagickFalse(clip_to_self)) /* or */
clip_to_self=IfMagickFalse(IsStringNotFalse(GetImageOption(
mogrify_info,"compose:outside-overlay"))); /* this false */
/* Compose value from "-compose" option only */
value=GetImageOption(_image_info,"compose");
- if (value != (const char *) NULL)
- compose=(CompositeOperator) ParseCommandOption(
- MagickComposeOptions,MagickFalse,value);
- else
+ if (value == (const char *) NULL)
compose=OverCompositeOp; /* use Over not source_image->compose */
+ else
+ compose=(CompositeOperator) ParseCommandOption(MagickComposeOptions,
+ MagickFalse,value);
/* Get "clip-to-self" expert setting (false is normal) */
- clip_to_self=IsStringTrue(GetImageOption(_image_info,
- "compose:clip-to-self")); /* if this is true */
+ value=GetImageOption(_image_info,"compose:clip-to-self");
+ if (value == (const char *) NULL)
+ clip_to_self=MagickTrue;
+ else
+ clip_to_self=IsStringTrue(GetImageOption(_image_info,
+ "compose:clip-to-self")); /* if this is true */
value=GetImageOption(_image_info,"compose:outside-overlay");
if (value != (const char *) NULL) { /* or this false */
/* FUTURE: depreciate warning for "compose:outside-overlay"*/