original_string: public function initFromUrl($url)
      {
          
          $options = [
              'http' => [
                  'method'=>"GET",
                  'header'=>"Accept-language: en\r\n".
                  "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2\r\n"
            ]
          ];
          
          $context  = stream_context_create($options);
          
  
          if ($data = @file_get_contents($url, false, $context)) {
              return $this->initFromBinary($data);
          }
  
          throw new \Intervention\Image\Exception\NotReadableException(
              "Unable to init from given url (".$url.")."
          );
      }
code: public function initFromUrl($url)
      {
          
          $options = [
              'http' => [
                  'method'=>"GET",
                  'header'=>"Accept-language: en\r\n".
                  "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2\r\n"
            ]
          ];
          
          $context  = stream_context_create($options);
          
  
          if ($data = @file_get_contents($url, false, $context)) {
              return $this->initFromBinary($data);
          }
  
          throw new \Intervention\Image\Exception\NotReadableException(
              "Unable to init from given url (".$url.")."
          );
      }
code_tokens: public function initFromUrl ( $ url ) { $ options = [ 'http' => [ 'method' => "GET" , 'header' => "Accept-language: en\r\n" . "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2\r\n" ] ] ; $ context = stream_context_create ( $ options ) ; if ( $ data = @ file_get_contents ( $ url , false , $ context ) ) { return $ this -> initFromBinary ( $ data ) ; } throw new \ Intervention \ Image \ Exception \ NotReadableException ( "Unable to init from given url (" . $ url . ")." ) ; }
docstring: Init from given URL
  
  @param  string $url
  @return \Intervention\Image\Image
docstring_tokens: Init from given URL