title: Call to undefined function Intervention\\Image\\Gd\\imagecreatefromjpeg() - laravel
body: <p>I got this error message:</p>
  
  <pre><code>Call to undefined function Intervention\\Image\\Gd\\imagecreatefromjpeg()
  </code></pre>
  
  <p>this is my php info:</p>
  
  <p><a href="http://behika.com/" rel="noreferrer">http://behika.com/</a></p>
  
  <p>I'm using laravel framework (version 5.6) and php 7.1.</p>
  
  <p>I want to upload a image but I got this error. </p>
  
  <pre><code>gd
  GD Support  enabled
  GD Version  bundled (2.1.0 compatible)
  GIF Read Support    enabled
  GIF Create Support  enabled
  PNG Support enabled
  libPNG Version  1.6.32
  WBMP Support    enabled
  XBM Support 
  </code></pre>
  
  <p>my store function:</p>
  
  <pre><code>public function store(CompanyRequest $request)
  {
      $all = $request-&gt;except(['category-company', 'flag', 'null', 'file', 'producer-company','manager','address','description','phone']);
      $flag = array_values($request-&gt;input('flag'));
      $jsonFlag = json_encode($flag);
      $all['flag'] = $jsonFlag;
  
      if($request-&gt;input('manager')){
          $all['manager']=$request-&gt;input('manager');
      }
      if($request-&gt;input('address')){
          $all['address']=$request-&gt;input('address');
      }
      if($request-&gt;input('description')){
          $all['description']=$request-&gt;input('description');
      }
      if($request-&gt;input('phone')){
          $all['phone']=$request-&gt;input('phone');
      }
      $file = $request-&gt;file('file');
      $name = $file-&gt;getClientOriginalName();
      $dir = '/img/company/';
      $path = $dir . time() . $name;
      $thumbnail = $dir . 'tn-' . time() . $name;
      $all['path'] = $path;
      $all['thumbnail'] = $thumbnail;
  
  
      $company = Company::create($all);
  
      $file-&gt;move('img/company', time() . $name);
  
      $img = Image::make('img/company/' . time() . $name);
      $img-&gt;resize(100, 100);
      $img-&gt;save('img/company/tn-' . time() . $name);
  
  
      $company-&gt;categories()-&gt;sync($request-&gt;input('category-company'));
      $company-&gt;producers()-&gt;sync($request-&gt;input('producer-company'));
  
      return Response::json($company);
  }
  </code></pre>