if (magick_image == (Image *) NULL)
ThrowWriterException(ResourceLimitError,exception->reason);
write_info=CloneImageInfo(image_info);
-
- /* Set output format */
+ /*
+ Set output format.
+ */
*write_info->filename='\0';
value=GetImageOption(image_info,"h:format");
if (value == (char *) NULL)
value=GetImageOption(image_info,"magick:format");
-
if ((value == (char *) NULL) || (IsOptionMember("H",value) != MagickFalse) ||
(IsOptionMember("MAGICK",value) != MagickFalse))
- { /* Use default GIF or PNM */
+ {
+ /*
+ Use default GIF or PNM.
+ */
if (magick_image->storage_class == DirectClass)
(void) CopyMagickString(write_info->magick,"PNM",MagickPathExtent);
else
(void) CopyMagickString(write_info->magick,"GIF",MagickPathExtent);
}
- else /* Use the requested format */
- (void) CopyMagickString(write_info->magick,value,MagickPathExtent);
-
+ else
+ (void) CopyMagickString(write_info->magick,value,MagickPathExtent); /* use the requested format */
blob=ImageToBlob(write_info,magick_image,&length,exception);
magick_image=DestroyImage(magick_image);
if (blob == (void *) NULL)
}
(void) WriteBlobString(image,"/*\n");
(void) FormatLocaleString(buffer,MagickPathExtent," %s (%s).\n",
- image->filename, write_info->magick);
+ image->filename,write_info->magick);
(void) DestroyImageInfo(write_info);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"*/\n");