title: How to resize SVG with PHP?
body: <p>I am trying to resize (increase size) a SVG inside a PHP script and save it as a new SVG. Given SVG is generated by another script. It contains image and texts.</p>
  
  <p>I have tried with <code>imagick</code>, but the generated svg is broken, and doesn't include any of the contents.</p>
  
  <p>This is how I have done:</p>
  
  <pre><code>$image = new Imagick();
  $image-&gt;setResolution(2000,2000);
  $image-&gt;readImage('/pathe/to/my/svg.svg');
  $image-&gt;scaleImage(1000,1000);
  file_put_contents('/pathe/to/my/new.svg', $image-&gt;getImageBlob());
  </code></pre>