]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 27 Dec 2014 12:10:39 +0000 (12:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 27 Dec 2014 12:10:39 +0000 (12:10 +0000)
MagickCore/image.c

index 35dcb9463e43671ee4a2098319a6899396b81af2..a64d679406bc16571fd6ac4004d15ee5f81ef1de 100644 (file)
@@ -2431,7 +2431,8 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info,
         }
     }
   *extension='\0';
-  GetPathComponent(image_info->filename,ExtensionPath,extension);
+  if (*image_info->magick == '\0')
+    GetPathComponent(image_info->filename,ExtensionPath,extension);
 #if defined(MAGICKCORE_ZLIB_DELEGATE)
   if (*extension != '\0')
     if ((LocaleCompare(extension,"gz") == 0) ||