title: Save an image to a mobile phone gallery from a browser
body: <p>So this seems unlikely purely from a security point of view, but I need to cover my bases. Has anyone come across a method for saving an image in a browser to the user's gallery? In this case, I'm specifically talking about from site served javascript (<strong>not phonegap</strong>). </p>
  
  <p>While I know you can tap and hold on the image to save, I'd love a button for our less technically inclined users. </p>
  
  <p>The phone ecosystem is diverse, so any phone would work for me. I'm just curious if it's possible.</p>
  
  <p>Some attempts:</p>
  
  <p><strong>Works on desktop, links through on phone (Android)</strong></p>
  
  <pre><code>&lt;a href="logo.png" download="logo.png"&gt;
      &lt;img src="logo.png" alt=""&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p><strong>Hangs when clicked (Android)</strong></p>
  
  <p><a href="https://stackoverflow.com/questions/7951326/save-image-to-users-disk-using-javascript/7952401#7952401">save image to user&#39;s disk using javascript</a></p>