title: How to draw quality image stroke (border) with Imagemagick or PIL?
body: <p>I tried to draw image stroke (border) to my png image.
  <img src="https://i.ibb.co/wgtrqLG/bomb-source.png" alt="original">
  <img src="https://i.ibb.co/tcqB0P1/gt-19px-2a7940.png" alt="ph_res"><br>
  (*expected 19px stroke layer style result by Photoshop)</p>
  
  <p>and I found helpful script from imagemagick forum. (<a href="https://www.imagemagick.org/discourse-server/viewtopic.php?t=16399#top" rel="nofollow noreferrer">imagemagick discourse</a>) </p>
  
  <pre><code>convert source.png -background '#2a7940' -alpha background -channel A -blur 9x11 stroked.png
  </code></pre>
  
  <p>but my best trial is far from Photoshop result.
  <img src="https://i.ibb.co/syS9zfL/blur5.png" alt="im_res"><br></p>
  
  <p>I tried many combinations of Radius*Sigma but it seems the best result from blur trick.. (-blur 9x11 for this one)<br><br>
  <b>Question </b><br>
  * Can I have better image stroke from Imagemagick or PIL or other CLI tools? <br>
  * If so, how..? <br>
  Thank you so much for reading this question.</p>