title: Intervention Image encode file extension
body: <p>I'm trying to change all images uploaded to png format. I'm using the <a href="http://image.intervention.io/api/encode" rel="nofollow noreferrer">Intervention Image</a> package for Laravel, and calling the encode function. Image Files are not changing to .png</p>
  
  <p>Here is my upload script: (<em>Everything is uploading, resizing and appears to be compressing. Just not converting to a png file</em>)</p>
  
  <pre><code>if($request-&gt;hasFile('listing_image')){
      $classifiedImg = $request-&gt;file('listing_image');
      $filename = 'listing'.'-'.uniqid().'.'.$classifiedImg-&gt;getClientOriginalExtension();
  
      Image::make($classifiedImg)-&gt;encode('png', 65)-&gt;resize(760, null, function ($c) {
          $c-&gt;aspectRatio();
          $c-&gt;upsize();
          })-&gt;save(public_path('/images/users/listing-images/' . $filename));
  
      $classified-&gt;listing_image = $filename;
      $classified-&gt;save();
  }else{
      $classified-&gt;save();
  }
  </code></pre>
  
  <p>Am I doing something wrong in this section:</p>
  
  <pre><code>Image::make($classifiedImg)-&gt;encode('png', 65)-&gt;resize(760, null, function ($c)...
  </code></pre>
  
  <p>OR is this causing the issue:</p>
  
  <pre><code>getClientOriginalExtension();
  </code></pre>