From: Dirk Lemstra Date: Mon, 20 Nov 2017 21:59:27 +0000 (+0100) Subject: Explicitly set image format in CustomStreamToImage() X-Git-Tag: 7.0.7-12~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6645a122ee83105008e8447f92555e4a9e307ecf;p=imagemagick Explicitly set image format in CustomStreamToImage() --- diff --git a/MagickCore/blob.c b/MagickCore/blob.c index cb5b53b15..a124baa62 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -768,6 +768,8 @@ MagickExport Image *CustomStreamToImage(const ImageInfo *image_info, Native blob support for this image format or SetImageInfo changed the blob to a file. */ + (void) FormatLocaleString(blob_info->filename,MagickPathExtent,"%s:%s", + blob_info->magick,image_info->filename); image=ReadImage(blob_info,exception); if (image != (Image *) NULL) (void) CloseBlob(image);