title: Data Image URI not working
body: <p>I am trying to optimize my page by replacing image urls with DATA-URI but the images are not rendering after converting to DATA URI.</p>
  
  <p>Here is my code to converting normal urls to data uri:</p>
  
  <pre><code>$imgurl= "https://www.cashy.in/images/banners/0ad08aafdd0887ed79f9fcc4321d54ed.png";
  $type=substr($imgurl, -3);
  $newimg=base64_encode($imgurl);
  $o_img="data:image/".$type.";base64,".$newimg;
  </code></pre>