Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>ImageMagick cannot be used to do that, because it is a "raster image processor". So in anyway, the image is gonna be rasterized before any operation (see <a href="http://www.imagemagick.org/Usage/formats/#vector" rel="nofollow">Vector Image formats</a>).</p> <p>I achieved to get something pretty clean with inkscape.</p> <p>First of all, we'll need a simple svg file containing the text. Such a file can easily generated with PHP or any other language:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt; &lt;svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" version="1.1"&gt; &lt;g&gt; &lt;text xml:space="preserve" style="font-size:40px; font-style:normal; font-weight:normal; line-height:125%; letter-spacing:0px; word-spacing:0px; fill:#000000; fill-opacity:1; stroke:none; font-family:Helvetica" x="0" y="0" sodipodi:linespacing="125%"&gt;&lt;tspan sodipodi:role="line" x="0" y="0"&gt;Hello World!&lt;/tspan&gt;&lt;/text&gt; &lt;/g&gt; &lt;/svg&gt; </code></pre> <p>From there, we can easily change the text, font, color... then the following command line do the trick (by adjusting the <code>-w</code> and <code>-h</code> parameters):</p> <pre><code>inkscape filename.svg --export-png=filename.png -w800 -h300 --export-area-drawing </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload