Skip to content

Commit

Permalink
Explicitly set image format in CustomStreamToImage()
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 20, 2017
1 parent a6158b7 commit 6645a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MagickCore/blob.c
Expand Up @@ -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);
Expand Down

0 comments on commit 6645a12

Please sign in to comment.