title: How do I use Python PIL to save an image to a particular directory?
body: <p>For example I want to manipulate some image and then save it to a particular directory. How do I save to a specific directory other than the one I am in?
  I understand that this will save to the directory I am in:</p>
  <pre><code>from PIL import Image
  &quot;&quot;&quot; Some Code &quot;&quot;&quot;
  img.save(&quot;sample.png&quot;, &quot;&quot;)
  </code></pre>
  <p>How do I save to a different directory?</p>