Adapt to a change in command-line options in the SVG inkscape delegate
diff --git a/ChangeLog b/ChangeLog
index 25319b3..9bece5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-02-18 7.0.9-25 Cristy <quetzlzacatenango@image...>
+ * Release ImageMagick version 7.0.9-25, GIT revision 16...
+
+2020-02-18 7.0.9-25 Cristy <quetzlzacatenango@image...>
+ * Adapt to a change in command-line options in the SVG inkscape delegate.
+
2020-02-17 7.0.9-24 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.9-24, GIT revision 16919:41efef9de:20200217
diff --git a/coders/svg.c b/coders/svg.c
index be5f1fd..ad15324 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -303,11 +303,12 @@
if (delegate_info == (const DelegateInfo *) NULL)
return((Image *) NULL);
status=AcquireUniqueSymbolicLink(image->filename,input_filename);
- (void) AcquireUniqueFilename(output_filename);
+ (void) AcquireUniqueFilename(unique);
+ (void) FormatLocaleString(output_filename,MagickPathExtent,"%s.png",unique);
(void) AcquireUniqueFilename(unique);
density=AcquireString("");
- (void) FormatLocaleString(density,MagickPathExtent,"%.20g,%.20g",
- image->resolution.x,image->resolution.y);
+ (void) FormatLocaleString(density,MagickPathExtent,"%.20g",
+ ceil(sqrt(image->resolution.x*image->resolution.y)-0.5));
(void) FormatLocaleString(background,MagickPathExtent,
"rgb(%.20g%%,%.20g%%,%.20g%%)",
100.0*QuantumScale*image->background_color.red,
diff --git a/config/delegates.xml.in b/config/delegates.xml.in
index c12eeca..6f1017b 100644
--- a/config/delegates.xml.in
+++ b/config/delegates.xml.in
@@ -110,7 +110,7 @@
<delegate decode="shtml" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/>
<delegate decode="sid" command=""@MrSIDDecodeDelegate@" -if sid -i "%i" -of tif -o "%o" > "%u""/>
<delegate decode="svg" command=""@RSVGDecodeDelegate@" -o "%o" "%i""/>
- <delegate decode="svg:decode" stealth="True" command=""@SVGDecodeDelegate@" "%s" --export-png="%s" --export-dpi="%s" --export-background="%s" --export-background-opacity="%s" > "%s" 2>&1"/>
+ <delegate decode="svg:decode" stealth="True" command=""@SVGDecodeDelegate@" "%s" --export-file="%s" --export-dpi="%s" --export-background="%s" --export-background-opacity="%s" > "%s" 2>&1"/>
<delegate decode="tiff" encode="launch" mode="encode" command=""@LaunchDelegate@" "%i""/>
<delegate decode="wdp" command="@MVDelegate@ "%i" "%i.jxr"; "@JXRDecodeDelegate@" -i "%i.jxr" -o "%o.bmp"; @MVDelegate@ "%i.jxr" "%i"; @MVDelegate@ "%o.bmp" "%o""/>
<delegate decode="webp" command=""@WebPDecodeDelegate@" -pam "%i" -o "%o""/>