title: Intervention Image - save to variable in base64 encoded format
body: <p>I'm using Laravel with image manipulating package <a href="http://image.intervention.io/getting_started/introduction" rel="noreferrer">Intervention Image</a>. </p>
  
  <p>I want to save cropped image to variable and then to DB but can't find in documentation how to export result as string. Here's my code:</p>
  
  
  
  <pre><code>$img = Image::make($uploadedImage);
  $img-&gt;crop(160, 210);
  $imageEncoded = // ?
  </code></pre>
  
  <p>There's <a href="http://image.intervention.io/api/save" rel="noreferrer"><code>save()</code></a>, but it only saves to file.</p>
  
  <p>How can I export modified Intervention Image to string variable? (<code>data:image/jpeg;base64,…</code>)</p>