]> granicus.if.org Git - imagemagick/commitdiff
Explicitly set image format in CustomStreamToImage()
authorDirk Lemstra <dirk@git.imagemagick.org>
Mon, 20 Nov 2017 21:59:27 +0000 (22:59 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Mon, 20 Nov 2017 21:59:27 +0000 (22:59 +0100)
MagickCore/blob.c

index cb5b53b15f3bc35113c2e8406665236cefb5c4fa..a124baa62c39e664ba9bb2e3948bce5bbaac68eb 100644 (file)
@@ -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);