title: Integrate Intervention library with Laravel (serve scaled images)
body: <p>Im getting this issue "Serve scaled images" issue like:</p>
  
  <blockquote>
    <p><a href="https://....ngrok.io/uploads/posts/img1.png" rel="nofollow noreferrer">https://....ngrok.io/uploads/posts/img1.png</a> is     resized in HTML
    or CSS from 800x400 to 251x119.    Serving a scaled image could save
    173.3KiB (90% reduction).</p>
  </blockquote>
  
  <p>So maybe using the Intervention library can help to solve the issue. But Im not understanding how to properly use the library with Laravel.</p>
  
  <p>I installed with "<code>composer install intervention/image</code>". But then in the documentation example for Laravel:</p>
  
  <pre><code>// usage inside a laravel route
  Route::get('/', function()
  {
      $img = Image::make('foo.jpg')-&gt;resize(300, 200);
  
      return $img-&gt;response('jpg');
  });
  </code></pre>
  
  <p>But Im not understanding how to apply this example to the image shown in the show.blade.php file? </p>
  
  <p>For now the image is presented in the show.blade.php like:</p>
  
  <pre><code> &lt;img class="card-img-top img-fluid"
   style="max-height: 121px; border:1px solid #eee;"
   src="{{ 
   $post-&gt;image == null 
   ? url('img/default.png') :    url($post-&gt;image)}}"  alt="Card image cap"&gt;
  </code></pre>