title: convert .heic image to jpg image format in laravel
body: <p>I have added <strong>intervention/image</strong> package to convert image format in laravel.</p>
  
  <p>image converted successfully but after uploading image quality was so bad.</p>
  
  <p><strong>Original Image</strong>
  <a href="https://i.stack.imgur.com/7qcpu.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/7qcpu.jpg" alt="Original Image"></a></p>
  
  <p><strong>Uploaded Image</strong>
  <a href="https://i.stack.imgur.com/wP78l.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wP78l.png" alt="Uploaded Image"></a></p>
  
  <p><a href="https://i.stack.imgur.com/EWsTg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EWsTg.png" alt="image blur"></a></p>
  
  <pre><code>$img =(string) Image::make($image['base64'])
      -&gt;resize(500, 500)-&gt;encode('jpg',100);;
  $img = base64_encode($img);
  </code></pre>