From b3e394f878460eaf5282698e29c67a2542acef4b Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 8 Aug 2018 20:21:47 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1243 --- MagickCore/resize.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MagickCore/resize.c b/MagickCore/resize.c index 9dbed9202..a9d0ddbc6 100644 --- a/MagickCore/resize.c +++ b/MagickCore/resize.c @@ -3670,6 +3670,7 @@ MagickExport Image *ThumbnailImage(const Image *image,const size_t columns, #define SampleFactor 5 char + filename[MagickPathExtent], *url, value[MagickPathExtent]; @@ -3738,7 +3739,8 @@ MagickExport Image *ThumbnailImage(const Image *image,const size_t columns, (void) FormatLocaleString(value,MagickPathExtent,"file://%s", image->magick_filename); (void) SetImageProperty(thumbnail_image,"Thumb::URI",value,exception); - (void) CopyMagickString(value,image->magick_filename,MagickPathExtent); + GetPathComponent(image->magick_filename,TailPath,filename); + (void) CopyMagickString(value,filename,MagickPathExtent); if ( GetPathAttributes(image->filename,&attributes) != MagickFalse ) { (void) FormatLocaleString(value,MagickPathExtent,"%.20g",(double) -- 2.40.0