title: TCPDF ERROR: Unable to get the size of the image (in the header)
body: <p>I see that many have asked the same question. I've seen them all but none helped me. I want to use an image in the header. This was working earlier, but now throwing up an error: TCPDF ERROR: [Image] Unable to get the size of the image. Here is a part of my code:</p>
  
  <pre><code>define ('__ROOT__', $_SERVER['DOCUMENT_ROOT']);
  define ('K_PATH_IMAGES', '/images/');
  require_once(__ROOT__.'/tcpdf/tcpdf.php');  
  $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
  $pdf-&gt;SetCreator(PDF_CREATOR);
  $pdf-&gt;SetHeaderData("mylogo.jpg", "20", "Title", "Brief Description");
  </code></pre>
  
  <p>I have double checked that the image and folder names are correct. I tried the example as in <a href="https://tcpdf.org/examples/example_003/" rel="nofollow noreferrer">https://tcpdf.org/examples/example_003/</a> and used MYPDF class, which too didn't work. I don't understand what is wrong. Please help!</p>
  
  <p>By the way, the server has changed from http to https from the time the script was working.</p>