WarnNoImageReturn("\"%%%c\"",letter);
colorspace=image->colorspace;
- if (SetImageGray(image,exception) != MagickFalse)
+ if ((image->columns != 0) && (image->rows != 0) &&
+ (SetImageGray(image,exception) != MagickFalse))
colorspace=GRAYColorspace; /* FUTURE: this is IMv6 not IMv7 */
(void) FormatLocaleString(value,MagickPathExtent,"%s %s %s",
CommandOptionToMnemonic(MagickClassOptions,(ssize_t)
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickCoreSignature);
image=AcquireImage(image_info,exception);
- image->columns=1;
- image->rows=1;
- (void) SetImageBackgroundColor(image,exception);
(void) ResetImagePage(image,"0x0+0+0");
/*
Format caption.
else
property=InterpretImageProperties((ImageInfo *) image_info,image,option,
exception);
- image=DestroyImage(image);
- image=AcquireImage(image_info,exception);
- (void) ResetImagePage(image,"0x0+0+0");
(void) SetImageProperty(image,"caption",property,exception);
property=DestroyString(property);
caption=ConstantString(GetImageProperty(image,"caption",exception));
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickCoreSignature);
image=AcquireImage(image_info,exception);
- image->columns=1;
- image->rows=1;
- (void) SetImageBackgroundColor(image,exception);
(void) ResetImagePage(image,"0x0+0+0");
property=InterpretImageProperties((ImageInfo *) image_info,image,
image_info->filename,exception);
- image=DestroyImage(image);
- image=AcquireImage(image_info,exception);
- (void) ResetImagePage(image,"0x0+0+0");
(void) SetImageProperty(image,"label",property,exception);
property=DestroyString(property);
label=GetImageProperty(image,"label",exception);