Skip to content

Commit

Permalink
Better document the default behavior and limitations in rendering SVGs (
Browse files Browse the repository at this point in the history
  • Loading branch information
peteroupc authored Jul 9, 2024
1 parent 9dcf493 commit 3c934e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/formats.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@
<td><a href="http://www.w3.org/Graphics/SVG">SVG</a></td>
<td>RW</td>
<td>Scalable Vector Graphics</td>
<td>ImageMagick utilizes <a href="http://www.inkscape.org/">inkscape</a> if its in your execution path otherwise <a href="http://developer.gnome.org/rsvg/">RSVG</a>. If neither are available, ImageMagick reverts to its internal SVG renderer. The default resolution is 96 DPI. Use <a href="<?php echo $_SESSION['RelativePath']?>/../script/command-line-options.php#size">-size</a> command line option to specify the maximum width and height. If you want to substitute entities and you trust the SVG source, enable this option: <samp>-define svg:substitute-entities=true</samp>. If you want to render a very large SVG and you trust the source, enable this option: <samp>-define svg:parse-huge=true</samp>.</td>
<td>By default, ImageMagick renders SVGs with <a href="http://www.inkscape.org/">inkscape</a> if Inkscape is in your execution path; otherwise <a href="http://developer.gnome.org/rsvg/">RSVG</a>. If neither is available, ImageMagick reverts to its internal SVG renderer (called MSVG). The default resolution is 96 dpi. Use the <a href="<?php echo $_SESSION['RelativePath']?>/../script/command-line-options.php#size">-size</a> command line option to specify the maximum width and height. (<samp>-size</samp> is currently ignored by the Inkscape renderer due to a limitation on the Inkscape side.) If you want to substitute entities and you trust the SVG source, enable this option: <samp>-define svg:substitute-entities=true</samp>. If you want to render a very large SVG and you trust the source, enable this option: <samp>-define svg:parse-huge=true</samp>. If RSVG is installed and you want to render an SVG using RSVG, add <samp>rsvg:</samp> just before the file name. If you want to render an SVG using MSVG, add <samp>msvg:</samp> just before the file name.</td>
</tr>

<tr>
Expand Down

0 comments on commit 3c934e4

Please sign in to comment.