title: FPDF error: Unsupported image type
body: <p>I am using FPDF to print the pdf version of my webpage.</p>
  <p>I am currently using <code>image</code> function of FPDF to print out image. I have the following code to print image-</p>
  <pre><code>function PutImg($URL, $txt)
  {
      // Put a image
      $this-&gt;Ln(10);
      $start_x = $this-&gt;GetX();
      $start_y = $this-&gt;GetY();
      $this-&gt;Image($URL,$this-&gt;GetX(), $this-&gt;GetY(),90, 0);
      $this-&gt;SetStyle('U',false);
      $this-&gt;SetLink($txt);
      $this-&gt;SetTextColor(0);
      $this-&gt;Ln(10);
  }
  </code></pre>
  <p>This prints out image successfully if I use the image URL-<a href="http://i706.photobucket.com/albums/ww62/fadey86/ifadey%20official%20website/install.jpg" rel="nofollow noreferrer">http://i706.photobucket.com/albums/ww62/fadey86/ifadey%20official%20website/install.jpg</a>. But when I used the URL:
  <a href="http://t1.gstatic.com/images?q=tbn:ANd9GcT9kiQoy9NiniQqbTSNXRQxeNtnOoXwuZuuYZiJzOV1gbfIZHippBfaZj2FxA" rel="nofollow noreferrer">http://t1.gstatic.com/images?q=tbn:ANd9GcT9kiQoy9NiniQqbTSNXRQxeNtnOoXwuZuuYZiJzOV1gbfIZHippBfaZj2FxA</a></p>
  <p>it gives the following error-</p>
  <pre><code>FPDF error: Unsupported image type: com/images?q=tbn:and9gct9kiqoy9niniqqbtsnxrqxentnooxwuzuuyzijzov1gbfizhippbfazj2fxa
  </code></pre>
  <p>Can anyone please explain or can correct it?</p>
  <p><strong>EDIT-</strong>
  I have tried to use the image links which only ends on .jpg/.png and then it prints the PDF properly according to my wish. So the problem is for the images whose URLs are not ending in JPG. What for them?</p>