title: tinypng error while trying to compress image
body: <p>I'm trying to compress image after upload it in my server and everything going as expected but when I upload my changes from local machine to online server that gives me this error </p>
  
  <blockquote>
    <p>Call to undefined function Tinify\curl_version()</p>
  </blockquote>
  
  <p>so my source code in my local machine below:</p>
  
  <pre><code>require_once(APPPATH.'libraries/tinify-php-master/lib/Tinify/Exception.php');
          require_once(APPPATH.'libraries/tinify-php-master/lib/Tinify/ResultMeta.php');
          require_once(APPPATH.'libraries/tinify-php-master/lib/Tinify/Result.php');
          require_once(APPPATH.'libraries/tinify-php-master/lib/Tinify/Source.php');
          require_once(APPPATH.'libraries/tinify-php-master/lib/Tinify/Client.php');
          require_once(APPPATH.'libraries/tinify-php-master/lib/Tinify.php');
  
          \Tinify\setKey("4R8QNHlOax0Mcp7lho4QiOBUnTjJuZYj");
  
          if($this-&gt;upload-&gt;do_upload("file")){
              $imageDetailArray = $this-&gt;upload-&gt;data();
              $pic =  $imageDetailArray['file_name'];
  
              $unoptimized_img_loc = 'uploads/'.$pic;
  
              $img_url = base_url() . "include/" . $unoptimized_img_loc;
              try {
                  $source = \Tinify\fromFile($img_url);
  
                  $optimized_img_name = 'compressed_imgs/users_profile_pic/profile_pic'.$pic;
  
                  $resized = $source-&gt;resize(array(
                          'method' =&gt;'fit',
                          'width' =&gt; 300,
                          'height' =&gt;300
                  ));
                  $resized-&gt;toFile($_SERVER['DOCUMENT_ROOT']."/html/include/".$optimized_img_name);
              }catch (\Tinify\Exception $e){
                  print_r($e);exit();
              }
  
              $dataIn['logo'] = $optimized_img_name;
          } 
  </code></pre>
  
  <p>and the same code uploaded to my VM server and that doesn't work </p>
  
  <p>Any help please
  And thanks in advance,</p>