title: Laravel 4.2 throws NotReadableException "Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files."
body: <p>After checked about 20 solutions I gave up and need help.
  I've got 2 JPG files. Both have proper mime, they are not too big for upload_max_filesize, names are ok, path is ok. Every solution was about one of those issues.</p>
  
  <p>My problem is when I run script on first image it is ok, no error, object is created:</p>
  
  <pre><code>$image1 = Image::make(public_path()."/uploads/goodimage.jpg");
  </code></pre>
  
  <p><strong>See example:</strong>
  <a href="https://app.esticrm.pl/uploads/goodimage.jpg" rel="nofollow noreferrer">https://app.esticrm.pl/uploads/goodimage.jpg</a></p>
  
  <p>When I run it on other picture I'm getting error:</p>
  
  <pre><code>$image2 = Image::make(public_path()."/uploads/badimage.jpg");
  </code></pre>
  
  <p><strong>See example:</strong>
  <a href="https://app.esticrm.pl/uploads/badimage.jpg" rel="nofollow noreferrer">https://app.esticrm.pl/uploads/badimage.jpg</a></p>
  
  <p><strong>Error message:</strong></p>
  
  <blockquote>
    <p>Intervention \ Image \ Exception \ NotReadableException Unsupported
    image type. GD driver is only able to decode JPG, PNG, GIF or WebP
    files.</p>
  </blockquote>
  
  <p>Same situation on Windows and Linux. Files are opening on every graphic program and browser I've checked.
  Those problems has started after PHP upgrade from 5.5.x to 5.6.35. Was fine before.</p>