images->blob->exempt=MagickTrue;
*images->filename='\0';
status=WriteImages(blob_info,images,images->filename,exception);
- if ((status == MagickFalse) || (images->blob->length == 0))
- InheritException(exception,&images->exception);
- else
+ if ((status != MagickFalse) && (images->blob->length != 0))
{
*length=images->blob->length;
blob=DetachBlob(images->blob);
images->magick,unique);
status=WriteImages(blob_info,images,filename,exception);
(void) fclose(blob_info->file);
- if (status == MagickFalse)
- InheritException(exception,&images->exception);
- else
+ if (status != MagickFalse)
blob=FileToBlob(images->filename,~0UL,length,exception);
}
(void) RelinquishUniqueFileResource(unique);
picture_image=DestroyImage(picture_image);
if (bend_image == (Image *) NULL)
return((Image *) NULL);
- InheritException(&bend_image->exception,exception);
picture_image=bend_image;
rotate_image=RotateImage(picture_image,-90.0,exception);
picture_image=DestroyImage(picture_image);
shadow_image=ShadowImage(image,80.0,2.0,5,5,exception);
if (shadow_image != (Image *) NULL)
{
- InheritException(&shadow_image->exception,exception);
(void) CompositeImage(shadow_image,OverCompositeOp,image,0,0);
image=DestroyImage(image);
image=shadow_image;