+2019-08-24 7.0.8-63 Cristy <quetzlzacatenango@image...>
+ * Release ImageMagick version 7.0.8-63, GIT revision 16...
+
+2019-08-24 7.0.8-62 Cristy <quetzlzacatenango@image...>
+ * Properly identify the image format of an HTTPS image.
+
2019-08-23 7.0.8-62 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.8-62, GIT revision 16061:7525595:20190823.
read_info=CloneImageInfo(image_info);
SetImageInfoBlob(read_info,(void *) NULL,0);
+#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__MINGW32__)
+ if (LocaleCompare(read_info->magick,"https") == 0)
+ {
+ Image
+ *image,
+ *images,
+ *next;
+
+ MagickBooleanType
+ status;
+
+ /*
+ Leverage delegate to read HTTPS link.
+ */
+ images=(Image *) NULL;
+ image=AcquireImage(image_info,exception);
+ status=InvokeDelegate(read_info,image,"https:decode",(char *) NULL,
+ exception);
+ if (status != MagickFalse)
+ {
+ (void) FormatLocaleString(read_info->filename,MagickPathExtent,
+ "%s.dat",read_info->unique);
+ *read_info->magick='\0';
+ images=ReadImage(read_info,exception);
+ (void) RelinquishUniqueFileResource(read_info->filename);
+ (void) CopyMagickString(read_info->filename,image->filename,
+ MagickPathExtent);
+ (void) SetImageInfo(read_info,1,exception);
+ if (images != (Image *) NULL)
+ for (next=images; next != (Image *) NULL; next=next->next)
+ {
+ (void) CopyMagickString(next->filename,image->filename,
+ MagickPathExtent);
+ (void) CopyMagickString(next->magick,read_info->magick,
+ MagickPathExtent);
+ }
+ }
+ read_info=DestroyImageInfo(read_info);
+ image=DestroyImage(image);
+ return(images);
+ }
+#endif
if (LocaleCompare(read_info->magick,"file") == 0)
{
(void) CopyMagickString(read_info->filename,image_info->filename+2,
entry->format_type=ImplicitFormatType;
(void) RegisterMagickInfo(entry);
entry=AcquireMagickInfo("URL","HTTPS","Uniform Resource Locator (https://)");
-#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \
- !defined(__MINGW32__)
entry->decoder=(DecodeImageHandler *) ReadURLImage;
-#endif
entry->format_type=ImplicitFormatType;
(void) RegisterMagickInfo(entry);
entry=AcquireMagickInfo("URL","FTP","Uniform Resource Locator (ftp://)");
<delegate decode="browse" stealth="True" spawn="True" command=""@BrowseDelegate@" https://imagemagick.org/; @RMDelegate@ "%i""/>
<delegate decode="cdr" command=""@UniconvertorDelegate@" "%i" "%o.svg"; @MVDelegate@ "%o.svg" "%o""/>
<delegate decode="cgm" command=""@UniconvertorDelegate@" "%i" "%o.svg"; @MVDelegate@ "%o.svg" "%o""/>
- <delegate decode="https" command=""@WWWDecodeDelegate@" -s -k -L -o "%o" "https:%M""/>
+ <delegate decode="https:decode" command=""@WWWDecodeDelegate@" -s -k -L -o "%u.dat" "https:%M""/>
<delegate decode="doc" command=""@DOCDecodeDelegate@" --convert-to pdf -outdir `dirname "%i"` "%i" 2> "%u"; @MVDelegate@ "%i.pdf" "%o""/>
<delegate decode="docx" command=""@DOCDecodeDelegate@" --convert-to pdf -outdir `dirname "%i"` "%i" 2> "%u"; @MVDelegate@ "%i.pdf" "%o""/>
<delegate decode="dng:decode" command=""@DNGDecodeDelegate@" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i""/>